From e654398e46e37abf457b2b1122ab898d2c51c49f Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:43:15 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdemultimedia@1157644 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- noatun/modules/splitplaylist/view.h | 58 ++++++++++++++++++------------------- 1 file changed, 29 insertions(+), 29 deletions(-) (limited to 'noatun/modules/splitplaylist/view.h') diff --git a/noatun/modules/splitplaylist/view.h b/noatun/modules/splitplaylist/view.h index 18dc917a..785608fd 100644 --- a/noatun/modules/splitplaylist/view.h +++ b/noatun/modules/splitplaylist/view.h @@ -1,12 +1,12 @@ #ifndef VIEW_H #define VIEW_H -#include -#include +#include +#include #include #include -#include -#include +#include +#include #include #include @@ -21,19 +21,19 @@ class SafeListViewItem , public DownloadItem { public: - SafeListViewItem(QListView *parent, QListViewItem *after, const KURL &text); - SafeListViewItem(QListView *parent, QListViewItem *after, const QMap &properties); + SafeListViewItem(TQListView *parent, TQListViewItem *after, const KURL &text); + SafeListViewItem(TQListView *parent, TQListViewItem *after, const TQMap &properties); virtual ~SafeListViewItem(); - virtual QString property(const QString &, const QString & = 0) const; - virtual void setProperty(const QString &, const QString &); - virtual void clearProperty(const QString &); - virtual QStringList properties() const; - virtual bool isProperty(const QString &) const; + virtual TQString property(const TQString &, const TQString & = 0) const; + virtual void setProperty(const TQString &, const TQString &); + virtual void clearProperty(const TQString &); + virtual TQStringList properties() const; + virtual bool isProperty(const TQString &) const; - virtual QString file() const; + virtual TQString file() const; - int compare(QListViewItem * i, int col, bool ascending) const; + int compare(TQListViewItem * i, int col, bool ascending) const; virtual void remove(); protected: @@ -43,15 +43,15 @@ protected: virtual void modified(); virtual void stateChange(bool s); - void paintCell(QPainter *p, const QColorGroup &cg, int column, int width, int align); + void paintCell(TQPainter *p, const TQColorGroup &cg, int column, int width, int align); private: struct Property { - QString key; - QString value; + TQString key; + TQString value; }; - QValueList mProperties; + TQValueList mProperties; bool removed; }; @@ -62,10 +62,10 @@ friend class View; public: List(View *parent); virtual ~List(); - QListViewItem *openGlobal(const KURL&, QListViewItem * =0); - QListViewItem *importGlobal(const KURL&, QListViewItem * =0); - QListViewItem *addFile(const KURL&, bool play=false, QListViewItem * =0); - void addDirectoryRecursive(const KURL &dir, QListViewItem *after= 0); + TQListViewItem *openGlobal(const KURL&, TQListViewItem * =0); + TQListViewItem *importGlobal(const KURL&, TQListViewItem * =0); + TQListViewItem *addFile(const KURL&, bool play=false, TQListViewItem * =0); + void addDirectoryRecursive(const KURL &dir, TQListViewItem *after= 0); public slots: virtual void clear(); @@ -75,15 +75,15 @@ signals: void deleteCurrentItem(); protected: - virtual bool acceptDrag(QDropEvent *event) const; - virtual void keyPressEvent(QKeyEvent *e); + virtual bool acceptDrag(TQDropEvent *event) const; + virtual void keyPressEvent(TQKeyEvent *e); protected slots: - virtual void dropEvent(QDropEvent *event, QListViewItem *after); + virtual void dropEvent(TQDropEvent *event, TQListViewItem *after); void move(); protected: - QListViewItem *recursiveAddAfter; + TQListViewItem *recursiveAddAfter; protected slots: // used when adding directories via KIO::listRecursive @@ -111,7 +111,7 @@ public: void init(); virtual ~View(); List *listView() const { return list; } - QListViewItem *addFile(const KURL &u, bool play=false) + TQListViewItem *addFile(const KURL &u, bool play=false) { return list->addFile(u, play, list->lastItem()); } @@ -143,9 +143,9 @@ protected: void exportTo(const KURL &); void setModified(bool); - virtual void closeEvent(QCloseEvent*e); - virtual void showEvent(QShowEvent *); - virtual void hideEvent(QHideEvent *); + virtual void closeEvent(TQCloseEvent*e); + virtual void showEvent(TQShowEvent *); + virtual void hideEvent(TQHideEvent *); signals: void hidden(); -- cgit v1.2.1