summaryrefslogtreecommitdiffstats
path: root/config/colordialog.h
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2016-03-25 20:03:28 +0100
committerSlávek Banko <slavek.banko@axis.cz>2016-03-25 20:03:28 +0100
commit2ee99ab520931c5efe91123c85ba10064a45e95d (patch)
treea367666e410de28d0f258aed77b11e17cafb28e4 /config/colordialog.h
parentcfa36e1a95e82492c17225ff376911abb3688f62 (diff)
downloadtde-style-baghira-2ee99ab520931c5efe91123c85ba10064a45e95d.tar.gz
tde-style-baghira-2ee99ab520931c5efe91123c85ba10064a45e95d.zip
Initial TQt conversion
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'config/colordialog.h')
-rw-r--r--config/colordialog.h68
1 files changed, 34 insertions, 34 deletions
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 <qdialog.h>
-#include <qrect.h>
-#include <qimage.h>
+#include <tqdialog.h>
+#include <tqrect.h>
+#include <tqimage.h>
-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);
};