From e86f8310a920cbf1ecfac955fbad05916e954693 Mon Sep 17 00:00:00 2001 From: tpearson Date: Thu, 30 Jun 2011 19:20:52 +0000 Subject: TQt4 port knowit This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/knowit@1238876 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- src/knowitpref.h | 41 +++++++++++++++++++++-------------------- 1 file changed, 21 insertions(+), 20 deletions(-) (limited to 'src/knowitpref.h') diff --git a/src/knowitpref.h b/src/knowitpref.h index bc74398..8ec5d86 100644 --- a/src/knowitpref.h +++ b/src/knowitpref.h @@ -18,12 +18,12 @@ #ifndef KNOWITPREF_H #define KNOWITPREF_H -#include +#include #include -class QCheckBox; -class QSpinBox; -class QToolButton; +class TQCheckBox; +class TQSpinBox; +class TQToolButton; class KLineEdit; class KColorButton; class KDualColorButton; @@ -43,9 +43,9 @@ public: /* GUI */ bool horizontalSplit; int linkFormat; - QString defaultName; + TQString defaultName; bool alternateTree; - QString alternateColor; + TQString alternateColor; bool autoCollapse; /* Links */ bool firstLink; @@ -54,13 +54,13 @@ public: bool enterBreakLine; bool tabfocus; bool customColors; - QString backEditColor; - QString foreEditColor; + TQString backEditColor; + TQString foreEditColor; bool customFont; - QString fontFamily; + TQString fontFamily; int fontSize; /* Date format */ - QString insertDateFormat, insertDateColor; + TQString insertDateFormat, insertDateColor; bool insertDateBold, insertDateItalic, insertDateUnderline; void save(KConfig* config) const; void read(KConfig* config); @@ -72,24 +72,25 @@ public: class KnowitPreferences : public KDialogBase { Q_OBJECT + TQ_OBJECT private: - QCheckBox *docked, *reopen, *horizontalSplit, *multipleInstances, *backup; - QCheckBox *unconditionalSave; - QCheckBox *wordwrap, *tabfocus, *customColors; + TQCheckBox *docked, *reopen, *horizontalSplit, *multipleInstances, *backup; + TQCheckBox *unconditionalSave; + TQCheckBox *wordwrap, *tabfocus, *customColors; KDualColorButton* editColors; - QCheckBox *enterBreakLine; + TQCheckBox *enterBreakLine; KLineEdit *defaultName; - QCheckBox *alternateTree; + TQCheckBox *alternateTree; KColorButton *alternateColor; - QCheckBox* autoCollapse; - QCheckBox* customFont; + TQCheckBox* autoCollapse; + TQCheckBox* customFont; KComboBox *fontFamily, *fontSize; KComboBox *linkFormat; KLineEdit *insertDateFormatEdit; KColorButton *insertDateColorButton; - QLabel *insertDatePreview; - QSpinBox* autosave; - QToolButton *insertDateItalicButton, *insertDateBoldButton, *insertDateUnderlineButton; + TQLabel *insertDatePreview; + TQSpinBox* autosave; + TQToolButton *insertDateItalicButton, *insertDateBoldButton, *insertDateUnderlineButton; bool firstLink; int exportFlags; public: -- cgit v1.2.1