summaryrefslogtreecommitdiffstats
path: root/src/directorylist.cpp
diff options
context:
space:
mode:
authorMavridis Philippe <[email protected]>2021-02-19 12:39:38 +0200
committerMavridis Philippe <[email protected]>2021-02-19 12:39:38 +0200
commitc9462edae6160a16f11d7a572fe01c9f4e1b78cd (patch)
treea8cbf01a923f2a5e3e53ab5d997f29063950d8d1 /src/directorylist.cpp
parent4d09225252b6605dbc2ff5a53a1fc863d34fe1f4 (diff)
downloadklamav-c9462edae6160a16f11d7a572fe01c9f4e1b78cd.tar.gz
klamav-c9462edae6160a16f11d7a572fe01c9f4e1b78cd.zip
CollectionSetup: added features required by KlamOnAcc.
* Ability to turn off "full mode" (that is, DeviceItems). * Ability to provide a starter TQStringList of directories. Signed-off-by: Mavridis Philippe <[email protected]>
Diffstat (limited to 'src/directorylist.cpp')
-rw-r--r--src/directorylist.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/directorylist.cpp b/src/directorylist.cpp
index 8e8bf76..a817e2e 100644
--- a/src/directorylist.cpp
+++ b/src/directorylist.cpp
@@ -41,11 +41,13 @@ using Collection::DeviceItem;
CollectionSetup* CollectionSetup::s_instance;
-CollectionSetup::CollectionSetup( TQWidget *parent, bool recursive )
+CollectionSetup::CollectionSetup( TQWidget *parent, bool recursive, bool fullMode, TQStringList dirs )
: TQVBox( parent )
{
s_instance = this;
+ m_dirs = dirs;
+
// (new TQLabel( i18n(
// "Select the folder(s) to scan. "), this ))->setAlignment( TQt::WordBreak );
@@ -70,7 +72,7 @@ CollectionSetup::CollectionSetup( TQWidget *parent, bool recursive )
reinterpret_cast<TQWidget*>(m_view->header())->hide();
new Item( m_view, i18n( "System Folder" ), "/", "folder_red" );
new Item( m_view, i18n( "Home Folder" ), TQDir::homeDirPath(), "folder_home" );
- new DeviceItem( m_view );
+ if( fullMode ) new DeviceItem( m_view );
setSpacing( 6 );
}