diff options
author | Mavridis Philippe <mavridisf@gmail.com> | 2021-01-14 20:58:41 +0200 |
---|---|---|
committer | Mavridis Philippe <mavridisf@gmail.com> | 2021-01-14 20:58:41 +0200 |
commit | 3298acded69cfd009721136682d9665b853ec182 (patch) | |
tree | 38b629a8bfa857a02b3beb899e0e0d7c872642b5 /src/klamav.cpp | |
parent | 83b1cf63165d62d294621d3003f4b2d5f5fa6c8a (diff) | |
download | klamav-3298acded69cfd009721136682d9665b853ec182.tar.gz klamav-3298acded69cfd009721136682d9665b853ec182.zip |
Menu: add icons
Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
Diffstat (limited to 'src/klamav.cpp')
-rw-r--r-- | src/klamav.cpp | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/klamav.cpp b/src/klamav.cpp index f0cabc0..e445bde 100644 --- a/src/klamav.cpp +++ b/src/klamav.cpp @@ -30,6 +30,7 @@ #include <kdebug.h> #include <tdemessagebox.h> #include <kurl.h> +#include <kiconloader.h> #include <tqdir.h> #include <tqfile.h> @@ -80,18 +81,18 @@ Klamav::Klamav() // Menus TDEPopupMenu *scanner_menu = new TDEPopupMenu(this); - scanner_menu->insertItem( i18n("Scan &File..."), this, SLOT(slotScanFile()), CTRL+Key_O ); - scanner_menu->insertItem( i18n("Scan &Directory..."), this, SLOT(slotScanDir()) ); + scanner_menu->insertItem( SmallIcon("document-open"), i18n("Scan &File..."), this, SLOT(slotScanFile()), CTRL+Key_O ); + scanner_menu->insertItem( SmallIcon("folder_open"), i18n("Scan &Directory..."), this, SLOT(slotScanDir()) ); scanner_menu->insertSeparator(); - scanner_menu->insertItem( i18n("&Schedule scan..."), this, SLOT(slotScheduleScan()) ); - scanner_menu->insertItem( i18n("&Options..."), this, SLOT(slotOptions()) ); + scanner_menu->insertItem( SmallIcon("xclock"), i18n("&Schedule scan..."), this, SLOT(slotScheduleScan()) ); + scanner_menu->insertItem( SmallIcon("configure"), i18n("&Options..."), this, SLOT(slotOptions()) ); tabs_menu = new TDEPopupMenu(this); tabs_menu->setCheckable(true); - showWelcomeTab = tabs_menu->insertItem( i18n("Show &Welcome tab"), this, SLOT(slotToggleWelcome()) ); - showQuarantineTab = tabs_menu->insertItem( i18n("Show &Quarantine tab"), this, SLOT(slotToggleQuarantine()) ); - showDBViewerTab = tabs_menu->insertItem( i18n("Show &Virus Browser tab"), this, SLOT(slotToggleDBViewer()) ); - showEventsTab = tabs_menu->insertItem( i18n("Show &Events tab"), this, SLOT(slotToggleEvents()) ); + showWelcomeTab = tabs_menu->insertItem( SmallIcon("klamav"), i18n("Show &Welcome tab"), this, SLOT(slotToggleWelcome()) ); + showQuarantineTab = tabs_menu->insertItem( SmallIcon("encrypted"), i18n("Show &Quarantine tab"), this, SLOT(slotToggleQuarantine()) ); + showDBViewerTab = tabs_menu->insertItem( SmallIcon("system-search"), i18n("Show &Virus Browser tab"), this, SLOT(slotToggleDBViewer()) ); + showEventsTab = tabs_menu->insertItem( SmallIcon("toggle_log"), i18n("Show &Events tab"), this, SLOT(slotToggleEvents()) ); // Menu bar |