diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 22:19:39 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 22:19:39 +0000 |
commit | 27edf28be2772229a7974a007313ea30d92c3ffd (patch) | |
tree | 14b9842bbd90c801d89ad5ddb38831fdf8aec1a4 /juk/slideraction.cpp | |
parent | 7ef01c0f34d9c6732d258154bcd3ba5a88280db9 (diff) | |
download | tdemultimedia-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/slideraction.cpp')
-rw-r--r-- | juk/slideraction.cpp | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/juk/slideraction.cpp b/juk/slideraction.cpp index a001fc31..cf68043c 100644 --- a/juk/slideraction.cpp +++ b/juk/slideraction.cpp @@ -39,7 +39,7 @@ class TrackPositionSlider : public TQSlider { public: - TrackPositionSlider(TQWidget *tqparent, const char *name) : TQSlider(tqparent, name) + TrackPositionSlider(TQWidget *parent, const char *name) : TQSlider(parent, name) { setFocusPolicy(TQ_NoFocus); } @@ -63,8 +63,8 @@ protected: // VolumeSlider implementation //////////////////////////////////////////////////////////////////////////////// -VolumeSlider::VolumeSlider(Qt::Orientation o, TQWidget *tqparent, const char *name) : - TQSlider(o, tqparent, name) +VolumeSlider::VolumeSlider(Qt::Orientation o, TQWidget *parent, const char *name) : + TQSlider(o, parent, name) { connect(this, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(slotValueChanged(int))); } @@ -126,8 +126,8 @@ void VolumeSlider::slotValueChanged(int value) const int SliderAction::minPosition = 0; const int SliderAction::maxPosition = 1000; -SliderAction::SliderAction(const TQString &text, TQObject *tqparent, const char *name) - : KAction(text, 0, tqparent, name), +SliderAction::SliderAction(const TQString &text, TQObject *parent, const char *name) + : KAction(text, 0, parent, name), m_toolBar(0), m_layout(0), m_trackPositionSlider(0), @@ -143,9 +143,9 @@ SliderAction::~SliderAction() } -int SliderAction::plug(TQWidget *tqparent, int index) +int SliderAction::plug(TQWidget *parent, int index) { - TQWidget *w = createWidget(tqparent); + TQWidget *w = createWidget(parent); if(!w) return -1; @@ -153,8 +153,8 @@ int SliderAction::plug(TQWidget *tqparent, int index) // the check for null makes sure that there is only one toolbar that this is // "plugged" in to - if(tqparent->inherits("KToolBar") && !m_toolBar) { - m_toolBar = static_cast<KToolBar *>(tqparent); + if(parent->inherits("KToolBar") && !m_toolBar) { + m_toolBar = static_cast<KToolBar *>(parent); int id = KAction::getToolButtonID(); @@ -178,10 +178,10 @@ int SliderAction::plug(TQWidget *tqparent, int index) } -void SliderAction::unplug(TQWidget *tqparent) +void SliderAction::unplug(TQWidget *parent) { - if (tqparent->inherits("KToolBar")) { - m_toolBar = static_cast<KToolBar *>(tqparent); + if (parent->inherits("KToolBar")) { + m_toolBar = static_cast<KToolBar *>(parent); int index = findContainer(m_toolBar); if (index != -1) { @@ -221,14 +221,14 @@ void SliderAction::slotUpdateOrientation() // private members //////////////////////////////////////////////////////////////////////////////// -TQWidget *SliderAction::createWidget(TQWidget *tqparent) // virtual -- used by base class +TQWidget *SliderAction::createWidget(TQWidget *parent) // virtual -- used by base class { - if(tqparent) { - TQWidget *base = new TQWidget(tqparent); - base->setBackgroundMode(tqparent->backgroundMode()); + if(parent) { + TQWidget *base = new TQWidget(parent); + base->setBackgroundMode(parent->backgroundMode()); base->setName("kde toolbar widget"); - KToolBar *toolBar = dynamic_cast<KToolBar *>(tqparent); + KToolBar *toolBar = dynamic_cast<KToolBar *>(parent); if(toolBar) toolBar->setStretchableWidget(base); @@ -279,7 +279,7 @@ TQWidget *SliderAction::createWidget(TQWidget *tqparent) // virtual -- used by b m_layout->setStretchFactor(m_trackPositionSlider, 4); m_layout->setStretchFactor(m_volumeSlider, 1); - connect(tqparent, TQT_SIGNAL(modechange()), this, TQT_SLOT(slotUpdateSize())); + connect(parent, TQT_SIGNAL(modechange()), this, TQT_SLOT(slotUpdateSize())); return base; } |