summaryrefslogtreecommitdiffstats
path: root/noatun/modules/kaiman/pref.cpp
diff options
context:
space:
mode:
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() );