summaryrefslogtreecommitdiffstats
path: root/kmahjongg/Preview.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-11 04:58:26 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-11 04:58:26 +0000
commit838baf3f99ec5ab81b063eb5449a3381d860f377 (patch)
treedd31abcfde08ca92e4623b8f50b3d762a87c997a /kmahjongg/Preview.h
parent2bf598bafa22fac4126fc8842df6b0119aadc0e9 (diff)
downloadtdegames-838baf3f99ec5ab81b063eb5449a3381d860f377.tar.gz
tdegames-838baf3f99ec5ab81b063eb5449a3381d860f377.zip
TQt4 port kdegames
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegames@1236074 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kmahjongg/Preview.h')
-rw-r--r--kmahjongg/Preview.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/kmahjongg/Preview.h b/kmahjongg/Preview.h
index 96aae3ef..0c4b37c2 100644
--- a/kmahjongg/Preview.h
+++ b/kmahjongg/Preview.h
@@ -12,11 +12,12 @@
class TQComboBox;
class TQPixmap;
-class FrameImage: public QFrame
+class FrameImage: public TQFrame
{
Q_OBJECT
+ TQ_OBJECT
public:
- FrameImage(TQWidget *parent=NULL, const char *name = NULL);
+ FrameImage(TQWidget *tqparent=NULL, const char *name = NULL);
~FrameImage();
void setGeometry(int x, int y, int w, int h);
TQPixmap *getPreviewPixmap() {return thePixmap;}
@@ -43,11 +44,12 @@ private:
class Preview: public KDialogBase
{
Q_OBJECT
+ TQ_OBJECT
public:
enum PreviewType {background, tileset, board, theme};
- Preview(TQWidget* parent);
+ Preview(TQWidget* tqparent);
~Preview();
void initialise(const PreviewType type);
@@ -61,7 +63,7 @@ protected:
virtual void drawPreview();
void applyChange() ;
void renderBackground(const TQString &bg);
- void renderTiles(const TQString &file, const TQString &layout);
+ void renderTiles(const TQString &file, const TQString &tqlayout);
void paintEvent( TQPaintEvent* pa );
signals:
@@ -69,7 +71,7 @@ signals:
void loadTileset(const TQString &);
void loadBackground(const TQString &, bool);
void loadBoard(const TQString &);
- void layoutChange();
+ void tqlayoutChange();
public slots:
void selectionChanged(int which);