From 2ee99ab520931c5efe91123c85ba10064a45e95d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Fri, 25 Mar 2016 20:03:28 +0100 Subject: Initial TQt conversion MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- config/colordialog.h | 68 ++++++++++++++++++++++++++-------------------------- 1 file changed, 34 insertions(+), 34 deletions(-) (limited to 'config/colordialog.h') diff --git a/config/colordialog.h b/config/colordialog.h index 23c4808..42b6225 100644 --- a/config/colordialog.h +++ b/config/colordialog.h @@ -1,21 +1,21 @@ #ifndef COLORDIALOG_H #define COLORDIALOG_H -#include -#include -#include +#include +#include +#include -class QPushButton; -class QComboBox; -class QGroupBox; -class QPainter; +class TQPushButton; +class TQComboBox; +class TQGroupBox; +class TQPainter; class ColorDialog; -class QImage; -class QPixmap; +class TQImage; +class TQPixmap; enum Colors { Back = 0, Button, Base, Text, High, HighText, ButText, Alternate, NUMCOLORS }; -class DemoWindow : public QWidget +class DemoWindow : public TQWidget { Q_OBJECT @@ -27,26 +27,26 @@ private slots: void smartRepaint(); protected: - void mousePressEvent ( QMouseEvent * e ); - void paintEvent ( QPaintEvent * ); + void mousePressEvent ( TQMouseEvent * e ); + void paintEvent ( TQPaintEvent * ); private: - QPainter *p; - QPainter *pp; - QPixmap *pm; + TQPainter *p; + TQPainter *pp; + TQPixmap *pm; ColorDialog* colorDialog_; - QRect baseRect; - QRect buttonRect; - QRect buttonTextRect; - QRect highlightRect; - QRect textRect; - QRect highTextRect; - QRect alternateRect; - QImage baseImage; - QImage dest; + TQRect baseRect; + TQRect buttonRect; + TQRect buttonTextRect; + TQRect highlightRect; + TQRect textRect; + TQRect highTextRect; + TQRect alternateRect; + TQImage baseImage; + TQImage dest; private: - QImage & tintButton(QImage &src, QColor & c); + TQImage & tintButton(TQImage &src, TQColor & c); signals: void selected(Colors c); @@ -55,35 +55,35 @@ signals: class ColorPicker; -class ColorDialog : public QDialog +class ColorDialog : public TQDialog { friend class DemoWindow; friend class AppSetter; Q_OBJECT public: - ColorDialog( QWidget* parent = 0, const char* name = 0); + ColorDialog( TQWidget* parent = 0, const char* name = 0); ~ColorDialog(); - QPushButton *buttonOk; - QPushButton *buttonCancel; + TQPushButton *buttonOk; + TQPushButton *buttonCancel; void show(); protected: ColorPicker *picker[NUMCOLORS]; - void mouseReleaseEvent(QMouseEvent* me); + void mouseReleaseEvent(TQMouseEvent* me); DemoWindow *demo; private: - QPushButton *buttonCP; + TQPushButton *buttonCP; bool gettingColorFromScreen; - QComboBox *other; + TQComboBox *other; private slots: void grabColor(); - void getFromOther( const QString & string ); + void getFromOther( const TQString & string ); signals: - void colorChanged(QColor color); + void colorChanged(TQColor color); }; -- cgit v1.2.1