From e654398e46e37abf457b2b1122ab898d2c51c49f Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:43:15 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdemultimedia@1157644 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- noatun/modules/winskin/winSkinConfig.cpp | 68 ++++++++++++++++---------------- 1 file changed, 34 insertions(+), 34 deletions(-) (limited to 'noatun/modules/winskin/winSkinConfig.cpp') 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 #include -#include -#include -#include -#include +#include +#include +#include +#include #include #include -#include -#include -#include +#include +#include +#include #include #include #include #include #include #include -#include +#include #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("Are you sure you want to remove the %1 skin?").arg( skin_list->currentText() ), QString::null, KStdGuiItem::del() ) + i18n("Are you sure you want to remove the %1 skin?").arg( skin_list->currentText() ), TQString::null, KStdGuiItem::del() ) == KMessageBox::Continue ) { mWaSkinManager->removeSkin( skin_list->currentText() ); -- cgit v1.2.1