summaryrefslogtreecommitdiffstats
path: root/src/qt_style.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-05 17:16:35 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-05 17:16:35 +0000
commit91064f3b1d93fb0449e588f70552f050b4033e9f (patch)
tree5d042542cfd52a1ea454774157300f0509b84441 /src/qt_style.h
parent5cf5e6b8214ace7beb2836bce2f2b3e3324222ca (diff)
downloadgtk-qt-engine-91064f3b1d93fb0449e588f70552f050b4033e9f.tar.gz
gtk-qt-engine-91064f3b1d93fb0449e588f70552f050b4033e9f.zip
Port gtk-qt-engine to TQt4
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/gtk-qt-engine@1230499 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/qt_style.h')
-rw-r--r--src/qt_style.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/qt_style.h b/src/qt_style.h
index 4a4bc78..425215f 100644
--- a/src/qt_style.h
+++ b/src/qt_style.h
@@ -1,27 +1,27 @@
#include <gtk/gtkstyle.h>
-typedef struct _QtEngineStyle QtEngineStyle;
-typedef struct _QtEngineStyleClass QtEngineStyleClass;
+typedef struct _TQtEngineStyle TQtEngineStyle;
+typedef struct _TQtEngineStyleClass TQtEngineStyleClass;
extern GType qtengine_type_style;
-#define QTENGINE_TYPE_STYLE qtengine_type_style
-#define QTENGINE_STYLE(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), QTENGINE_TYPE_STYLE, QtEngineStyle))
-#define QTENGINE_STYLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), QTENGINE_TYPE_STYLE, QtEngineStyleClass))
-#define QTENGINE_IS_STYLE(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), QTENGINE_TYPE_STYLE))
-#define QTENGINE_IS_STYLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), QTENGINE_TYPE_STYLE))
-#define QTENGINE_STYLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), QTENGINE_TYPE_STYLE, QtEngineStyleClass))
+#define TQTENGINE_TYPE_STYLE qtengine_type_style
+#define TQTENGINE_STYLE(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), TQTENGINE_TYPE_STYLE, TQtEngineStyle))
+#define TQTENGINE_STYLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TQTENGINE_TYPE_STYLE, TQtEngineStyleClass))
+#define TQTENGINE_IS_STYLE(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), TQTENGINE_TYPE_STYLE))
+#define TQTENGINE_IS_STYLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TQTENGINE_TYPE_STYLE))
+#define TQTENGINE_STYLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TQTENGINE_TYPE_STYLE, TQtEngineStyleClass))
-struct _QtEngineStyle
+struct _TQtEngineStyle
{
- GtkStyle parent_instance;
+ GtkStyle tqparent_instance;
GdkPixmap* menuBackground;
};
-struct _QtEngineStyleClass
+struct _TQtEngineStyleClass
{
- GtkStyleClass parent_class;
+ GtkStyleClass tqparent_class;
};
void qtengine_style_register_type (GTypeModule *module);