summaryrefslogtreecommitdiffstats
path: root/tools/designer/shared/widgetdatabase.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/designer/shared/widgetdatabase.cpp')
-rw-r--r--tools/designer/shared/widgetdatabase.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/tools/designer/shared/widgetdatabase.cpp b/tools/designer/shared/widgetdatabase.cpp
index 6cbc34ac0..4a753d3ef 100644
--- a/tools/designer/shared/widgetdatabase.cpp
+++ b/tools/designer/shared/widgetdatabase.cpp
@@ -60,6 +60,14 @@ static TQPluginManager<WidgetInterface> *widgetPluginManager = 0;
static bool plugins_set_up = FALSE;
static bool was_in_setup = FALSE;
+// This is temporary code required till the integration of tqtinterface into tqt3 is completed.
+// It will be removed afterwards
+static TQString converted_widgets[] =
+{
+ "TQWidget", "TQWidgetStack",
+};
+size_t converted_widgets_size = sizeof(converted_widgets) / sizeof(TQString);
+
TQCleanupHandler<TQPluginManager<WidgetInterface> > cleanup_manager;
WidgetDatabaseRecord::WidgetDatabaseRecord()
@@ -721,6 +729,13 @@ TQString WidgetDatabase::includeFile( int id )
return TQString::null;
if ( r->includeFile.isNull() ) {
TQString rq = r->name;
+ for (size_t i = 0; i < converted_widgets_size; ++i)
+ {
+ if (rq == converted_widgets[i])
+ {
+ return rq.lower() + ".h";
+ }
+ }
if ( rq[ 0 ] == 'T' && rq[ 1 ] == 'Q')
rq = rq.mid(1);
return "nt" + rq.lower() + ".h";