summaryrefslogtreecommitdiffstats
path: root/src/qt_main.c
blob: 8b5bf3b98198aeb2256f04f9bbe317be93d3ec68 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#if defined( HAVE_CONFIG_H )
# include "config.h"
#endif

#include <kdemacros.h>
#include <gmodule.h>
#include <stdio.h>
#include "qt_rc_style.h"
#include "qt_style.h"

#include "qt_qt_wrapper.h"

KDE_EXPORT void theme_init (GTypeModule *module);
KDE_EXPORT void theme_exit (void);
KDE_EXPORT GtkRcStyle * theme_create_rc_style (void);

KDE_EXPORT void theme_init (GTypeModule *module)
{
	createTQApp();
	qtengine_rc_style_register_type (module);
	qtengine_style_register_type (module);
}

KDE_EXPORT void theme_exit (void)
{
	destroyTQApp();
}

KDE_EXPORT GtkRcStyle * theme_create_rc_style (void)
{
	void *ptr = GTK_RC_STYLE (g_object_new (TQTENGINE_TYPE_RC_STYLE, NULL));  
	return (GtkRcStyle *)ptr;
}