summaryrefslogtreecommitdiffstats
path: root/noatun/modules/winskin/winSkinConfig.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/winskin/winSkinConfig.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/winskin/winSkinConfig.cpp')
-rw-r--r--noatun/modules/winskin/winSkinConfig.cpp68
1 files changed, 34 insertions, 34 deletions
diff --git a/noatun/modules/winskin/winSkinConfig.cpp b/noatun/modules/winskin/winSkinConfig.cpp
index 649fd1fe..07352c7b 100644
--- a/noatun/modules/winskin/winSkinConfig.cpp
+++ b/noatun/modules/winskin/winSkinConfig.cpp
@@ -1,77 +1,77 @@
#include <noatun/pref.h>
#include <klocale.h>
-#include <qpushbutton.h>
-#include <qlayout.h>
-#include <qlabel.h>
-#include <qpixmap.h>
+#include <tqpushbutton.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
+#include <tqpixmap.h>
#include <kglobal.h>
#include <kconfig.h>
-#include <qslider.h>
-#include <qframe.h>
-#include <qstringlist.h>
+#include <tqslider.h>
+#include <tqframe.h>
+#include <tqstringlist.h>
#include <kfile.h>
#include <kfiledialog.h>
#include <kmessagebox.h>
#include <kstandarddirs.h>
#include <kurlrequester.h>
#include <kurlrequesterdlg.h>
-#include <qdir.h>
+#include <tqdir.h>
#include "waSkin.h"
#include "waInfo.h"
#include "waSkinManager.h"
#include "winSkinConfig.h"
-WinSkinConfig::WinSkinConfig(QWidget * parent, WaSkinManager *waSkinManager) :
+WinSkinConfig::WinSkinConfig(TQWidget * parent, WaSkinManager *waSkinManager) :
CModule(i18n("Winskin"),
i18n("Skin Selection for the Winskin Plugin"),
"style",
parent)
{
// Make a token horizontal layout box
- vbox = new QVBoxLayout(this);
+ vbox = new TQVBoxLayout(this);
vbox->setSpacing( 6 );
vbox->setMargin( 0 );
// Add a simple list of skins, populated in WinSkinConfig::reopen()
- skin_list = new QListBox(this, "skin_list");
+ skin_list = new TQListBox(this, "skin_list");
vbox->addWidget(skin_list);
- QHBoxLayout* hbox = new QHBoxLayout( 0, 6, 6 );
+ TQHBoxLayout* hbox = new TQHBoxLayout( 0, 6, 6 );
- QPushButton* buttonInstall = new QPushButton( i18n("&Install New Skin..."), this );
+ TQPushButton* buttonInstall = new TQPushButton( i18n("&Install New Skin..."), this );
hbox->addWidget(buttonInstall);
- buttonRemove = new QPushButton( i18n("&Remove Skin"), this );
+ buttonRemove = new TQPushButton( i18n("&Remove Skin"), this );
buttonRemove->setEnabled(false);
hbox->addWidget(buttonRemove);
vbox->addLayout(hbox);
- connect( skin_list, SIGNAL(highlighted(const QString &)), this, SLOT(selected()));
- connect( buttonInstall, SIGNAL(clicked()), this, SLOT(install()));
- connect( buttonRemove, SIGNAL(clicked()), this, SLOT(remove()));
- connect(waSkinManager, SIGNAL(updateSkinList()), this, SLOT(reopen()));
+ connect( skin_list, TQT_SIGNAL(highlighted(const TQString &)), this, TQT_SLOT(selected()));
+ connect( buttonInstall, TQT_SIGNAL(clicked()), this, TQT_SLOT(install()));
+ connect( buttonRemove, TQT_SIGNAL(clicked()), this, TQT_SLOT(remove()));
+ connect(waSkinManager, TQT_SIGNAL(updateSkinList()), this, TQT_SLOT(reopen()));
mWaSkinManager = waSkinManager;
- QGroupBox *settingsBox = new QGroupBox( 1, Vertical, i18n("Settings"), this );
+ TQGroupBox *settingsBox = new TQGroupBox( 1, Vertical, i18n("Settings"), this );
vbox->addWidget(settingsBox);
- QHBox *box = new QHBox(settingsBox);
- QLabel *label = new QLabel(i18n("T&itle scrolling speed:"), box);
- new QLabel(i18n("None"), box);
+ TQHBox *box = new TQHBox(settingsBox);
+ TQLabel *label = new TQLabel(i18n("T&itle scrolling speed:"), box);
+ new TQLabel(i18n("None"), box);
- scrollSpeed = new QSlider(box);
+ scrollSpeed = new TQSlider(box);
label->setBuddy(scrollSpeed);
- scrollSpeed->setMinimumSize( QSize( 80, 0 ) );
+ scrollSpeed->setMinimumSize( TQSize( 80, 0 ) );
scrollSpeed->setMinValue( 0 );
scrollSpeed->setMaxValue( 50 );
scrollSpeed->setPageStep( 1 );
- scrollSpeed->setOrientation( QSlider::Horizontal );
- scrollSpeed->setTickmarks( QSlider::NoMarks );
+ scrollSpeed->setOrientation( TQSlider::Horizontal );
+ scrollSpeed->setTickmarks( TQSlider::NoMarks );
- label = new QLabel(i18n("Fast"), box);
+ label = new TQLabel(i18n("Fast"), box);
reopen();
}
@@ -99,7 +99,7 @@ void WinSkinConfig::reopen() {
skin_list->clear();
// Get a list of skins
- QStringList skins = mWaSkinManager->availableSkins();
+ TQStringList skins = mWaSkinManager->availableSkins();
// This loop adds them all to our skin list
for(unsigned int x = 0;x < skins.count();x++) {
@@ -108,10 +108,10 @@ void WinSkinConfig::reopen() {
}
// Figure out our current skin
- QString orig_skin = mWaSkinManager->currentSkin();
+ TQString orig_skin = mWaSkinManager->currentSkin();
// Where is that skin in our big-list-o-skins?
- QListBoxItem *item = skin_list->findItem(orig_skin);
+ TQListBoxItem *item = skin_list->findItem(orig_skin);
if (item) {
// Aha, found it... make it the currently selected skin
@@ -135,14 +135,14 @@ void WinSkinConfig::selected()
void WinSkinConfig::install()
{
- QString url;
+ TQString url;
// Ask the user for directory containing a skin
- KURLRequesterDlg* udlg = new KURLRequesterDlg( QString::null, this, "udlg", true );
+ KURLRequesterDlg* udlg = new KURLRequesterDlg( TQString::null, this, "udlg", true );
udlg->urlRequester()->setFilter(mWaSkinManager->skinMimeTypes().join(" "));
udlg->urlRequester()->setMode( KFile::File | KFile::Directory | KFile::ExistingOnly );
- if( udlg->exec() == QDialog::Accepted ) {
+ if( udlg->exec() == TQDialog::Accepted ) {
url = udlg->urlRequester()->url();
mWaSkinManager->installSkin( url );
}
@@ -163,7 +163,7 @@ void WinSkinConfig::remove()
// Ask the user first
if( KMessageBox::warningContinueCancel( this,
- i18n("<qt>Are you sure you want to remove the <b>%1</b> skin?</qt>").arg( skin_list->currentText() ), QString::null, KStdGuiItem::del() )
+ i18n("<qt>Are you sure you want to remove the <b>%1</b> skin?</qt>").arg( skin_list->currentText() ), TQString::null, KStdGuiItem::del() )
== KMessageBox::Continue ) {
mWaSkinManager->removeSkin( skin_list->currentText() );