summaryrefslogtreecommitdiffstats
path: root/kmahjongg/Preview.h
diff options
context:
space:
mode:
Diffstat (limited to 'kmahjongg/Preview.h')
-rw-r--r--kmahjongg/Preview.h48
1 files changed, 24 insertions, 24 deletions
diff --git a/kmahjongg/Preview.h b/kmahjongg/Preview.h
index 4f58e2cd..00629c8b 100644
--- a/kmahjongg/Preview.h
+++ b/kmahjongg/Preview.h
@@ -3,7 +3,7 @@
#include <kdialogbase.h>
-#include <qframe.h>
+#include <tqframe.h>
#include "Tileset.h"
#include "BoardLayout.h"
@@ -16,20 +16,20 @@ class FrameImage: public QFrame
{
Q_OBJECT
public:
- FrameImage(QWidget *parent=NULL, const char *name = NULL);
+ FrameImage(TQWidget *parent=NULL, const char *name = NULL);
~FrameImage();
void setGeometry(int x, int y, int w, int h);
- QPixmap *getPreviewPixmap() {return thePixmap;}
+ TQPixmap *getPreviewPixmap() {return thePixmap;}
void setRect(int x, int y, int w, int h, int ss, int type);
signals:
- void mousePressed(QMouseEvent *e);
- void mouseMoved(QMouseEvent *e);
+ void mousePressed(TQMouseEvent *e);
+ void mouseMoved(TQMouseEvent *e);
protected:
- void mousePressEvent(QMouseEvent *e);
- void mouseMoveEvent(QMouseEvent *e);
- void paintEvent( QPaintEvent* pa );
+ void mousePressEvent(TQMouseEvent *e);
+ void mouseMoveEvent(TQMouseEvent *e);
+ void paintEvent( TQPaintEvent* pa );
private:
- QPixmap *thePixmap;
+ TQPixmap *thePixmap;
int rx;
int ry;
int rw;
@@ -47,7 +47,7 @@ class Preview: public KDialogBase
public:
enum PreviewType {background, tileset, board, theme};
- Preview(QWidget* parent);
+ Preview(TQWidget* parent);
~Preview();
void initialise(const PreviewType type);
@@ -57,18 +57,18 @@ protected:
void markUnchanged();
void markChanged();
bool isChanged();
- QPixmap *getPreviewPixmap() {return m_drawFrame->getPreviewPixmap(); }
+ TQPixmap *getPreviewPixmap() {return m_drawFrame->getPreviewPixmap(); }
virtual void drawPreview();
void applyChange() ;
- void renderBackground(const QString &bg);
- void renderTiles(const QString &file, const QString &layout);
- void paintEvent( QPaintEvent* pa );
+ void renderBackground(const TQString &bg);
+ void renderTiles(const TQString &file, const TQString &layout);
+ void paintEvent( TQPaintEvent* pa );
signals:
void boardRedraw(bool);
- void loadTileset(const QString &);
- void loadBackground(const QString &, bool);
- void loadBoard(const QString &);
+ void loadTileset(const TQString &);
+ void loadBackground(const TQString &, bool);
+ void loadBoard(const TQString &);
void layoutChange();
public slots:
@@ -83,22 +83,22 @@ private slots:
protected:
FrameImage *m_drawFrame;
- QComboBox *m_combo;
+ TQComboBox *m_combo;
- QString m_selectedFile;
+ TQString m_selectedFile;
Tileset m_tiles;
BoardLayout m_boardLayout;
Background m_back;
private:
- QString m_fileSelector;
+ TQString m_fileSelector;
bool m_changed;
- QStringList m_fileList;
+ TQStringList m_fileList;
PreviewType m_previewType;
- QString m_themeBack;
- QString m_themeLayout;
- QString m_themeTileset;
+ TQString m_themeBack;
+ TQString m_themeLayout;
+ TQString m_themeTileset;
};
#endif