diff options
Diffstat (limited to 'kcm_gtk')
-rw-r--r-- | kcm_gtk/emacsdetails.ui | 18 | ||||
-rw-r--r-- | kcm_gtk/kcmgtk.cpp | 306 | ||||
-rw-r--r-- | kcm_gtk/kcmgtk.h | 41 | ||||
-rw-r--r-- | kcm_gtk/kcmgtkwidget.ui | 130 | ||||
-rw-r--r-- | kcm_gtk/mozillaprofile.ui | 8 | ||||
-rw-r--r-- | kcm_gtk/searchpaths.ui | 32 |
6 files changed, 268 insertions, 267 deletions
diff --git a/kcm_gtk/emacsdetails.ui b/kcm_gtk/emacsdetails.ui index 677a69c..489a356 100644 --- a/kcm_gtk/emacsdetails.ui +++ b/kcm_gtk/emacsdetails.ui @@ -1,10 +1,10 @@ <!DOCTYPE UI><UI version="3.3" stdsetdef="1"> <class>EmacsDetails</class> -<widget class="QDialog"> +<widget class="TQDialog"> <property name="name"> <cstring>EmacsDetails</cstring> </property> - <property name="geometry"> + <property name="tqgeometry"> <rect> <x>0</x> <y>0</y> @@ -19,7 +19,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel2</cstring> </property> @@ -28,7 +28,7 @@ When enabled, they will override the standard keyboard shortcuts in GTK applications.</string> </property> </widget> - <widget class="QListView"> + <widget class="TQListView"> <column> <property name="text"> <string>Shortcut</string> @@ -184,9 +184,9 @@ When enabled, they will override the standard keyboard shortcuts in GTK applicat <bool>true</bool> </property> </widget> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> - <cstring>layout13</cstring> + <cstring>tqlayout13</cstring> </property> <hbox> <property name="name"> @@ -202,14 +202,14 @@ When enabled, they will override the standard keyboard shortcuts in GTK applicat <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="sizeHint"> + <property name="tqsizeHint"> <size> <width>101</width> <height>21</height> </size> </property> </spacer> - <widget class="QPushButton"> + <widget class="TQPushButton"> <property name="name"> <cstring>pushButton4</cstring> </property> @@ -229,5 +229,5 @@ When enabled, they will override the standard keyboard shortcuts in GTK applicat <slot>close()</slot> </connection> </connections> -<layoutdefaults spacing="6" margin="11"/> +<tqlayoutdefaults spacing="6" margin="11"/> </UI> diff --git a/kcm_gtk/kcmgtk.cpp b/kcm_gtk/kcmgtk.cpp index 036836d..3c0860b 100644 --- a/kcm_gtk/kcmgtk.cpp +++ b/kcm_gtk/kcmgtk.cpp @@ -18,35 +18,35 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ -#include <qlayout.h> +#include <tqlayout.h> #include <klocale.h> #include <kglobal.h> #include <kfontdialog.h> #include <kiconloader.h> -#include <qfile.h> -#include <qtextstream.h> -#include <qregexp.h> -#include <qdir.h> -#include <qcombobox.h> -#include <qmap.h> -#include <qbuttongroup.h> -#include <qpushbutton.h> -#include <qradiobutton.h> -#include <qlabel.h> +#include <tqfile.h> +#include <tqtextstream.h> +#include <tqregexp.h> +#include <tqdir.h> +#include <tqcombobox.h> +#include <tqmap.h> +#include <tqbuttongroup.h> +#include <tqpushbutton.h> +#include <tqradiobutton.h> +#include <tqlabel.h> #include <kurllabel.h> #include <kapplication.h> #include <kfontcombo.h> -#include <qspinbox.h> +#include <tqspinbox.h> #include <ksqueezedtextlabel.h> #include <stdlib.h> #include <kmessagebox.h> #include <kconfig.h> -#include <qstyle.h> -#include <qheader.h> +#include <tqstyle.h> +#include <tqheader.h> #include <klistview.h> -#include <qmessagebox.h> -#include <qcheckbox.h> +#include <tqmessagebox.h> +#include <tqcheckbox.h> #include <kglobal.h> #include <kstandarddirs.h> @@ -56,19 +56,19 @@ #include "kcmgtk.h" #include "mozillaprofile.h" -const QString KcmGtk::GTK_RC_FILE(".gtkrc-2.0-kde-kde4"); -const QString KcmGtk::KDE_RC_DIR(KGlobal::dirs()->localkdedir() + "/env/"); -const QString KcmGtk::GTK_QT_RC_FILE("gtk-qt-engine.rc.sh"); +const TQString KcmGtk::GTK_RC_FILE(".gtkrc-2.0-kde-kde4"); +const TQString KcmGtk::KDE_RC_DIR(KGlobal::dirs()->localkdedir() + "/env/"); +const TQString KcmGtk::GTK_TQT_RC_FILE("gtk-qt-engine.rc.sh"); -/*typedef KGenericFactory<KcmGtk, QWidget> KcmGtkFactory; +/*typedef KGenericFactory<KcmGtk, TQWidget> KcmGtkFactory; K_EXPORT_COMPONENT_FACTORY( kcm_gtk, KcmGtkFactory("gtk"))*/ extern "C" { - KCModule *create_kcmgtk( QWidget * parent, const char * name ) + KCModule *create_kcmgtk( TQWidget * tqparent, const char * name ) { KGlobal::locale()->insertCatalogue( "gtkqtengine" ); - return new KcmGtk( parent, "kcmgtk" ); + return new KcmGtk( tqparent, "kcmgtk" ); } } @@ -77,21 +77,21 @@ GtkRcParser::GtkRcParser() { } -void GtkRcParser::parse(QString fileName) +void GtkRcParser::parse(TQString fileName) { - QFile file(fileName); + TQFile file(fileName); file.open(IO_ReadOnly); - QTextStream stream(&file); + TQTextStream stream(&file); - QRegExp includeRe("include\\s*\"([^\"]*)\""); - QRegExp fontRe("font_name\\s*=\\s*\"([^\"]*)\""); - QRegExp keyThemeRe("gtk-key-theme-name\\s*=\\s*\"([^\"]*)\""); + TQRegExp includeRe("include\\s*\"([^\"]*)\""); + TQRegExp fontRe("font_name\\s*=\\s*\"([^\"]*)\""); + TQRegExp keyThemeRe("gtk-key-theme-name\\s*=\\s*\"([^\"]*)\""); - QStringList includes; + TQStringList includes; while (1) { - QString line = stream.readLine(); + TQString line = stream.readLine(); if (line.isNull()) break; if (line.startsWith("#")) @@ -103,7 +103,7 @@ void GtkRcParser::parse(QString fileName) { if (includeRe.search(line) == -1) continue; - QString themePath = includeRe.cap(1); + TQString themePath = includeRe.cap(1); if (themePath.endsWith("/gtk-2.0/gtkrc") && !themePath.startsWith("/etc")) style = includeRe.cap(1); } @@ -118,7 +118,7 @@ void GtkRcParser::parse(QString fileName) { if (keyThemeRe.search(line) == -1) continue; - if (keyThemeRe.cap(1).lower() == "emacs") + if (TQString(keyThemeRe.cap(1)).lower() == "emacs") emacs = true; } } @@ -126,16 +126,16 @@ void GtkRcParser::parse(QString fileName) file.close(); } -QFont GtkRcParser::parseFont(QString fontString) +TQFont GtkRcParser::parseFont(TQString fontString) { - QFont ret; + TQFont ret; while (true) { - int lastSpacePos = fontString.findRev(' '); + int lastSpacePos = fontString.tqfindRev(' '); if (lastSpacePos == -1) break; - QString lastWord = fontString.right(fontString.length() - lastSpacePos).stripWhiteSpace(); + TQString lastWord = fontString.right(fontString.length() - lastSpacePos).stripWhiteSpace(); if (lastWord.lower() == "bold") ret.setBold(true); @@ -156,8 +156,8 @@ QFont GtkRcParser::parseFont(QString fontString) return ret; } -KcmGtk::KcmGtk(QWidget *parent, const char *name, const QStringList&) - : KCModule(parent, name), +KcmGtk::KcmGtk(TQWidget *tqparent, const char *name, const TQStringList&) + : KCModule(tqparent, name), myAboutData(0), emacsDetailsDialog(NULL), searchPathsDialog(NULL) @@ -166,17 +166,17 @@ KcmGtk::KcmGtk(QWidget *parent, const char *name, const QStringList&) config = new KConfig("kcmgtkrc"); - QStringList gtkSearchPathsDefault; + TQStringList gtkSearchPathsDefault; gtkSearchPathsDefault.append("/usr"); gtkSearchPathsDefault.append("/usr/local"); gtkSearchPathsDefault.append("/opt/gnome"); - gtkSearchPathsDefault.append(QDir::homeDirPath() + "/.local"); + gtkSearchPathsDefault.append(TQDir::homeDirPath() + "/.local"); gtkSearchPaths = config->readListEntry("gtkSearchPaths", gtkSearchPathsDefault); - // Add the widget to our layout - QBoxLayout* l = new QVBoxLayout(this); + // Add the widget to our tqlayout + TQBoxLayout* l = new TQVBoxLayout(this); widget = new KcmGtkWidget(this); l->addWidget(widget); @@ -191,33 +191,33 @@ KcmGtk::KcmGtk(QWidget *parent, const char *name, const QStringList&) load(); // Connect some signals - connect(widget->warning2, SIGNAL(leftClickedURL(const QString&)), KApplication::kApplication(), SLOT(invokeBrowser(const QString&))); - connect(widget->styleGroup, SIGNAL(clicked(int)), SLOT(itemChanged())); - connect(widget->fontGroup, SIGNAL(clicked(int)), SLOT(itemChanged())); - connect(widget->styleBox, SIGNAL(activated(int)), SLOT(itemChanged())); - connect(widget->styleBox, SIGNAL(activated(int)), SLOT(styleChanged())); - connect(widget->emacsBox, SIGNAL(toggled(bool)), SLOT(itemChanged())); - connect(widget->fontChange, SIGNAL(clicked()), SLOT(fontChangeClicked())); - connect(widget->firefoxFix, SIGNAL(clicked()), SLOT(firefoxFixClicked())); - connect(widget->emacsDetails, SIGNAL(clicked()), SLOT(emacsDetailsClicked())); - connect(widget->warning3, SIGNAL(clicked()), SLOT(searchPathsClicked())); + connect(widget->warning2, TQT_SIGNAL(leftClickedURL(const TQString&)), KApplication::kApplication(), TQT_SLOT(invokeBrowser(const TQString&))); + connect(widget->styleGroup, TQT_SIGNAL(clicked(int)), TQT_SLOT(itemChanged())); + connect(widget->fontGroup, TQT_SIGNAL(clicked(int)), TQT_SLOT(itemChanged())); + connect(widget->styleBox, TQT_SIGNAL(activated(int)), TQT_SLOT(itemChanged())); + connect(widget->styleBox, TQT_SIGNAL(activated(int)), TQT_SLOT(styleChanged())); + connect(widget->emacsBox, TQT_SIGNAL(toggled(bool)), TQT_SLOT(itemChanged())); + connect(widget->fontChange, TQT_SIGNAL(clicked()), TQT_SLOT(fontChangeClicked())); + connect(widget->firefoxFix, TQT_SIGNAL(clicked()), TQT_SLOT(firefoxFixClicked())); + connect(widget->emacsDetails, TQT_SIGNAL(clicked()), TQT_SLOT(emacsDetailsClicked())); + connect(widget->warning3, TQT_SIGNAL(clicked()), TQT_SLOT(searchPathsClicked())); } void KcmGtk::getInstalledThemes() { themes.clear(); - for ( QStringList::Iterator it = gtkSearchPaths.begin(); it != gtkSearchPaths.end(); ++it ) + for ( TQStringList::Iterator it = gtkSearchPaths.begin(); it != gtkSearchPaths.end(); ++it ) { - QString path = (*it) + "/share/themes/"; - QDir dir(path); - QStringList entryList = dir.entryList(QDir::Dirs, QDir::Unsorted); - for ( QStringList::Iterator it2 = entryList.begin(); it2 != entryList.end(); ++it2 ) + TQString path = (*it) + "/share/themes/"; + TQDir dir(path); + TQStringList entryList = dir.entryList(TQDir::Dirs, TQDir::Unsorted); + for ( TQStringList::Iterator it2 = entryList.begin(); it2 != entryList.end(); ++it2 ) { if ((*it2).startsWith(".")) continue; - if (themes.find(*it2) != themes.end()) + if (themes.tqfind(*it2) != themes.end()) continue; - if (!QFile::exists(path + (*it2) + "/gtk-2.0/gtkrc")) + if (!TQFile::exists(path + (*it2) + "/gtk-2.0/gtkrc")) continue; themes.insert((*it2), path + (*it2) + "/gtk-2.0/gtkrc"); } @@ -226,7 +226,7 @@ void KcmGtk::getInstalledThemes() widget->styleBox->clear(); widget->styleBox->insertStringList(themes.keys()); - bool installed = (themes.find("Qt") != themes.end()); + bool installed = (themes.tqfind("TQt") != themes.end()); widget->styleKde->setEnabled(installed); widget->warning1->setHidden(installed); widget->warning2->setHidden(installed); @@ -255,20 +255,20 @@ void KcmGtk::styleChanged() itemChanged(); } -QString KcmGtk::env(QString key) +TQString KcmGtk::env(TQString key) { char* value = getenv(key.latin1()); if (value == NULL) - return QString::null; + return TQString(); else - return QString(value); + return TQString(value); } void KcmGtk::updateFontPreview() { widget->fontPreview->setFont(font); widget->fontPreview->setText( - i18n("%1 (size %2)").arg(font.family()).arg(QString::number(font.pointSize()))); + i18n("%1 (size %2)").tqarg(font.family()).tqarg(TQString::number(font.pointSize()))); widget->fontPreview2->setFont(font); } @@ -281,18 +281,18 @@ KcmGtk::~KcmGtk() void KcmGtk::load() { - parser.parse(QDir::homeDirPath() + "/" + GTK_RC_FILE); + parser.parse(TQDir::homeDirPath() + "/" + GTK_RC_FILE); - bool usingQtEngine = false; + bool usingTQtEngine = false; if (!parser.style.isEmpty()) { - for ( QMapIterator<QString, QString> it = themes.begin(); it != themes.end(); ++it ) + for ( TQMapIterator<TQString, TQString> it = themes.begin(); it != themes.end(); ++it ) { if (it.data() != parser.style) continue; - if (it.key() == "Qt") - usingQtEngine = true; + if (it.key() == "TQt") + usingTQtEngine = true; for (int i=0 ; i<widget->styleBox->count() ; ++i) { @@ -306,17 +306,17 @@ void KcmGtk::load() break; } - if (usingQtEngine) + if (usingTQtEngine) widget->styleGroup->setButton(widget->styleGroup->id(widget->styleKde)); else widget->styleGroup->setButton(widget->styleGroup->id(widget->styleOther)); } font = parser.font; - if (QApplication::font().family() == font.family() && - QApplication::font().pointSize() == font.pointSize() && - QApplication::font().bold() == font.bold() && - QApplication::font().italic() == font.italic()) + if (TQApplication::font().family() == font.family() && + TQApplication::font().pointSize() == font.pointSize() && + TQApplication::font().bold() == font.bold() && + TQApplication::font().italic() == font.italic()) widget->fontGroup->setButton(widget->fontGroup->id(widget->fontKde)); else widget->fontGroup->setButton(widget->fontGroup->id(widget->fontOther)); @@ -330,24 +330,24 @@ void KcmGtk::load() void KcmGtk::save() { // First write out the gtkrc file - QFile file(QDir::homeDirPath() + "/" + GTK_RC_FILE); + TQFile file(TQDir::homeDirPath() + "/" + GTK_RC_FILE); file.open(IO_WriteOnly); - QTextStream stream(&file); + TQTextStream stream(&file); - QFont selectedFont(widget->fontKde->isChecked() ? QApplication::font() : font); - QString fontName = selectedFont.family() + " " + - QString(selectedFont.bold() ? "Bold " : "") + - QString(selectedFont.italic() ? "Italic " : "") + - QString::number(selectedFont.pointSize()); + TQFont selectedFont(widget->fontKde->isChecked() ? TQApplication::font() : font); + TQString fontName = selectedFont.family() + " " + + TQString(selectedFont.bold() ? "Bold " : "") + + TQString(selectedFont.italic() ? "Italic " : "") + + TQString::number(selectedFont.pointSize()); - QString themeName = widget->styleKde->isChecked() ? themes["Qt"] : themes[widget->styleBox->currentText()]; - QString themeNameShort = widget->styleKde->isChecked() ? QString("Qt") : widget->styleBox->currentText(); + TQString themeName = widget->styleKde->isChecked() ? themes["TQt"] : themes[widget->styleBox->currentText()]; + TQString themeNameShort = widget->styleKde->isChecked() ? TQString("TQt") : widget->styleBox->currentText(); stream << "# This file was written by KDE\n"; stream << "# You can edit it in the KDE control center, under \"GTK Styles and Fonts\"\n"; stream << "\n"; stream << "include \"" << themeName << "\"\n"; - if (QFile::exists("/etc/gtk-2.0/gtkrc")) + if (TQFile::exists("/etc/gtk-2.0/gtkrc")) stream << "include \"/etc/gtk-2.0/gtkrc\"\n"; stream << "\n"; stream << "style \"user-font\"\n"; @@ -365,22 +365,22 @@ void KcmGtk::save() file.close(); // Now we check if that file is actually being loaded. - QDir kdeRcDir; + TQDir kdeRcDir; if (!kdeRcDir.exists(KDE_RC_DIR)) { // Make sure KDE's rc dir exists kdeRcDir.mkdir(KDE_RC_DIR); } - file.setName(KDE_RC_DIR + "/" + GTK_QT_RC_FILE); + file.setName(KDE_RC_DIR + "/" + GTK_TQT_RC_FILE); bool envFileDidNotExist = (!file.exists()); file.open(IO_ReadWrite); - stream.setDevice(&file); + stream.setDevice(TQT_TQIODEVICE(&file)); bool found = false; for (;;) { - QString line = stream.readLine(); + TQString line = stream.readLine(); if (line.isNull()) break; @@ -404,16 +404,16 @@ void KcmGtk::save() // Tell the user to restart KDE if the environment file was created this time if (envFileDidNotExist) - QMessageBox::information(this, "Restart KDE", "Your changes have been saved, but you will have to restart KDE for them to take effect.", QMessageBox::Ok); + TQMessageBox::information(this, "Restart KDE", "Your changes have been saved, but you will have to restart KDE for them to take effect.", TQMessageBox::Ok); - // Older versions of the Gtk-Qt theme engine wrote directly into ~/.gtkrc-2.0 + // Older versions of the Gtk-TQt theme engine wrote directly into ~/.gtkrc-2.0 // If the user has upgraded, that file needs to be deleted so the old settings // won't override the new ones set now. - file.setName(QDir::homeDirPath() + "/.gtkrc-2.0"); + file.setName(TQDir::homeDirPath() + "/.gtkrc-2.0"); if (file.exists()) { file.open(IO_ReadOnly); - QString firstLine; + TQString firstLine; file.readLine(firstLine, 50); file.close(); @@ -422,19 +422,19 @@ void KcmGtk::save() } // Simarly, remove the line we added to ~/.bashrc to tell GTK to load ~/.gtkrc-2.0 - file.setName(QDir::homeDirPath() + "/.bashrc"); + file.setName(TQDir::homeDirPath() + "/.bashrc"); if (file.exists()) { file.open(IO_ReadOnly); - QByteArray fileData = file.readAll(); + TQByteArray fileData = file.readAll(); file.close(); - QString rcLine = "export GTK2_RC_FILES=$HOME/.gtkrc-2.0"; - QString fileDataString(fileData); - fileDataString.replace("\n" + rcLine, "\n# (This is no longer needed from version 0.8 of the theme engine)\n# " + rcLine); + TQString rcLine = "export GTK2_RC_FILES=$HOME/.gtkrc-2.0"; + TQString fileDataString(fileData); + fileDataString.tqreplace("\n" + rcLine, "\n# (This is no longer needed from version 0.8 of the theme engine)\n# " + rcLine); file.open(IO_WriteOnly); - stream.setDevice(&file); + stream.setDevice(TQT_TQIODEVICE(&file)); stream << fileDataString; file.close(); } @@ -448,7 +448,7 @@ int KcmGtk::buttons() return KCModule::Apply; } -QString KcmGtk::quickHelp() const +TQString KcmGtk::quickHelp() const { return i18n(""); } @@ -457,10 +457,10 @@ QString KcmGtk::quickHelp() const void KcmGtk::firefoxFixClicked() { profiles.clear(); - getProfiles(QDir::homeDirPath() + "/.mozilla/firefox/", 0); - getProfiles(QDir::homeDirPath() + "/.thunderbird/", 1); + getProfiles(TQDir::homeDirPath() + "/.mozilla/firefox/", 0); + getProfiles(TQDir::homeDirPath() + "/.thunderbird/", 1); - QString profilePath; + TQString profilePath; if (profiles.count() == 0) { KMessageBox::error(this, i18n("No Mozilla profiles found"), i18n("Could not load Mozilla profiles")); @@ -477,9 +477,9 @@ void KcmGtk::firefoxFixClicked() w->profilesList->header()->hide(); w->profilesList->hideColumn(1); - QPixmap icon = KGlobal::iconLoader()->loadIcon("kuser", KIcon::Small); + TQPixmap icon = KGlobal::iconLoader()->loadIcon("kuser", KIcon::Small); - for ( QMapIterator<QString,QString> it = profiles.begin(); it != profiles.end(); ++it ) + for ( TQMapIterator<TQString,TQString> it = profiles.begin(); it != profiles.end(); ++it ) { KListViewItem* i = new KListViewItem(w->profilesList); i->setPixmap(0, icon); @@ -488,13 +488,13 @@ void KcmGtk::firefoxFixClicked() } dialog->setMainWidget(w); - if (dialog->exec() == QDialog::Rejected) + if (dialog->exec() == TQDialog::Rejected) { delete dialog; return; } - QListViewItemIterator it2(w->profilesList, QListViewItemIterator::Selected); + TQListViewItemIterator it2(w->profilesList, TQListViewItemIterator::Selected); while (it2.current()) { KListViewItem* i = (KListViewItem*) it2.current(); @@ -508,22 +508,22 @@ void KcmGtk::firefoxFixClicked() KMessageBox::information(this, i18n("Your Mozilla profile was updated sucessfully. You must close and restart all Firefox and Thunderbird windows for the changes to take effect"), i18n("Mozilla profile")); } -void KcmGtk::getProfiles(const QString& basePath, int type) +void KcmGtk::getProfiles(const TQString& basePath, int type) { - QString fileName = basePath + "/profiles.ini"; - if (QFile::exists(fileName)) + TQString fileName = basePath + "/profiles.ini"; + if (TQFile::exists(fileName)) { KConfig config(fileName, true, false); - QStringList groups = config.groupList(); + TQStringList groups = config.groupList(); - for ( QStringList::Iterator it = groups.begin(); it != groups.end(); ++it ) + for ( TQStringList::Iterator it = groups.begin(); it != groups.end(); ++it ) { if (!(*it).lower().startsWith("profile")) continue; config.setGroup(*it); - QString name = (type ? i18n("Thunderbird") : i18n("Firefox")) + " - " + config.readEntry("Name"); - QString path = config.readEntry("Path"); + TQString name = (type ? i18n("Thunderbird") : i18n("Firefox")) + " - " + config.readEntry("Name"); + TQString path = config.readEntry("Path"); if (!path.startsWith("/")) path = basePath + path; profiles.insert(name, path); @@ -531,65 +531,65 @@ void KcmGtk::getProfiles(const QString& basePath, int type) } } -void KcmGtk::fixProfile(const QString& path) +void KcmGtk::fixProfile(const TQString& path) { - if (!QFile::exists(path + "/chrome")) + if (!TQFile::exists(path + "/chrome")) { - QDir dir(path); + TQDir dir(path); dir.mkdir("chrome"); } - QString data = scrollBarCSS(); + TQString data = scrollBarCSS(); writeFirefoxCSS(path + "/chrome/userChrome.css", data); writeFirefoxCSS(path + "/chrome/userContent.css", data); } -QString KcmGtk::scrollBarCSS() +TQString KcmGtk::scrollBarCSS() { // The following code determines how many buttons are on a scrollbar // It works by looking at each pixel of the scrollbar's area not taken up by the groove, // and asking the style which subcontrol is at that location. - QScrollBar sbar(NULL); + TQScrollBar sbar(NULL); sbar.setOrientation(Qt::Horizontal); sbar.setValue(1); sbar.resize(200,25); - QRect rect = qApp->style().querySubControlMetrics(QStyle::CC_ScrollBar, &sbar, QStyle::SC_ScrollBarGroove); + TQRect rect = tqApp->tqstyle().querySubControlMetrics(TQStyle::CC_ScrollBar, &sbar, TQStyle::SC_ScrollBarGroove); bool back1 = false; bool forward1 = false; bool back2 = false; bool forward2 = false; - QStyle::SubControl sc = QStyle::SC_None; - for (QPoint pos(0,7) ; pos.x()<rect.x() ; pos.setX(pos.x()+1)) + TQStyle::SubControl sc = TQStyle::SC_None; + for (TQPoint pos(0,7) ; pos.x()<rect.x() ; pos.setX(pos.x()+1)) { - QStyle::SubControl sc2 = qApp->style().querySubControl(QStyle::CC_ScrollBar, &sbar, pos); + TQStyle::SubControl sc2 = tqApp->tqstyle().querySubControl(TQStyle::CC_ScrollBar, &sbar, pos); if (sc != sc2) { - if (sc2 == QStyle::SC_ScrollBarAddLine) forward1 = true; - if (sc2 == QStyle::SC_ScrollBarSubLine) back1 = true; + if (sc2 == TQStyle::SC_ScrollBarAddLine) forward1 = true; + if (sc2 == TQStyle::SC_ScrollBarSubLine) back1 = true; sc = sc2; } } - sc = QStyle::SC_None; - for (QPoint pos(rect.x()+rect.width(),7) ; pos.x()<200 ; pos.setX(pos.x()+1)) + sc = TQStyle::SC_None; + for (TQPoint pos(rect.x()+rect.width(),7) ; pos.x()<200 ; pos.setX(pos.x()+1)) { - QStyle::SubControl sc2 = qApp->style().querySubControl(QStyle::CC_ScrollBar, &sbar, pos); + TQStyle::SubControl sc2 = tqApp->tqstyle().querySubControl(TQStyle::CC_ScrollBar, &sbar, pos); if (sc != sc2) { - if (sc2 == QStyle::SC_ScrollBarAddLine) forward2 = true; - if (sc2 == QStyle::SC_ScrollBarSubLine) back2 = true; + if (sc2 == TQStyle::SC_ScrollBarAddLine) forward2 = true; + if (sc2 == TQStyle::SC_ScrollBarSubLine) back2 = true; sc = sc2; } } - QString upTop = (back1 ? "-moz-box" : "none"); - QString downTop = (forward1 ? "-moz-box" : "none"); - QString upBottom = (back2 ? "-moz-box" : "none"); - QString downBottom = (forward2 ? "-moz-box" : "none"); + TQString upTop = (back1 ? "-moz-box" : "none"); + TQString downTop = (forward1 ? "-moz-box" : "none"); + TQString upBottom = (back2 ? "-moz-box" : "none"); + TQString downBottom = (forward2 ? "-moz-box" : "none"); - QString data; + TQString data; data += "/* The following four lines were added by KDE */\n"; data += "scrollbarbutton[sbattr=\"scrollbar-up-top\"] { display: " + upTop + " !important; }\n"; data += "scrollbarbutton[sbattr=\"scrollbar-down-top\"] { display: " + downTop + " !important; }\n"; @@ -599,16 +599,16 @@ QString KcmGtk::scrollBarCSS() return data; } -void KcmGtk::writeFirefoxCSS(const QString& path, const QString& data) +void KcmGtk::writeFirefoxCSS(const TQString& path, const TQString& data) { - QString fileData; - QFile file(path); + TQString fileData; + TQFile file(path); if (file.open(IO_ReadOnly)) { - QTextStream stream(&file); + TQTextStream stream(&file); for (;;) { - QString line = stream.readLine(); + TQString line = stream.readLine(); if (line.isNull()) break; @@ -627,10 +627,10 @@ void KcmGtk::writeFirefoxCSS(const QString& path, const QString& data) if (!file.open(IO_WriteOnly | IO_Truncate)) { - KMessageBox::error(this, i18n("Could not write to %1").arg(path), i18n("Mozilla profile")); + KMessageBox::error(this, i18n("Could not write to %1").tqarg(path), i18n("Mozilla profile")); return; } - QTextStream stream(&file); + TQTextStream stream(&file); stream << fileData << data; file.close(); @@ -653,16 +653,16 @@ void KcmGtk::searchPathsClicked() if (searchPathsDialog == NULL) { searchPathsDialog = new SearchPaths(this); - connect(searchPathsDialog->okButton, SIGNAL(clicked()), SLOT(searchPathsOk())); - connect(searchPathsDialog->pathBox, SIGNAL(textChanged(const QString&)), SLOT(searchPathsTextChanged(const QString&))); - connect(searchPathsDialog->pathList, SIGNAL(currentChanged(QListBoxItem*)), SLOT(searchPathsCurrentChanged(QListBoxItem*))); - connect(searchPathsDialog->addButton, SIGNAL(clicked()), SLOT(searchPathsAddClicked())); - connect(searchPathsDialog->removeButton, SIGNAL(clicked()), SLOT(searchPathsRemoveClicked())); + connect(searchPathsDialog->okButton, TQT_SIGNAL(clicked()), TQT_SLOT(searchPathsOk())); + connect(searchPathsDialog->pathBox, TQT_SIGNAL(textChanged(const TQString&)), TQT_SLOT(searchPathsTextChanged(const TQString&))); + connect(searchPathsDialog->pathList, TQT_SIGNAL(currentChanged(TQListBoxItem*)), TQT_SLOT(searchPathsCurrentChanged(TQListBoxItem*))); + connect(searchPathsDialog->addButton, TQT_SIGNAL(clicked()), TQT_SLOT(searchPathsAddClicked())); + connect(searchPathsDialog->removeButton, TQT_SIGNAL(clicked()), TQT_SLOT(searchPathsRemoveClicked())); } searchPathsDialog->pathList->clear(); - for (QStringList::Iterator it = gtkSearchPaths.begin(); it != gtkSearchPaths.end(); ++it ) - new QListBoxText(searchPathsDialog->pathList, *it); + for (TQStringList::Iterator it = gtkSearchPaths.begin(); it != gtkSearchPaths.end(); ++it ) + new TQListBoxText(searchPathsDialog->pathList, *it); searchPathsDialog->show(); } @@ -671,7 +671,7 @@ void KcmGtk::searchPathsOk() { gtkSearchPaths.clear(); int i=0; - QListBoxItem* item = 0; + TQListBoxItem* item = 0; while ((item = searchPathsDialog->pathList->item(i++))) gtkSearchPaths.append(item->text()); @@ -679,19 +679,19 @@ void KcmGtk::searchPathsOk() getInstalledThemes(); } -void KcmGtk::searchPathsTextChanged(const QString& text) +void KcmGtk::searchPathsTextChanged(const TQString& text) { searchPathsDialog->addButton->setDisabled(text.isEmpty()); } -void KcmGtk::searchPathsCurrentChanged(QListBoxItem* item) +void KcmGtk::searchPathsCurrentChanged(TQListBoxItem* item) { searchPathsDialog->removeButton->setEnabled(item != NULL); } void KcmGtk::searchPathsAddClicked() { - new QListBoxText(searchPathsDialog->pathList, searchPathsDialog->pathBox->text()); + new TQListBoxText(searchPathsDialog->pathList, searchPathsDialog->pathBox->text()); searchPathsDialog->pathBox->clear(); } diff --git a/kcm_gtk/kcmgtk.h b/kcm_gtk/kcmgtk.h index 2f132ab..039e39a 100644 --- a/kcm_gtk/kcmgtk.h +++ b/kcm_gtk/kcmgtk.h @@ -34,35 +34,36 @@ public: GtkRcParser(); ~GtkRcParser() {} - void parse(QString fileName); + void parse(TQString fileName); - QFont font; - QString style; + TQFont font; + TQString style; bool emacs; private: - QFont parseFont(QString fontString); + TQFont parseFont(TQString fontString); }; class KcmGtk: public KCModule { Q_OBJECT + TQ_OBJECT // How to name the kde-specific gtk-rc-file - static const QString GTK_RC_FILE; + static const TQString GTK_RC_FILE; // Where to search for KDE's config files - static const QString KDE_RC_DIR; + static const TQString KDE_RC_DIR; // How to name qtk-qt-engines rc-file - static const QString GTK_QT_RC_FILE; + static const TQString GTK_TQT_RC_FILE; public: - KcmGtk( QWidget *parent=0, const char *name=0, const QStringList& = QStringList() ); + KcmGtk( TQWidget *tqparent=0, const char *name=0, const TQStringList& = TQStringList() ); ~KcmGtk(); virtual void load(); virtual void save(); virtual int buttons(); - virtual QString quickHelp() const; + virtual TQString quickHelp() const; virtual const KAboutData *aboutData()const { return myAboutData; }; @@ -76,27 +77,27 @@ public slots: void searchPathsOk(); void searchPathsAddClicked(); void searchPathsRemoveClicked(); - void searchPathsTextChanged(const QString& text); - void searchPathsCurrentChanged(QListBoxItem* item); + void searchPathsTextChanged(const TQString& text); + void searchPathsCurrentChanged(TQListBoxItem* item); private: void updateFontPreview(); - void getProfiles(const QString& basePath, int type); - void fixProfile(const QString& path); - QString scrollBarCSS(); - void writeFirefoxCSS(const QString& path, const QString& data); + void getProfiles(const TQString& basePath, int type); + void fixProfile(const TQString& path); + TQString scrollBarCSS(); + void writeFirefoxCSS(const TQString& path, const TQString& data); void getInstalledThemes(); - QString env(QString key); + TQString env(TQString key); KcmGtkWidget* widget; - QMap<QString,QString> themes; + TQMap<TQString,TQString> themes; GtkRcParser parser; KAboutData *myAboutData; - QFont font; - QMap<QString,QString> profiles; + TQFont font; + TQMap<TQString,TQString> profiles; EmacsDetails* emacsDetailsDialog; - QStringList gtkSearchPaths; + TQStringList gtkSearchPaths; SearchPaths* searchPathsDialog; KConfig* config; }; diff --git a/kcm_gtk/kcmgtkwidget.ui b/kcm_gtk/kcmgtkwidget.ui index 99107ed..29697ab 100644 --- a/kcm_gtk/kcmgtkwidget.ui +++ b/kcm_gtk/kcmgtkwidget.ui @@ -1,10 +1,10 @@ <!DOCTYPE UI><UI version="3.3" stdsetdef="1"> <class>KcmGtkWidget</class> -<widget class="QWidget"> +<widget class="TQWidget"> <property name="name"> <cstring>KcmGtkWidget</cstring> </property> - <property name="geometry"> + <property name="tqgeometry"> <rect> <x>0</x> <y>0</y> @@ -22,7 +22,7 @@ <property name="margin"> <number>0</number> </property> - <widget class="QButtonGroup"> + <widget class="TQButtonGroup"> <property name="name"> <cstring>styleGroup</cstring> </property> @@ -41,15 +41,15 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> - <cstring>layout12</cstring> + <cstring>tqlayout12</cstring> </property> <vbox> <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>styleIcon</cstring> </property> @@ -67,7 +67,7 @@ <property name="sizeType"> <enum>Minimum</enum> </property> - <property name="sizeHint"> + <property name="tqsizeHint"> <size> <width>20</width> <height>16</height> @@ -76,9 +76,9 @@ </spacer> </vbox> </widget> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> - <cstring>layout17</cstring> + <cstring>tqlayout17</cstring> </property> <grid> <property name="name"> @@ -94,22 +94,22 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="sizeHint"> + <property name="tqsizeHint"> <size> <width>150</width> <height>21</height> </size> </property> </spacer> - <widget class="QLayoutWidget" row="3" column="0" rowspan="1" colspan="3"> + <widget class="TQLayoutWidget" row="3" column="0" rowspan="1" colspan="3"> <property name="name"> - <cstring>layout16</cstring> + <cstring>tqlayout16</cstring> </property> <hbox> <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QPushButton"> + <widget class="TQPushButton"> <property name="name"> <cstring>warning3</cstring> </property> @@ -127,7 +127,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="sizeHint"> + <property name="tqsizeHint"> <size> <width>176</width> <height>20</height> @@ -136,7 +136,7 @@ </spacer> </hbox> </widget> - <widget class="QRadioButton" row="0" column="0" rowspan="1" colspan="3"> + <widget class="TQRadioButton" row="0" column="0" rowspan="1" colspan="3"> <property name="name"> <cstring>styleKde</cstring> </property> @@ -144,7 +144,7 @@ <string>&Use my KDE style in GTK applications</string> </property> </widget> - <widget class="QComboBox" row="1" column="1"> + <widget class="TQComboBox" row="1" column="1"> <property name="name"> <cstring>styleBox</cstring> </property> @@ -160,7 +160,7 @@ <bool>false</bool> </property> </widget> - <widget class="QRadioButton" row="1" column="0"> + <widget class="TQRadioButton" row="1" column="0"> <property name="name"> <cstring>styleOther</cstring> </property> @@ -171,7 +171,7 @@ <bool>false</bool> </property> </widget> - <widget class="QLabel" row="2" column="0" rowspan="1" colspan="3"> + <widget class="TQLabel" row="2" column="0" rowspan="1" colspan="3"> <property name="name"> <cstring>warning1</cstring> </property> @@ -194,7 +194,7 @@ </widget> </hbox> </widget> - <widget class="QButtonGroup"> + <widget class="TQButtonGroup"> <property name="name"> <cstring>fontGroup</cstring> </property> @@ -213,15 +213,15 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> - <cstring>layout7_2</cstring> + <cstring>tqlayout7_2</cstring> </property> <vbox> <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>fontIcon</cstring> </property> @@ -239,7 +239,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="sizeHint"> + <property name="tqsizeHint"> <size> <width>20</width> <height>31</height> @@ -248,15 +248,15 @@ </spacer> </vbox> </widget> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> - <cstring>layout14</cstring> + <cstring>tqlayout14</cstring> </property> <grid> <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QPushButton" row="1" column="1"> + <widget class="TQPushButton" row="1" column="1"> <property name="name"> <cstring>fontChange</cstring> </property> @@ -274,14 +274,14 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="sizeHint"> + <property name="tqsizeHint"> <size> <width>238</width> <height>21</height> </size> </property> </spacer> - <widget class="QRadioButton" row="1" column="0"> + <widget class="TQRadioButton" row="1" column="0"> <property name="name"> <cstring>fontOther</cstring> </property> @@ -289,9 +289,9 @@ <string>Use another font:</string> </property> </widget> - <widget class="QLayoutWidget" row="3" column="0" rowspan="1" colspan="3"> + <widget class="TQLayoutWidget" row="3" column="0" rowspan="1" colspan="3"> <property name="name"> - <cstring>layout10</cstring> + <cstring>tqlayout10</cstring> </property> <hbox> <property name="name"> @@ -307,7 +307,7 @@ <property name="sizeType"> <enum>Fixed</enum> </property> - <property name="sizeHint"> + <property name="tqsizeHint"> <size> <width>20</width> <height>10</height> @@ -324,7 +324,7 @@ </widget> </hbox> </widget> - <widget class="QRadioButton" row="0" column="0" rowspan="1" colspan="3"> + <widget class="TQRadioButton" row="0" column="0" rowspan="1" colspan="3"> <property name="name"> <cstring>fontKde</cstring> </property> @@ -335,9 +335,9 @@ <string>Alt+Y</string> </property> </widget> - <widget class="QLayoutWidget" row="2" column="0" rowspan="1" colspan="3"> + <widget class="TQLayoutWidget" row="2" column="0" rowspan="1" colspan="3"> <property name="name"> - <cstring>layout13</cstring> + <cstring>tqlayout13</cstring> </property> <hbox> <property name="name"> @@ -353,7 +353,7 @@ <property name="sizeType"> <enum>Fixed</enum> </property> - <property name="sizeHint"> + <property name="tqsizeHint"> <size> <width>20</width> <height>16</height> @@ -367,7 +367,7 @@ <property name="text"> <string>Preview line 1</string> </property> - <property name="alignment"> + <property name="tqalignment"> <set>AlignVCenter</set> </property> </widget> @@ -377,7 +377,7 @@ </widget> </hbox> </widget> - <widget class="QGroupBox"> + <widget class="TQGroupBox"> <property name="name"> <cstring>groupBox2</cstring> </property> @@ -388,15 +388,15 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> - <cstring>layout10</cstring> + <cstring>tqlayout10</cstring> </property> <vbox> <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>keyboardIcon</cstring> </property> @@ -414,7 +414,7 @@ <property name="sizeType"> <enum>Minimum</enum> </property> - <property name="sizeHint"> + <property name="tqsizeHint"> <size> <width>21</width> <height>10</height> @@ -423,15 +423,15 @@ </spacer> </vbox> </widget> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> - <cstring>layout12</cstring> + <cstring>tqlayout12</cstring> </property> <vbox> <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QCheckBox"> + <widget class="TQCheckBox"> <property name="name"> <cstring>emacsBox</cstring> </property> @@ -442,15 +442,15 @@ <string>Alt+B</string> </property> </widget> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> - <cstring>layout11</cstring> + <cstring>tqlayout11</cstring> </property> <hbox> <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QPushButton"> + <widget class="TQPushButton"> <property name="name"> <cstring>emacsDetails</cstring> </property> @@ -468,7 +468,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="sizeHint"> + <property name="tqsizeHint"> <size> <width>141</width> <height>21</height> @@ -481,7 +481,7 @@ </widget> </hbox> </widget> - <widget class="QGroupBox"> + <widget class="TQGroupBox"> <property name="name"> <cstring>groupBox1</cstring> </property> @@ -500,15 +500,15 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> - <cstring>layout7_2_2</cstring> + <cstring>tqlayout7_2_2</cstring> </property> <vbox> <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>firefoxIcon</cstring> </property> @@ -526,7 +526,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="sizeHint"> + <property name="tqsizeHint"> <size> <width>20</width> <height>31</height> @@ -535,34 +535,34 @@ </spacer> </vbox> </widget> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> - <cstring>layout12</cstring> + <cstring>tqlayout12</cstring> </property> <vbox> <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel1</cstring> </property> <property name="text"> <string>Scrollbar buttons may sometimes be displayed incorrectly in Firefox and Thunderbird. This can be fixed by installing some files into your Mozilla profile.</string> </property> - <property name="alignment"> + <property name="tqalignment"> <set>WordBreak|AlignVCenter</set> </property> </widget> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> - <cstring>layout11</cstring> + <cstring>tqlayout11</cstring> </property> <hbox> <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QPushButton"> + <widget class="TQPushButton"> <property name="name"> <cstring>firefoxFix</cstring> </property> @@ -580,7 +580,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="sizeHint"> + <property name="tqsizeHint"> <size> <width>101</width> <height>21</height> @@ -593,14 +593,14 @@ </widget> </hbox> </widget> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel1_2</cstring> </property> <property name="text"> <string>Note that changes made here will only affect GTK applications when KDE is running. To change the styles and fonts used by applications in GNOME, use the GNOME configuration tools.</string> </property> - <property name="alignment"> + <property name="tqalignment"> <set>WordBreak|AlignVCenter</set> </property> </widget> @@ -614,7 +614,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="sizeHint"> + <property name="tqsizeHint"> <size> <width>51</width> <height>16</height> @@ -636,7 +636,7 @@ <tabstop>emacsDetails</tabstop> <tabstop>firefoxFix</tabstop> </tabstops> -<layoutdefaults spacing="6" margin="11"/> +<tqlayoutdefaults spacing="6" margin="11"/> <includehints> <includehint>kurllabel.h</includehint> <includehint>ksqueezedtextlabel.h</includehint> diff --git a/kcm_gtk/mozillaprofile.ui b/kcm_gtk/mozillaprofile.ui index 0c56821..ec55b8b 100644 --- a/kcm_gtk/mozillaprofile.ui +++ b/kcm_gtk/mozillaprofile.ui @@ -1,10 +1,10 @@ <!DOCTYPE UI><UI version="3.3" stdsetdef="1"> <class>MozillaProfileWidget</class> -<widget class="QWidget"> +<widget class="TQWidget"> <property name="name"> <cstring>MozillaProfileWidget</cstring> </property> - <property name="geometry"> + <property name="tqgeometry"> <rect> <x>0</x> <y>0</y> @@ -22,7 +22,7 @@ <property name="margin"> <number>0</number> </property> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>label</cstring> </property> @@ -67,7 +67,7 @@ </widget> <customwidgets> </customwidgets> -<layoutdefaults spacing="6" margin="11"/> +<tqlayoutdefaults spacing="6" margin="11"/> <includehints> <includehint>klistview.h</includehint> </includehints> diff --git a/kcm_gtk/searchpaths.ui b/kcm_gtk/searchpaths.ui index 3785983..9a22c30 100644 --- a/kcm_gtk/searchpaths.ui +++ b/kcm_gtk/searchpaths.ui @@ -1,10 +1,10 @@ <!DOCTYPE UI><UI version="3.3" stdsetdef="1"> <class>SearchPaths</class> -<widget class="QDialog"> +<widget class="TQDialog"> <property name="name"> <cstring>SearchPaths</cstring> </property> - <property name="geometry"> + <property name="tqgeometry"> <rect> <x>0</x> <y>0</y> @@ -19,36 +19,36 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel1</cstring> </property> <property name="text"> <string>The control center module could not find the GTK-Qt theme engine in its list of search paths. If you have installed it elsewhere, you will need to add the correct path to the list below.</string> </property> - <property name="alignment"> + <property name="tqalignment"> <set>WordBreak|AlignVCenter</set> </property> </widget> - <widget class="QListBox"> + <widget class="TQListBox"> <property name="name"> <cstring>pathList</cstring> </property> </widget> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> - <cstring>layout31</cstring> + <cstring>tqlayout31</cstring> </property> <hbox> <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLineEdit"> + <widget class="TQLineEdit"> <property name="name"> <cstring>pathBox</cstring> </property> </widget> - <widget class="QPushButton"> + <widget class="TQPushButton"> <property name="name"> <cstring>addButton</cstring> </property> @@ -62,7 +62,7 @@ <bool>true</bool> </property> </widget> - <widget class="QPushButton"> + <widget class="TQPushButton"> <property name="name"> <cstring>removeButton</cstring> </property> @@ -89,9 +89,9 @@ <enum>Horizontal</enum> </property> </widget> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> - <cstring>layout33</cstring> + <cstring>tqlayout33</cstring> </property> <hbox> <property name="name"> @@ -107,14 +107,14 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="sizeHint"> + <property name="tqsizeHint"> <size> <width>51</width> <height>20</height> </size> </property> </spacer> - <widget class="QPushButton"> + <widget class="TQPushButton"> <property name="name"> <cstring>okButton</cstring> </property> @@ -122,7 +122,7 @@ <string>Ok</string> </property> </widget> - <widget class="QPushButton"> + <widget class="TQPushButton"> <property name="name"> <cstring>cancelButton</cstring> </property> @@ -148,5 +148,5 @@ <slot>reject()</slot> </connection> </connections> -<layoutdefaults spacing="6" margin="11"/> +<tqlayoutdefaults spacing="6" margin="11"/> </UI> |