From eba47f8f0637f451e21348187591e1f1fd58ac74 Mon Sep 17 00:00:00 2001 From: tpearson Date: Mon, 2 Aug 2010 19:23:46 +0000 Subject: TQt conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1158446 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kcoloredit/loadpalettedlg.cpp | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) (limited to 'kcoloredit/loadpalettedlg.cpp') diff --git a/kcoloredit/loadpalettedlg.cpp b/kcoloredit/loadpalettedlg.cpp index b426a874..23def4d5 100644 --- a/kcoloredit/loadpalettedlg.cpp +++ b/kcoloredit/loadpalettedlg.cpp @@ -17,11 +17,11 @@ #include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include #include #include #include @@ -31,22 +31,22 @@ #include "palette.h" #include "loadpalettedlg.h" -LoadPaletteDlg::LoadPaletteDlg(QWidget *parent, const char *name) +LoadPaletteDlg::LoadPaletteDlg(TQWidget *parent, const char *name) : KDialogBase(parent, name, true, i18n( "Load Palette" ), Ok|Cancel, Ok, true) { fileName = ""; - QWidget *mainWidget = new QWidget( this ); + TQWidget *mainWidget = new TQWidget( this ); setMainWidget( mainWidget ); - QVBoxLayout* topLayout = new QVBoxLayout(mainWidget, 0, spacingHint()); - QLabel* label = new QLabel(i18n( "Select a palette:" ), mainWidget); + TQVBoxLayout* topLayout = new TQVBoxLayout(mainWidget, 0, spacingHint()); + TQLabel* label = new TQLabel(i18n( "Select a palette:" ), mainWidget); topLayout->addWidget(label); - paletteBox = new QComboBox(false, mainWidget); + paletteBox = new TQComboBox(false, mainWidget); browseFileNameInserted = false; - QStringList palettesList = Palette::kdePalettes(); - for(QStringList::Iterator palette = palettesList.begin(); + TQStringList palettesList = Palette::kdePalettes(); + for(TQStringList::Iterator palette = palettesList.begin(); palette != palettesList.end(); ++palette) { bool prepend = (*palette).contains( "colors/Custom_Colors" ); - QString fileName = locate("config", (*palette)); + TQString fileName = locate("config", (*palette)); if(prepend) { palettesFileNames.prepend(fileName); setFileName(&fileName); @@ -55,7 +55,7 @@ LoadPaletteDlg::LoadPaletteDlg(QWidget *parent, const char *name) if(palette == palettesList.begin()) setFileName(&fileName); } - QString paletteName = (*palette).mid(palettesDir.length() + 1); + TQString paletteName = (*palette).mid(palettesDir.length() + 1); if(paletteName == "Custom_Colors") paletteName = i18n("Custom Colors"); else if(paletteName == "Recent_Colors") @@ -65,12 +65,12 @@ LoadPaletteDlg::LoadPaletteDlg(QWidget *parent, const char *name) else paletteBox->insertItem(paletteName); } - connect(paletteBox, SIGNAL( activated(int) ), SLOT( setFileName(int) )); + connect(paletteBox, TQT_SIGNAL( activated(int) ), TQT_SLOT( setFileName(int) )); topLayout->addWidget(paletteBox); - QHBoxLayout* browseLayout = new QHBoxLayout( mainWidget ); - QPushButton* browseButton = new QPushButton(i18n( "Browse..." ), + TQHBoxLayout* browseLayout = new TQHBoxLayout( mainWidget ); + TQPushButton* browseButton = new TQPushButton(i18n( "Browse..." ), mainWidget); - connect(browseButton, SIGNAL( clicked() ), SLOT( browseFileNames() )); + connect(browseButton, TQT_SIGNAL( clicked() ), TQT_SLOT( browseFileNames() )); browseLayout->addWidget(browseButton); browseLayout->addStretch(10); topLayout->addLayout(browseLayout); @@ -80,7 +80,7 @@ LoadPaletteDlg::LoadPaletteDlg(QWidget *parent, const char *name) LoadPaletteDlg::~LoadPaletteDlg() { } -void LoadPaletteDlg::setFileName(QString* fileName) { +void LoadPaletteDlg::setFileName(TQString* fileName) { this->fileName = *fileName; } @@ -89,7 +89,7 @@ void LoadPaletteDlg::setFileName(int index) { } void LoadPaletteDlg::browseFileNames() { - QString fileToOpen = KFileDialog::getOpenFileName(lastOpenPaletteFileDir, + TQString fileToOpen = KFileDialog::getOpenFileName(lastOpenPaletteFileDir, i18n("*|All Files"), this, i18n("Open File")); if(!fileToOpen.isEmpty()) { fileName = fileToOpen; @@ -105,7 +105,7 @@ void LoadPaletteDlg::browseFileNames() { } } -QString LoadPaletteDlg::getFileName() { +TQString LoadPaletteDlg::getFileName() { return fileName; } #include "loadpalettedlg.moc" -- cgit v1.2.1