diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-02-01 15:13:25 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-02-01 15:13:25 -0600 |
commit | 940c092f32d40263ad6b24f948eaf4c48b01e99a (patch) | |
tree | f5235b5c44e8aaedd3484a00551e29993d548590 /juk/slideraction.cpp | |
parent | ced2058eaf8e5af831ebc02812a18937ff7e1de3 (diff) | |
download | tdemultimedia-940c092f32d40263ad6b24f948eaf4c48b01e99a.tar.gz tdemultimedia-940c092f32d40263ad6b24f948eaf4c48b01e99a.zip |
Rename a number of classes to enhance compatibility with KDE4
Diffstat (limited to 'juk/slideraction.cpp')
-rw-r--r-- | juk/slideraction.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/juk/slideraction.cpp b/juk/slideraction.cpp index cf68043c..c62aba90 100644 --- a/juk/slideraction.cpp +++ b/juk/slideraction.cpp @@ -127,7 +127,7 @@ const int SliderAction::minPosition = 0; const int SliderAction::maxPosition = 1000; SliderAction::SliderAction(const TQString &text, TQObject *parent, const char *name) - : KAction(text, 0, parent, name), + : TDEAction(text, 0, parent, name), m_toolBar(0), m_layout(0), m_trackPositionSlider(0), @@ -153,10 +153,10 @@ int SliderAction::plug(TQWidget *parent, int index) // the check for null makes sure that there is only one toolbar that this is // "plugged" in to - if(parent->inherits("KToolBar") && !m_toolBar) { - m_toolBar = static_cast<KToolBar *>(parent); + if(parent->inherits("TDEToolBar") && !m_toolBar) { + m_toolBar = static_cast<TDEToolBar *>(parent); - int id = KAction::getToolButtonID(); + int id = TDEAction::getToolButtonID(); m_toolBar->insertWidget(id, w->width(), w, index); @@ -180,8 +180,8 @@ int SliderAction::plug(TQWidget *parent, int index) void SliderAction::unplug(TQWidget *parent) { - if (parent->inherits("KToolBar")) { - m_toolBar = static_cast<KToolBar *>(parent); + if (parent->inherits("TDEToolBar")) { + m_toolBar = static_cast<TDEToolBar *>(parent); int index = findContainer(m_toolBar); if (index != -1) { @@ -204,7 +204,7 @@ void SliderAction::slotUpdateOrientation() if(!m_toolBar) return; - if(m_toolBar->barPos() == KToolBar::Right || m_toolBar->barPos() == KToolBar::Left) { + if(m_toolBar->barPos() == TDEToolBar::Right || m_toolBar->barPos() == TDEToolBar::Left) { m_trackPositionSlider->setOrientation(Qt::Vertical); m_volumeSlider->setOrientation(Qt::Vertical); m_layout->setDirection(TQBoxLayout::TopToBottom); @@ -228,14 +228,14 @@ TQWidget *SliderAction::createWidget(TQWidget *parent) // virtual -- used by bas base->setBackgroundMode(parent->backgroundMode()); base->setName("kde toolbar widget"); - KToolBar *toolBar = dynamic_cast<KToolBar *>(parent); + TDEToolBar *toolBar = dynamic_cast<TDEToolBar *>(parent); if(toolBar) toolBar->setStretchableWidget(base); Qt::Orientation orientation; - if(toolBar && toolBar->barPos() == KToolBar::Right || toolBar->barPos() == KToolBar::Left) + if(toolBar && toolBar->barPos() == TDEToolBar::Right || toolBar->barPos() == TDEToolBar::Left) orientation =Qt::Vertical; else orientation =Qt::Horizontal; @@ -299,7 +299,7 @@ void SliderAction::slotUpdateSize() if(!m_toolBar) return; - if(m_toolBar->barPos() == KToolBar::Right || m_toolBar->barPos() == KToolBar::Left) { + if(m_toolBar->barPos() == TDEToolBar::Right || m_toolBar->barPos() == TDEToolBar::Left) { m_volumeSlider->setMaximumWidth(m_toolBar->iconSize() - offset); m_volumeSlider->setMaximumHeight(volumeMax); |