summaryrefslogtreecommitdiffstats
path: root/juk/nowplaying.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 22:19:39 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 22:19:39 +0000
commit27edf28be2772229a7974a007313ea30d92c3ffd (patch)
tree14b9842bbd90c801d89ad5ddb38831fdf8aec1a4 /juk/nowplaying.cpp
parent7ef01c0f34d9c6732d258154bcd3ba5a88280db9 (diff)
downloadtdemultimedia-27edf28be2772229a7974a007313ea30d92c3ffd.tar.gz
tdemultimedia-27edf28be2772229a7974a007313ea30d92c3ffd.zip
rename the following methods:
tqparent parent tqmask mask git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdemultimedia@1246260 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'juk/nowplaying.cpp')
-rw-r--r--juk/nowplaying.cpp36
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;
}