From c663b6440964f6ac48027143ac9e63298991f9d0 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:33:34 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1157639 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kcontrol/input/core/themepage.cpp | 40 +++++++++++++++++++-------------------- kcontrol/input/core/themepage.h | 6 +++--- 2 files changed, 23 insertions(+), 23 deletions(-) (limited to 'kcontrol/input/core') diff --git a/kcontrol/input/core/themepage.cpp b/kcontrol/input/core/themepage.cpp index d83b28cb7..a2b5f1b86 100644 --- a/kcontrol/input/core/themepage.cpp +++ b/kcontrol/input/core/themepage.cpp @@ -31,11 +31,11 @@ #include #include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include #include "themepage.h" #include "themepage.moc" @@ -49,15 +49,15 @@ namespace { } -ThemePage::ThemePage( QWidget* parent, const char* name ) - : QWidget( parent, name ) +ThemePage::ThemePage( TQWidget* parent, const char* name ) + : TQWidget( parent, name ) { - QBoxLayout *layout = new QVBoxLayout( this ); + TQBoxLayout *layout = new TQVBoxLayout( this ); layout->setAutoAdd( true ); layout->setMargin( KDialog::marginHint() ); layout->setSpacing( KDialog::spacingHint() ); - new QLabel( i18n("Select the cursor theme you want to use:"), this ); + new TQLabel( i18n("Select the cursor theme you want to use:"), this ); // Create the theme list view listview = new KListView( this ); @@ -66,8 +66,8 @@ ThemePage::ThemePage( QWidget* parent, const char* name ) listview->addColumn( i18n("Name") ); listview->addColumn( i18n("Description") ); - connect( listview, SIGNAL(selectionChanged(QListViewItem*)), - SLOT(selectionChanged(QListViewItem*)) ); + connect( listview, TQT_SIGNAL(selectionChanged(TQListViewItem*)), + TQT_SLOT(selectionChanged(TQListViewItem*)) ); insertThemes(); } @@ -78,7 +78,7 @@ ThemePage::~ThemePage() } -void ThemePage::selectionChanged( QListViewItem *item ) +void ThemePage::selectionChanged( TQListViewItem *item ) { selectedTheme = item->text( DirColumn ); emit changed( selectedTheme != currentTheme ); @@ -130,7 +130,7 @@ void ThemePage::load( bool useDefaults ) currentTheme = whiteCursor ? "SmallWhite" : "SmallBlack"; selectedTheme = currentTheme; - QListViewItem *item = listview->findItem( currentTheme, DirColumn ); + TQListViewItem *item = listview->findItem( currentTheme, DirColumn ); item->setSelected( true ); } @@ -147,22 +147,22 @@ void ThemePage::insertThemes() item = new KListViewItem( listview, i18n("Small black"), i18n("Small black cursors"), "SmallBlack" ); - item->setPixmap( 0, QPixmap( arrow_small_black_xpm ) ); + item->setPixmap( 0, TQPixmap( arrow_small_black_xpm ) ); listview->insertItem( item ); item = new KListViewItem( listview, i18n("Large black"), i18n("Large black cursors"), "LargeBlack" ); - item->setPixmap( 0, QPixmap( arrow_large_black_xpm ) ); + item->setPixmap( 0, TQPixmap( arrow_large_black_xpm ) ); listview->insertItem( item ); item = new KListViewItem( listview, i18n("Small white"), i18n("Small white cursors"), "SmallWhite" ); - item->setPixmap( 0, QPixmap( arrow_small_white_xpm ) ); + item->setPixmap( 0, TQPixmap( arrow_small_white_xpm ) ); listview->insertItem( item ); item = new KListViewItem( listview, i18n("Large white"), i18n("Large white cursors"), "LargeWhite" ); - item->setPixmap( 0, QPixmap( arrow_large_white_xpm ) ); + item->setPixmap( 0, TQPixmap( arrow_large_white_xpm ) ); listview->insertItem( item ); } @@ -179,8 +179,8 @@ void ThemePage::fixCursorFile() // Run mkfontdir to update fonts.dir in that dir. KGlobal::dirs()->addResourceType( "font", "share/fonts/" ); - KIO::mkdir( KURL::fromPathOrURL(QDir::homeDirPath() + "/.fonts/kde-override") ); - QString overrideDir = QDir::homeDirPath() + "/.fonts/kde-override/"; + KIO::mkdir( KURL::fromPathOrURL(TQDir::homeDirPath() + "/.fonts/kde-override") ); + TQString overrideDir = TQDir::homeDirPath() + "/.fonts/kde-override/"; KURL installedFont; installedFont.setPath( overrideDir + "cursor.pcf.gz" ); @@ -200,7 +200,7 @@ void ThemePage::fixCursorFile() KIO::NetAccess::file_copy( source, installedFont, -1, true ); } - QString cmd = KGlobal::dirs()->findExe( "mkfontdir" ); + TQString cmd = KGlobal::dirs()->findExe( "mkfontdir" ); if ( !cmd.isEmpty() ) { KProcess p; diff --git a/kcontrol/input/core/themepage.h b/kcontrol/input/core/themepage.h index 491c11f75..b4c964037 100644 --- a/kcontrol/input/core/themepage.h +++ b/kcontrol/input/core/themepage.h @@ -27,7 +27,7 @@ class ThemePage : public QWidget Q_OBJECT public: - ThemePage( QWidget* parent = 0, const char* name = 0 ); + ThemePage( TQWidget* parent = 0, const char* name = 0 ); ~ThemePage(); // Called by the KCM @@ -40,14 +40,14 @@ class ThemePage : public QWidget void changed( bool ); private slots: - void selectionChanged( QListViewItem * ); + void selectionChanged( TQListViewItem * ); private: void insertThemes(); void fixCursorFile(); KListView *listview; - QString currentTheme, selectedTheme; + TQString currentTheme, selectedTheme; }; #endif // __THEMEPAGE_H -- cgit v1.2.1