summaryrefslogtreecommitdiffstats
path: root/src/directorylist.h
diff options
context:
space:
mode:
authorMavridis Philippe <[email protected]>2021-01-13 19:30:17 +0200
committerMavridis Philippe <[email protected]>2021-01-13 19:30:17 +0200
commit357ddeb8afd82d69ef871c146f4fc8f2c67fb17e (patch)
treedc3ef0e6fedd64f5fb177c114f72e1515a07cd1b /src/directorylist.h
parentc6cbd71bc169ac0e927e52325dbbbcb506abbc73 (diff)
downloadklamav-357ddeb8afd82d69ef871c146f4fc8f2c67fb17e.tar.gz
klamav-357ddeb8afd82d69ef871c146f4fc8f2c67fb17e.zip
Conversion Qt3->TQt
Signed-off-by: Mavridis Philippe <[email protected]>
Diffstat (limited to 'src/directorylist.h')
-rw-r--r--src/directorylist.h50
1 files changed, 25 insertions, 25 deletions
diff --git a/src/directorylist.h b/src/directorylist.h
index 6be1b59..343c3fa 100644
--- a/src/directorylist.h
+++ b/src/directorylist.h
@@ -19,9 +19,9 @@
#ifndef _DIRECTORYLIST_H
#define _DIRECTORYLIST_H
-#include <qcheckbox.h> //inlined functions
-#include <qlistview.h> //baseclass
-#include <qvbox.h> //baseclass
+#include <tqcheckbox.h> //inlined functions
+#include <tqlistview.h> //baseclass
+#include <tqvbox.h> //baseclass
#include <kdirlister.h> //stack allocated
#include <kurl.h> //stack allocated
@@ -30,7 +30,7 @@
namespace Collection { class Item; }
-class CollectionSetup : public QVBox
+class CollectionSetup : public TQVBox
{
Q_OBJECT
friend class Collection::Item;
@@ -38,17 +38,17 @@ Q_OBJECT
public:
static CollectionSetup* instance() { return s_instance; }
- CollectionSetup( QWidget* ,bool );
+ CollectionSetup( TQWidget* ,bool );
- QStringList dirs() const { return m_dirs; }
+ TQStringList dirs() const { return m_dirs; }
bool recursive() const { return m_recursive; }
// bool monitor() const { return m_monitor->isChecked(); }
// bool importPlaylists() const { return m_playlists->isChecked(); }
- QStringList m_dirs;
- QMap<QString,int> m_refcount;
+ TQStringList m_dirs;
+ TQMap<TQString,int> m_refcount;
signals:
- void dirsSelected(QStringList& dirs);
+ void dirsSelected(TQStringList& dirs);
public slots:
@@ -57,30 +57,30 @@ public slots:
private:
static CollectionSetup* s_instance;
- QListView *m_view;
+ TQListView *m_view;
bool m_recursive;
- QCheckBox *m_monitor;
- QCheckBox *m_playlists;
+ TQCheckBox *m_monitor;
+ TQCheckBox *m_playlists;
};
namespace Collection { //just to keep it out of the global namespace
-class Item : public QObject, public QCheckListItem
+class Item : public TQObject, public TQCheckListItem
{
Q_OBJECT
public:
- Item( QListView *parent, const QString &name, const QString &path, const QString &icon=QString::null );
- Item( QListViewItem *parent, const KURL &url );
+ Item( TQListView *parent, const TQString &name, const TQString &path, const TQString &icon=TQString::null );
+ Item( TQListViewItem *parent, const KURL &url );
- QCheckListItem *parent() const { return (QCheckListItem*)QListViewItem::parent(); }
+ TQCheckListItem *parent() const { return (TQCheckListItem*)TQListViewItem::parent(); }
bool isDisabled() const { return CollectionSetup::instance()->recursive() && parent() && parent()->isOn(); }
- QString fullPath() const;
+ TQString fullPath() const;
void setOpen( bool b ); // reimpl.
void stateChange( bool ); // reimpl.
void activate(); // reimpl.
- void paintCell( QPainter * p, const QColorGroup & cg, int column, int width, int align ); // reimpl.
+ void paintCell( TQPainter * p, const TQColorGroup & cg, int column, int width, int align ); // reimpl.
public slots:
void newItems( const KFileItemList& );
@@ -93,26 +93,26 @@ private:
};
-class DeviceItem : public QObject, public QCheckListItem
+class DeviceItem : public TQObject, public TQCheckListItem
{
Q_OBJECT
public:
- DeviceItem( QListView *parent );
- DeviceItem( QListViewItem *parent, const QString &name, const KURL &url );
+ DeviceItem( TQListView *parent );
+ DeviceItem( TQListViewItem *parent, const TQString &name, const KURL &url );
- QCheckListItem *parent() const { return (QCheckListItem*)QListViewItem::parent(); }
+ TQCheckListItem *parent() const { return (TQCheckListItem*)TQListViewItem::parent(); }
bool isDisabled() const { return CollectionSetup::instance()->recursive() && parent() && parent()->isOn(); }
- QString fullPath() const;
+ TQString fullPath() const;
void setOpen( bool b ); // reimpl.
void stateChange( bool ); // reimpl.
void activate(); // reimpl.
- void paintCell( QPainter * p, const QColorGroup & cg, int column, int width, int align ); // reimpl.
+ void paintCell( TQPainter * p, const TQColorGroup & cg, int column, int width, int align ); // reimpl.
public slots:
void newItems( const KFileItemList& );
void completed() { if( childCount() == 0 ) { setExpandable( false ); repaint(); } }
private:
- void mountDevice(const QString & device);
+ void mountDevice(const TQString & device);
KDirLister m_lister;
KURL m_url;
bool m_listed;