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/nowplaying.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/nowplaying.h')
-rw-r--r-- | juk/nowplaying.h | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/juk/nowplaying.h b/juk/nowplaying.h index 208eabc4..fb12197d 100644 --- a/juk/nowplaying.h +++ b/juk/nowplaying.h @@ -18,9 +18,9 @@ #include <kactivelabel.h> -#include <qhbox.h> -#include <qlabel.h> -#include <qguardedptr.h> +#include <tqhbox.h> +#include <tqlabel.h> +#include <tqguardedptr.h> #include "filehandle.h" #include "playlist.h" @@ -42,7 +42,7 @@ class NowPlaying : public QHBox Q_OBJECT public: - NowPlaying(QWidget *parent, PlaylistCollection *collection, + NowPlaying(TQWidget *parent, PlaylistCollection *collection, const char *name = 0); void addItem(NowPlayingItem *item); PlaylistCollection *collection() const; @@ -64,7 +64,7 @@ private: Observer m_observer; PlaylistCollection *m_collection; - QValueList<NowPlayingItem *> m_items; + TQValueList<NowPlayingItem *> m_items; }; /** @@ -87,24 +87,24 @@ private: * itself if not. */ -class CoverItem : public QLabel, public NowPlayingItem +class CoverItem : public TQLabel, public NowPlayingItem { public: CoverItem(NowPlaying *parent); virtual void update(const FileHandle &file); - virtual void mouseReleaseEvent(QMouseEvent *event); + virtual void mouseReleaseEvent(TQMouseEvent *event); protected: - virtual void dragEnterEvent(QDragEnterEvent *e); - virtual void dropEvent(QDropEvent *e); + virtual void dragEnterEvent(TQDragEnterEvent *e); + virtual void dropEvent(TQDropEvent *e); - virtual void mousePressEvent(QMouseEvent *e); - virtual void mouseMoveEvent(QMouseEvent *e); + virtual void mousePressEvent(TQMouseEvent *e); + virtual void mouseMoveEvent(TQMouseEvent *e); private: FileHandle m_file; bool m_dragging; - QPoint m_dragStart; + TQPoint m_dragStart; }; /** @@ -114,8 +114,8 @@ private: class LinkLabel : public KActiveLabel { public: - LinkLabel(QWidget *parent, const char *name = 0) : KActiveLabel(parent, name) {} - virtual void openLink(const QString &) {} + LinkLabel(TQWidget *parent, const char *name = 0) : KActiveLabel(parent, name) {} + virtual void openLink(const TQString &) {} }; /** @@ -123,7 +123,7 @@ public: * album and artist of the currently playing item. */ -class TrackItem : public QWidget, public NowPlayingItem +class TrackItem : public TQWidget, public NowPlayingItem { Q_OBJECT @@ -132,7 +132,7 @@ public: virtual void update(const FileHandle &file); private slots: - void slotOpenLink(const QString &link); + void slotOpenLink(const TQString &link); void slotUpdate(); private: @@ -151,7 +151,7 @@ class HistoryItem : public LinkLabel, public NowPlayingItem public: HistoryItem(NowPlaying *parent); virtual void update(const FileHandle &file); - virtual void openLink(const QString &link); + virtual void openLink(const TQString &link); private slots: void slotAddPlaying(); @@ -160,17 +160,17 @@ private: struct Item { Item() {} - Item(const QString &a, const FileHandle &f, Playlist *p) + Item(const TQString &a, const FileHandle &f, Playlist *p) : anchor(a), file(f), playlist(p) {} - QString anchor; + TQString anchor; FileHandle file; - QGuardedPtr<Playlist> playlist; + TQGuardedPtr<Playlist> playlist; }; - QValueList<Item> m_history; + TQValueList<Item> m_history; LinkLabel *m_label; - QTimer *m_timer; + TQTimer *m_timer; FileHandle m_file; }; |