diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-05 17:16:35 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-05 17:16:35 +0000 |
commit | 91064f3b1d93fb0449e588f70552f050b4033e9f (patch) | |
tree | 5d042542cfd52a1ea454774157300f0509b84441 /kcm_gtk/kcmgtk.h | |
parent | 5cf5e6b8214ace7beb2836bce2f2b3e3324222ca (diff) | |
download | gtk-qt-engine-91064f3b1d93fb0449e588f70552f050b4033e9f.tar.gz gtk-qt-engine-91064f3b1d93fb0449e588f70552f050b4033e9f.zip |
Port gtk-qt-engine to TQt4
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/gtk-qt-engine@1230499 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kcm_gtk/kcmgtk.h')
-rw-r--r-- | kcm_gtk/kcmgtk.h | 41 |
1 files changed, 21 insertions, 20 deletions
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; }; |