diff options
author | Mavridis Philippe <mavridisf@gmail.com> | 2021-02-10 23:03:30 +0200 |
---|---|---|
committer | Mavridis Philippe <mavridisf@gmail.com> | 2021-02-10 23:03:30 +0200 |
commit | 3747174d7835e7ea2332065c6948dbfbb1d26449 (patch) | |
tree | 0a23633dd2d6030956e72cb5a2d3fde73a06b84d /src/directorylist.h | |
parent | 6e18c223b2c9e5b598298824dd775117218b0c94 (diff) | |
download | klamav-3747174d7835e7ea2332065c6948dbfbb1d26449.tar.gz klamav-3747174d7835e7ea2332065c6948dbfbb1d26449.zip |
Moved pruneSelectedDirs() from Klamscan to the widget class itself.
This makes more sense and will permit to use this method in other
scenarios.
Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
Diffstat (limited to 'src/directorylist.h')
-rw-r--r-- | src/directorylist.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/directorylist.h b/src/directorylist.h index 6c6b451..c1820c8 100644 --- a/src/directorylist.h +++ b/src/directorylist.h @@ -22,6 +22,7 @@ #include <tqcheckbox.h> //inlined functions #include <tqlistview.h> //baseclass #include <tqvbox.h> //baseclass +#include <tqstringlist.h> #include <kdirlister.h> //stack allocated #include <kurl.h> //stack allocated @@ -47,6 +48,8 @@ public: TQStringList m_dirs; TQMap<TQString,int> m_refcount; + TQStringList pruneSelectedDirs(); + signals: void dirsSelected(TQStringList& dirs); @@ -99,11 +102,11 @@ class DeviceItem : public TQObject, public TQCheckListItem public: DeviceItem( TQListView *parent ); DeviceItem( TQListViewItem *parent, const TQString &name, const KURL &url ); - + TQCheckListItem *parent() const { return (TQCheckListItem*)TQListViewItem::parent(); } bool isDisabled() const { return CollectionSetup::instance()->recursive() && parent() && parent()->isOn(); } TQString fullPath() const; - + void setOpen( bool b ); // reimpl. void stateChange( bool ); // reimpl. void activate(); // reimpl. |