diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:52:55 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:52:55 +0000 |
commit | 5f5ee2367157176ed223b86343eb0a9e4022e020 (patch) | |
tree | 6a9c87f14ee38e90eff3c77c784f14e4f38fd5a1 /kcalc/kcalc_button.h | |
parent | 4facf42feec57b22dcf46badc115ad6c5b5cc512 (diff) | |
download | tdeutils-5f5ee2367157176ed223b86343eb0a9e4022e020.tar.gz tdeutils-5f5ee2367157176ed223b86343eb0a9e4022e020.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeutils@1157653 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kcalc/kcalc_button.h')
-rw-r--r-- | kcalc/kcalc_button.h | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/kcalc/kcalc_button.h b/kcalc/kcalc_button.h index 0998b5f..6f103a3 100644 --- a/kcalc/kcalc_button.h +++ b/kcalc/kcalc_button.h @@ -43,7 +43,7 @@ class ButtonMode { public: ButtonMode(void) {}; - ButtonMode(QString &label, QString &tooltip, bool is_label_richtext) + ButtonMode(TQString &label, TQString &tooltip, bool is_label_richtext) : is_label_richtext(is_label_richtext), tooltip(tooltip) { if (is_label_richtext) @@ -52,9 +52,9 @@ public: this->label = label; }; - QString label; + TQString label; bool is_label_richtext; - QString tooltip; + TQString tooltip; }; @@ -63,27 +63,27 @@ class KCalcButton : public KPushButton Q_OBJECT public: - KCalcButton(QWidget *parent, const char * name = 0); - KCalcButton(const QString &label, QWidget *parent, const char * name = 0, - const QString &tooltip = QString()); + KCalcButton(TQWidget *parent, const char * name = 0); + KCalcButton(const TQString &label, TQWidget *parent, const char * name = 0, + const TQString &tooltip = TQString()); - void addMode(ButtonModeFlags mode, QString label, QString tooltip, bool is_label_richtext = false); + void addMode(ButtonModeFlags mode, TQString label, TQString tooltip, bool is_label_richtext = false); public slots: void slotSetMode(ButtonModeFlags mode, bool flag); void slotSetAccelDisplayMode(bool flag); protected: - virtual void drawButtonLabel(QPainter *paint); - void paintLabel(QPainter *paint); + virtual void drawButtonLabel(TQPainter *paint); + void paintLabel(TQPainter *paint); protected: bool _show_accel_mode; - QString _label; + TQString _label; ButtonModeFlags _mode_flags; - QMap<ButtonModeFlags, ButtonMode> _mode; + TQMap<ButtonModeFlags, ButtonMode> _mode; }; class KSquareButton : public KCalcButton @@ -91,15 +91,15 @@ class KSquareButton : public KCalcButton Q_OBJECT public: - KSquareButton(QWidget *parent, const char * name = 0) + KSquareButton(TQWidget *parent, const char * name = 0) : KCalcButton(parent, name) { }; - KSquareButton(const QString &label, QWidget *parent, const char * name = 0, - const QString &tooltip = QString()) + KSquareButton(const TQString &label, TQWidget *parent, const char * name = 0, + const TQString &tooltip = TQString()) : KCalcButton(label, parent, name, tooltip) { }; protected: - virtual void drawButtonLabel(QPainter *paint); - void paintLabel(QPainter *paint); + virtual void drawButtonLabel(TQPainter *paint); + void paintLabel(TQPainter *paint); }; #endif // _KCALC_BUTTON_H |