diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:43:15 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:43:15 +0000 |
commit | e654398e46e37abf457b2b1122ab898d2c51c49f (patch) | |
tree | d39ee6440f3c3663c3ead84a2d4cc2d034667e96 /juk/playlistitem.h | |
parent | e4f29b18e19394b9352f52a6c0d0d0e3932cf511 (diff) | |
download | tdemultimedia-e654398e46e37abf457b2b1122ab898d2c51c49f.tar.gz tdemultimedia-e654398e46e37abf457b2b1122ab898d2c51c49f.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdemultimedia@1157644 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'juk/playlistitem.h')
-rw-r--r-- | juk/playlistitem.h | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/juk/playlistitem.h b/juk/playlistitem.h index c969d736..9b9cfa80 100644 --- a/juk/playlistitem.h +++ b/juk/playlistitem.h @@ -20,8 +20,8 @@ #include <ksharedptr.h> #include <kdebug.h> -#include <qvaluevector.h> -#include <qptrdict.h> +#include <tqvaluevector.h> +#include <tqptrdict.h> #include "tagguesser.h" #include "filehandle.h" @@ -31,7 +31,7 @@ class PlaylistItem; class CollectionListItem; class CollectionList; -typedef QValueList<PlaylistItem *> PlaylistItemList; +typedef TQValueList<PlaylistItem *> PlaylistItemList; /** * Items for the Playlist and the baseclass for CollectionListItem. @@ -48,7 +48,7 @@ class PlaylistItem : public KListViewItem friend class UpcomingPlaylist; friend class CollectionList; friend class CollectionListItem; - friend class QPtrDict<PlaylistItem>; + friend class TQPtrDict<PlaylistItem>; friend class Pointer; public: @@ -86,19 +86,19 @@ public: private: PlaylistItem *m_item; - static QMap<PlaylistItem *, QValueList<Pointer *> > m_map; + static TQMap<PlaylistItem *, TQValueList<Pointer *> > m_map; }; friend class Pointer; static int lastColumn() { return FullPathColumn; } void setFile(const FileHandle &file); - void setFile(const QString &file); + void setFile(const TQString &file); FileHandle file() const; - virtual const QPixmap *pixmap(int column) const; - virtual QString text(int column) const; - virtual void setText(int column, const QString &text); + virtual const TQPixmap *pixmap(int column) const; + virtual TQString text(int column) const; + virtual void setText(int column, const TQString &text); void setPlaying(bool playing = true, bool master = true); @@ -113,7 +113,7 @@ public: * The widths of items are cached when they're updated for us in computations * in the "weighted" listview column width mode. */ - QValueVector<int> cachedWidths() const; + TQValueVector<int> cachedWidths() const; /** * This just refreshes from the in memory data. This may seem pointless at @@ -157,7 +157,7 @@ protected: * subclss or friend class. */ PlaylistItem(CollectionListItem *item, Playlist *parent); - PlaylistItem(CollectionListItem *item, Playlist *parent, QListViewItem *after); + PlaylistItem(CollectionListItem *item, Playlist *parent, TQListViewItem *after); /** * This is the constructor that shold be used by subclasses. @@ -170,10 +170,10 @@ protected: */ virtual ~PlaylistItem(); - virtual void paintCell(QPainter *p, const QColorGroup &cg, int column, int width, int align); - virtual void paintFocus(QPainter *, const QColorGroup &, const QRect &) {} + virtual void paintCell(TQPainter *p, const TQColorGroup &cg, int column, int width, int align); + virtual void paintFocus(TQPainter *, const TQColorGroup &, const TQRect &) {} - virtual int compare(QListViewItem *item, int column, bool ascending) const; + virtual int compare(TQListViewItem *item, int column, bool ascending) const; int compare(const PlaylistItem *firstItem, const PlaylistItem *secondItem, int column, bool ascending) const; bool isValid() const; @@ -181,12 +181,12 @@ protected: struct Data : public KShared { Data() {} - Data(const QFileInfo &info, const QString &path) : fileHandle(info, path) {} - Data(const QString &path) : fileHandle(path) {} + Data(const TQFileInfo &info, const TQString &path) : fileHandle(info, path) {} + Data(const TQString &path) : fileHandle(path) {} FileHandle fileHandle; - QValueVector<QCString> local8Bit; - QValueVector<int> cachedWidths; + TQValueVector<TQCString> local8Bit; + TQValueVector<int> cachedWidths; }; KSharedPtr<Data> data() const { return d; } |