From 4c04a441814c7d1dda08f6075ab4e09dc05541df Mon Sep 17 00:00:00 2001 From: Mavridis Philippe Date: Wed, 13 Jan 2021 19:34:09 +0200 Subject: Conversion KDE3->TDE Signed-off-by: Mavridis Philippe --- src/klamscan.cpp | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'src/klamscan.cpp') diff --git a/src/klamscan.cpp b/src/klamscan.cpp index a5dc91c..16de3c8 100644 --- a/src/klamscan.cpp +++ b/src/klamscan.cpp @@ -22,8 +22,8 @@ #include #include -#include -#include +#include +#include #include #include #include @@ -71,7 +71,7 @@ Klamscan::Klamscan(TQWidget *parent, const char *name) - KCmdLineArgs *args = KCmdLineArgs::parsedArgs(); + TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs(); TQLabel *combo_label = new TQLabel(i18n("When a virus is found:"), privateLayoutWidget2); @@ -132,7 +132,7 @@ Klamscan::Klamscan(TQWidget *parent, const char *name) controls->setMargin(2); play = new TQToolButton( controls,"play" ); - play->setIconSet( SmallIconSet( "player_play" ) ); + play->setIconSet( SmallIconSet( "media-playback-start" ) ); play->setTextLabel(i18n( "Scan" )); play->setTextPosition(TQToolButton::Right); play->setUsesTextLabel(true); @@ -140,7 +140,7 @@ Klamscan::Klamscan(TQWidget *parent, const char *name) play->setFixedHeight(play->height() - 1); stop = new TQToolButton( controls,"stop" ); - stop->setIconSet( SmallIconSet( "player_stop" ) ); + stop->setIconSet( SmallIconSet( "media-playback-stop" ) ); stop->setTextLabel(i18n( "Stop" )); stop->setTextPosition(TQToolButton::Right); stop->setUsesTextLabel(true); @@ -213,7 +213,7 @@ void Klamscan::slotScan() SLOT( slotManageButtons(TQWidget *) ) ); - kmain->_tray->setPixmap(KSystemTray::loadIcon("klamav_scanning")); + tdemain->_tray->setPixmap(KSystemTray::loadIcon("klamav_scanning")); TQDate today = TQDate::currentDate(); TQTime now = TQTime::currentTime(); @@ -227,7 +227,7 @@ void Klamscan::slotScan() TQStringList filepattern; - KCmdLineArgs *args = KCmdLineArgs::parsedArgs(); + TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs(); if( args->isSet( "scanthis" ) ) { listOfUrlsToScan.clear(); @@ -260,7 +260,7 @@ void Klamscan::slotAdvOptions(){ dialog->raise(); dialog->setActiveWindow();*/ - kmain->slotConfigKlamav( "Archive Limits" ); + tdemain->slotConfigKlamav( "Archive Limits" ); } @@ -286,7 +286,7 @@ void Klamscan::slotSchedule(){ void Klamscan::setDefaults(){ - config = KGlobal::config(); + config = TDEGlobal::config(); config->setGroup("ScanPaths"); config->setGroup("Klamscan"); @@ -345,7 +345,7 @@ void Klamscan::scanURLs(const TQString &urls) { setActiveWindow(); raise(); - kmain->tab->setCurrentPage(0); + tdemain->tab->setCurrentPage(0); TQString tmpurls = urls; //urlsToScan = urlsToScan.replace("*"," "); @@ -379,10 +379,10 @@ void Klamscan::scanURLs(const TQString &urls) void Klamscan::slotStopScanning(){ - if (kmain->klamd->isKlamdAlive()) - kmain->_tray->setPixmap(KSystemTray::loadIcon("klamav_on_acc_enabled")); + if (tdemain->klamd->isKlamdAlive()) + tdemain->_tray->setPixmap(KSystemTray::loadIcon("klamav_on_acc_enabled")); else - kmain->_tray->setPixmap(KSystemTray::loadIcon("klamav_on_acc_disabled")); + tdemain->_tray->setPixmap(KSystemTray::loadIcon("klamav_on_acc_disabled")); ////kdDebug() << tabBrowser->currentPage()->name() << endl; ScanViewer* cur = static_cast(tabBrowser->currentPage()); @@ -408,10 +408,10 @@ void Klamscan::slotStartAgain(){ void Klamscan::slotRemoveTab(){ - if (kmain->klamd->isKlamdAlive()) - kmain->_tray->setPixmap(KSystemTray::loadIcon("klamav_on_acc_enabled")); + if (tdemain->klamd->isKlamdAlive()) + tdemain->_tray->setPixmap(KSystemTray::loadIcon("klamav_on_acc_enabled")); else - kmain->_tray->setPixmap(KSystemTray::loadIcon("klamav_on_acc_disabled")); + tdemain->_tray->setPixmap(KSystemTray::loadIcon("klamav_on_acc_disabled")); ////kdDebug() << tabBrowser->currentPage()->name() << endl; if (tabBrowser->currentPageIndex() != 0){ slotStopScanning(); -- cgit v1.2.1