diff options
Diffstat (limited to 'juk/nowplaying.cpp')
-rw-r--r-- | juk/nowplaying.cpp | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/juk/nowplaying.cpp b/juk/nowplaying.cpp index ebf03b94..8e14f1e9 100644 --- a/juk/nowplaying.cpp +++ b/juk/nowplaying.cpp @@ -41,15 +41,15 @@ static const int imageSize = 64; struct Line : public TQFrame { - Line(TQWidget *tqparent) : TQFrame(tqparent) { setFrameShape(VLine); } + Line(TQWidget *parent) : TQFrame(parent) { setFrameShape(VLine); } }; //////////////////////////////////////////////////////////////////////////////// // NowPlaying //////////////////////////////////////////////////////////////////////////////// -NowPlaying::NowPlaying(TQWidget *tqparent, PlaylistCollection *collection, const char *name) : - TQHBox(tqparent, name), +NowPlaying::NowPlaying(TQWidget *parent, PlaylistCollection *collection, const char *name) : + TQHBox(parent, name), m_observer(this, collection), m_collection(collection) { @@ -105,11 +105,11 @@ void NowPlaying::slotUpdate() // CoverItem //////////////////////////////////////////////////////////////////////////////// -CoverItem::CoverItem(NowPlaying *tqparent) : - TQLabel(tqparent, "CoverItem"), - NowPlayingItem(tqparent) +CoverItem::CoverItem(NowPlaying *parent) : + TQLabel(parent, "CoverItem"), + NowPlayingItem(parent) { - setFixedHeight(tqparent->height() - tqparent->tqlayout()->margin() * 2); + setFixedHeight(parent->height() - parent->tqlayout()->margin() * 2); setFrameStyle(Box | Plain); setLineWidth(1); setMargin(1); @@ -214,11 +214,11 @@ void CoverItem::dropEvent(TQDropEvent *e) // TrackItem //////////////////////////////////////////////////////////////////////////////// -TrackItem::TrackItem(NowPlaying *tqparent) : - TQWidget(tqparent, "TrackItem"), - NowPlayingItem(tqparent) +TrackItem::TrackItem(NowPlaying *parent) : + TQWidget(parent, "TrackItem"), + NowPlayingItem(parent) { - setFixedHeight(tqparent->height() - tqparent->tqlayout()->margin() * 2); + setFixedHeight(parent->height() - parent->tqlayout()->margin() * 2); tqsetSizePolicy(TQSizePolicy::Preferred, TQSizePolicy::Fixed); TQVBoxLayout *tqlayout = new TQVBoxLayout(this); @@ -242,7 +242,7 @@ void TrackItem::update(const FileHandle &file) void TrackItem::slotOpenLink(const TQString &link) { - PlaylistCollection *collection = NowPlayingItem::tqparent()->collection(); + PlaylistCollection *collection = NowPlayingItem::parent()->collection(); if(link == "artist") collection->showMore(m_file.tag()->artist()); @@ -269,7 +269,7 @@ void TrackItem::slotUpdate() "<br />" "<font size=\"+%3\"><b><a href=\"artist\">%4</a>%5<a href=\"album\">%6</a></b>"; - if(NowPlayingItem::tqparent()->collection()->showMoreActive()) + if(NowPlayingItem::parent()->collection()->showMoreActive()) format.append(TQString(" (<a href=\"clear\">%1</a>)").tqarg(i18n("back to playlist"))); format.append("</font>"); @@ -287,11 +287,11 @@ void TrackItem::slotUpdate() // HistoryItem //////////////////////////////////////////////////////////////////////////////// -HistoryItem::HistoryItem(NowPlaying *tqparent) : - LinkLabel(tqparent, "HistoryItem"), - NowPlayingItem(tqparent) +HistoryItem::HistoryItem(NowPlaying *parent) : + LinkLabel(parent, "HistoryItem"), + NowPlayingItem(parent) { - setFixedHeight(tqparent->height() - tqparent->tqlayout()->margin() * 2); + setFixedHeight(parent->height() - parent->tqlayout()->margin() * 2); tqsetSizePolicy(TQSizePolicy::Preferred, TQSizePolicy::Fixed); setLinkUnderline(false); setText(TQString("<b>%1</b>").tqarg(i18n("History"))); @@ -342,7 +342,7 @@ void HistoryItem::openLink(const TQString &link) (*it).playlist->clearSelection(); (*it).playlist->setSelected(item, true); (*it).playlist->ensureItemVisible(item); - NowPlayingItem::tqparent()->collection()->raise((*it).playlist); + NowPlayingItem::parent()->collection()->raise((*it).playlist); } break; } |