Remove temporary code required for the tqinterface migration phase introduced in commit 8ac0e970

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/189/head
Michele Calgaro 2 months ago
parent 8721929234
commit 232dd26c83
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -60,28 +60,6 @@ static TQPluginManager<WidgetInterface> *widgetPluginManager = 0;
static bool plugins_set_up = FALSE; static bool plugins_set_up = FALSE;
static bool was_in_setup = 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[] =
{
"TQButton", "TQButtonGroup",
"TQCheckBox", "TQColorDialog", "TQComboBox",
"TQDateTimeEdit", "TQDesktopWidget", "TQDial", "TQDialog", "TQDockArea", "TQDockWindow",
"TQFileDialog", "TQFrame",
"TQGrid", "TQGridView", "TQGroupBox",
"TQHBox", "TQHButtonGroup", "TQHeader", "TQHGroupBox",
"TQIconView", "TQInputDialog",
"TQLabel", "TQLCDNumber", "TQLineEdit", "TQListBox", "TQListView",
"TQMainWindow", "TQMenuBar", "TQMessageBox", "TQMultiLineEdit",
"TQPopupMenu", "TQPrintDialog", "TQProgressBar", "TQProgressDialog", "TQPushButton",
"TQRadioButton",
"TQScrollBar", "TQScrollView", "TQSizeGrip", "TQSlider", "TQSpinBox", "TQStatusBar",
"TQTabBar", "TQTabDialog", "TQTabWidget", "TQTable", "TQTextBrowser", "TQTextEdit", "TQTextView", "TQToolBar", "TQToolBox", "TQToolButton", "TQToolTip",
"TQVBox", "TQVButtonGroup", "TQVGroupBox",
"TQWidget", "TQWidgetStack", "TQWizard", "TQWorkspace"
};
size_t converted_widgets_size = sizeof(converted_widgets) / sizeof(TQString);
TQCleanupHandler<TQPluginManager<WidgetInterface> > cleanup_manager; TQCleanupHandler<TQPluginManager<WidgetInterface> > cleanup_manager;
WidgetDatabaseRecord::WidgetDatabaseRecord() WidgetDatabaseRecord::WidgetDatabaseRecord()
@ -741,18 +719,11 @@ TQString WidgetDatabase::includeFile( int id )
WidgetDatabaseRecord *r = at( id ); WidgetDatabaseRecord *r = at( id );
if ( !r ) if ( !r )
return TQString::null; return TQString::null;
if ( r->includeFile.isNull() ) { // Must use 'isNull()' and not 'isEmpty()' here, otherwise the code
TQString rq = r->name; // will FTBFS due to the 'TQLayoutWidget' class
for (size_t i = 0; i < converted_widgets_size; ++i) if ( r->includeFile.isNull() )
{ {
if (rq == converted_widgets[i]) return r->name.lower() + ".h";
{
return rq.lower() + ".h";
}
}
if ( rq[ 0 ] == 'T' && rq[ 1 ] == 'Q')
rq = rq.mid(1);
return "nt" + rq.lower() + ".h";
} }
return r->includeFile; return r->includeFile;
} }

Loading…
Cancel
Save