summaryrefslogtreecommitdiffstats
path: root/noatun/modules/kaiman/pref.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:43:15 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:43:15 +0000
commite654398e46e37abf457b2b1122ab898d2c51c49f (patch)
treed39ee6440f3c3663c3ead84a2d4cc2d034667e96 /noatun/modules/kaiman/pref.cpp
parente4f29b18e19394b9352f52a6c0d0d0e3932cf511 (diff)
downloadtdemultimedia-e654398e46e37abf457b2b1122ab898d2c51c49f.tar.gz
tdemultimedia-e654398e46e37abf457b2b1122ab898d2c51c49f.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdemultimedia@1157644 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'noatun/modules/kaiman/pref.cpp')
-rw-r--r--noatun/modules/kaiman/pref.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/noatun/modules/kaiman/pref.cpp b/noatun/modules/kaiman/pref.cpp
index 29ef30d9..5f241bc0 100644
--- a/noatun/modules/kaiman/pref.cpp
+++ b/noatun/modules/kaiman/pref.cpp
@@ -17,11 +17,11 @@
*/
#include <klocale.h>
-#include <qlayout.h>
-#include <qlabel.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
#include <klistbox.h>
-#include <qdir.h>
-#include <qfileinfo.h>
+#include <tqdir.h>
+#include <tqfileinfo.h>
#include <kglobal.h>
#include <kdebug.h>
#include <kstandarddirs.h>
@@ -31,12 +31,12 @@
#include "userinterface.h"
-KaimanPrefDlg::KaimanPrefDlg(QObject *parent )
+KaimanPrefDlg::KaimanPrefDlg(TQObject *parent )
: CModule(i18n("Kaiman Skins"), i18n("Skin Selection for the Kaiman Plugin"), "style", parent)
{
// create widgets
- QVBoxLayout *topLayout = new QVBoxLayout( this, 6, 11 );
- QLabel *label = new QLabel( i18n("Kaiman Skins"), this, "label" );
+ TQVBoxLayout *topLayout = new TQVBoxLayout( this, 6, 11 );
+ TQLabel *label = new TQLabel( i18n("Kaiman Skins"), this, "label" );
topLayout->addWidget( label );
_skinList = new KListBox( this, "skinList" );
@@ -68,15 +68,15 @@ void KaimanPrefDlg::reopen()
_skinList->clear();
// fill with available skins
KGlobal::dirs()->addResourceType("skins", KStandardDirs::kde_default("data") + "noatun/skins/kaiman/");
- QStringList list = KGlobal::dirs()->resourceDirs("skins");
- for (QStringList::ConstIterator it = list.begin(); it != list.end(); it++)
+ TQStringList list = KGlobal::dirs()->resourceDirs("skins");
+ for (TQStringList::ConstIterator it = list.begin(); it != list.end(); it++)
readSkinDir(*it);
// load current config
KConfig *config=KGlobal::config();
config->setGroup("Kaiman");
- QString skin = config->readEntry( "SkinResource", Kaiman::DEFAULT_SKIN );
- QListBoxItem *item = _skinList->findItem( skin );
+ TQString skin = config->readEntry( "SkinResource", Kaiman::DEFAULT_SKIN );
+ TQListBoxItem *item = _skinList->findItem( skin );
if ( item )
_skinList->setCurrentItem( item );
else
@@ -84,23 +84,23 @@ void KaimanPrefDlg::reopen()
}
-void KaimanPrefDlg::setSkin( QString skin )
+void KaimanPrefDlg::setSkin( TQString skin )
{
_skinList->setCurrentItem( _skinList->findItem( skin ) );
}
-QString KaimanPrefDlg::skin()
+TQString KaimanPrefDlg::skin()
{
return _skinList->currentText();
}
-void KaimanPrefDlg::readSkinDir( const QString &dir )
+void KaimanPrefDlg::readSkinDir( const TQString &dir )
{
kdDebug() << "readSkinDir " << dir << endl;
- QDir directory( dir );
+ TQDir directory( dir );
if (!directory.exists())
return;
@@ -109,7 +109,7 @@ void KaimanPrefDlg::readSkinDir( const QString &dir )
while ( it.current() ) {
kdDebug() << it.current()->absFilePath() << endl;
- QFileInfo skindata( it.current()->absFilePath()+"/skindata" );
+ TQFileInfo skindata( it.current()->absFilePath()+"/skindata" );
if ( skindata.exists() ) {
_skinList->insertItem( it.current()->baseName() );