summaryrefslogtreecommitdiffstats
path: root/kicker-applets/mediacontrol/mediacontrolconfig.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:22:56 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:22:56 +0000
commit7346aee26bf190a7e70333c40fab4caca847cd27 (patch)
tree4b019b434f88dcc3eeaafe1d3f26240b4c4718e8 /kicker-applets/mediacontrol/mediacontrolconfig.cpp
parent23a3d3aa5b44cbdf305495919866d9dbf4f6da54 (diff)
downloadtdeaddons-7346aee26bf190a7e70333c40fab4caca847cd27.tar.gz
tdeaddons-7346aee26bf190a7e70333c40fab4caca847cd27.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeaddons@1157634 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kicker-applets/mediacontrol/mediacontrolconfig.cpp')
-rw-r--r--kicker-applets/mediacontrol/mediacontrolconfig.cpp42
1 files changed, 21 insertions, 21 deletions
diff --git a/kicker-applets/mediacontrol/mediacontrolconfig.cpp b/kicker-applets/mediacontrol/mediacontrolconfig.cpp
index b146ff1..0217a25 100644
--- a/kicker-applets/mediacontrol/mediacontrolconfig.cpp
+++ b/kicker-applets/mediacontrol/mediacontrolconfig.cpp
@@ -25,12 +25,12 @@
#include "mediacontrolconfig.h"
#include "mediacontrolconfigwidget.h"
-#include <qdir.h>
-#include <qcheckbox.h>
-#include <qlistbox.h>
-#include <qtoolbutton.h>
-#include <qlayout.h>
-#include <qgroupbox.h>
+#include <tqdir.h>
+#include <tqcheckbox.h>
+#include <tqlistbox.h>
+#include <tqtoolbutton.h>
+#include <tqlayout.h>
+#include <tqgroupbox.h>
#include <kapplication.h>
#include <kdebug.h>
@@ -42,7 +42,7 @@
#include <knuminput.h>
#include <kstandarddirs.h>
-MediaControlConfig::MediaControlConfig( ConfigFrontend *cfg, QWidget *parent, const char* name)
+MediaControlConfig::MediaControlConfig( ConfigFrontend *cfg, TQWidget *parent, const char* name)
: KDialogBase( parent, name, false, i18n("MediaControl"), Ok | Apply | Cancel, Ok, false )
{
_configFrontend = cfg;
@@ -64,16 +64,16 @@ MediaControlConfig::MediaControlConfig( ConfigFrontend *cfg, QWidget *parent, co
_child->themeListBox->clear();
// fill with available skins
KGlobal::dirs()->addResourceType("themes", KStandardDirs::kde_default("data") + "mediacontrol");
- QStringList list = KGlobal::dirs()->resourceDirs("themes");
- for (QStringList::ConstIterator it = list.constBegin(); it != list.constEnd(); ++it)
+ TQStringList list = KGlobal::dirs()->resourceDirs("themes");
+ for (TQStringList::ConstIterator it = list.constBegin(); it != list.constEnd(); ++it)
readSkinDir(*it);
- connect(_child->mWheelScrollAmount, SIGNAL(valueChanged(int)), SLOT(slotConfigChanged()));
- connect(_child->playerListBox, SIGNAL(selectionChanged()), SLOT(slotConfigChanged()));
- connect(_child->themeListBox, SIGNAL(selectionChanged()), SLOT(slotConfigChanged()));
- connect(_child->themeListBox, SIGNAL(selectionChanged(QListBoxItem *)), SLOT(slotChangePreview(QListBoxItem *)));
- connect(_child->mUseThemes, SIGNAL(toggled(bool)), SLOT(slotConfigChanged()) );
- connect(_child->mUseThemes, SIGNAL(toggled(bool)), SLOT(slotUseThemesToggled(bool)) );
+ connect(_child->mWheelScrollAmount, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(slotConfigChanged()));
+ connect(_child->playerListBox, TQT_SIGNAL(selectionChanged()), TQT_SLOT(slotConfigChanged()));
+ connect(_child->themeListBox, TQT_SIGNAL(selectionChanged()), TQT_SLOT(slotConfigChanged()));
+ connect(_child->themeListBox, TQT_SIGNAL(selectionChanged(TQListBoxItem *)), TQT_SLOT(slotChangePreview(TQListBoxItem *)));
+ connect(_child->mUseThemes, TQT_SIGNAL(toggled(bool)), TQT_SLOT(slotConfigChanged()) );
+ connect(_child->mUseThemes, TQT_SIGNAL(toggled(bool)), TQT_SLOT(slotUseThemesToggled(bool)) );
load();
show();
@@ -81,9 +81,9 @@ MediaControlConfig::MediaControlConfig( ConfigFrontend *cfg, QWidget *parent, co
enableButtonApply ( false ); // apply id disabled until something changed
}
-void MediaControlConfig::readSkinDir( const QString &dir )
+void MediaControlConfig::readSkinDir( const TQString &dir )
{
- QDir directory( dir );
+ TQDir directory( dir );
if (!directory.exists())
return;
@@ -93,7 +93,7 @@ void MediaControlConfig::readSkinDir( const QString &dir )
while ( it.current() )
{
// append directory-name to our theme-listbox
- if ( QFile(it.current()->absFilePath()+"/play.png").exists() )
+ if ( TQFile(it.current()->absFilePath()+"/play.png").exists() )
_child->themeListBox->insertItem ( it.current()->baseName(), -1 );
++it;
}
@@ -104,7 +104,7 @@ void MediaControlConfig::readSkinDir( const QString &dir )
void MediaControlConfig::load()
{
// find the playerstring from config in the playerlist and select it if found
- QListBoxItem *item = 0;
+ TQListBoxItem *item = 0;
item = _child->playerListBox->findItem( _configFrontend->player() );
if ( item )
@@ -178,9 +178,9 @@ void MediaControlConfig::slotConfigChanged()
enableButtonApply ( true );
}
-void MediaControlConfig::slotChangePreview(QListBoxItem *item)
+void MediaControlConfig::slotChangePreview(TQListBoxItem *item)
{
- QString skindir = item->text();
+ TQString skindir = item->text();
_child->previewPrev->setIconSet(SmallIconSet(locate("themes",skindir+"/prev.png")));
_child->previewPlay->setIconSet(SmallIconSet(locate("themes",skindir+"/play.png")));
_child->previewPause->setIconSet(SmallIconSet(locate("themes",skindir+"/pause.png")));