diff options
author | Timothy Pearson <[email protected]> | 2013-02-01 15:13:25 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2013-02-01 15:13:25 -0600 |
commit | 940c092f32d40263ad6b24f948eaf4c48b01e99a (patch) | |
tree | f5235b5c44e8aaedd3484a00551e29993d548590 /juk/playermanager.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/playermanager.cpp')
-rw-r--r-- | juk/playermanager.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/juk/playermanager.cpp b/juk/playermanager.cpp index 0ecc9e84..26fde611 100644 --- a/juk/playermanager.cpp +++ b/juk/playermanager.cpp @@ -239,10 +239,10 @@ void PlayerManager::setStatusLabel(StatusLabel *label) m_statusLabel = label; } -KSelectAction *PlayerManager::playerSelectAction(TQObject *parent) // static +TDESelectAction *PlayerManager::playerSelectAction(TQObject *parent) // static { - KSelectAction *action = 0; - action = new KSelectAction(i18n("&Output To"), 0, parent, "outputSelect"); + TDESelectAction *action = 0; + action = new TDESelectAction(i18n("&Output To"), 0, parent, "outputSelect"); TQStringList l; #if HAVE_ARTS @@ -305,7 +305,7 @@ void PlayerManager::play(const FileHandle &file) action("pause")->setEnabled(true); action("stop")->setEnabled(true); action("forward")->setEnabled(true); - if(action<KToggleAction>("albumRandomPlay")->isChecked()) + if(action<TDEToggleAction>("albumRandomPlay")->isChecked()) action("forwardAlbum")->setEnabled(true); action("back")->setEnabled(true); @@ -651,10 +651,10 @@ void PlayerManager::setup() // Call this method manually to avoid warnings. - KAction *outputAction = actions()->action("outputSelect"); + TDEAction *outputAction = actions()->action("outputSelect"); if(outputAction) { - setOutput(static_cast<KSelectAction *>(outputAction)->currentText()); + setOutput(static_cast<TDESelectAction *>(outputAction)->currentText()); connect(outputAction, TQT_SIGNAL(activated(const TQString &)), this, TQT_SLOT(slotSetOutput(const TQString &))); } else @@ -678,9 +678,9 @@ void PlayerManager::setup() TQString PlayerManager::randomPlayMode() const { - if(action<KToggleAction>("randomPlay")->isChecked()) + if(action<TDEToggleAction>("randomPlay")->isChecked()) return "Random"; - if(action<KToggleAction>("albumRandomPlay")->isChecked()) + if(action<TDEToggleAction>("albumRandomPlay")->isChecked()) return "AlbumRandom"; return "NoRandom"; } @@ -688,11 +688,11 @@ TQString PlayerManager::randomPlayMode() const void PlayerManager::setRandomPlayMode(const TQString &randomMode) { if(randomMode.lower() == "random") - action<KToggleAction>("randomPlay")->setChecked(true); + action<TDEToggleAction>("randomPlay")->setChecked(true); if(randomMode.lower() == "albumrandom") - action<KToggleAction>("albumRandomPlay")->setChecked(true); + action<TDEToggleAction>("albumRandomPlay")->setChecked(true); if(randomMode.lower() == "norandom") - action<KToggleAction>("disableRandomPlay")->setChecked(true); + action<TDEToggleAction>("disableRandomPlay")->setChecked(true); } #include "playermanager.moc" |