summaryrefslogtreecommitdiffstats
path: root/qtruby/rubylib/designer/rbuic/widgetdatabase.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-05 15:55:57 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-05 15:55:57 -0600
commit9ba04742771370f59740e32e11c5f3a1e6a1b70a (patch)
treec81c34dae2b3b1ea73801bf18a960265dc4207f7 /qtruby/rubylib/designer/rbuic/widgetdatabase.cpp
parent1a96c45b22d01378202d9dc7ed9c47acd30f966e (diff)
downloadtdebindings-9ba04742771370f59740e32e11c5f3a1e6a1b70a.tar.gz
tdebindings-9ba04742771370f59740e32e11c5f3a1e6a1b70a.zip
Initial TQt conversion
Diffstat (limited to 'qtruby/rubylib/designer/rbuic/widgetdatabase.cpp')
-rw-r--r--qtruby/rubylib/designer/rbuic/widgetdatabase.cpp178
1 files changed, 89 insertions, 89 deletions
diff --git a/qtruby/rubylib/designer/rbuic/widgetdatabase.cpp b/qtruby/rubylib/designer/rbuic/widgetdatabase.cpp
index 2538d0ae..cc4779a2 100644
--- a/qtruby/rubylib/designer/rbuic/widgetdatabase.cpp
+++ b/qtruby/rubylib/designer/rbuic/widgetdatabase.cpp
@@ -41,17 +41,17 @@ const int dbsize = 300;
const int dbcustom = 200;
const int dbdictsize = 211;
static WidgetDatabaseRecord* db[ dbsize ];
-static TQDict<int> *className2Id = 0;
+static TTQDict<int> *className2Id = 0;
static int dbcount = 0;
static int dbcustomcount = 200;
-static TQStrList *wGroups;
-static TQStrList *invisibleGroups;
+static TTQStrList *wGroups;
+static TTQStrList *invisibleGroups;
static bool whatsThisLoaded = false;
-static QPluginManager<WidgetInterface> *widgetPluginManager = 0;
+static TQPluginManager<WidgetInterface> *widgetPluginManager = 0;
static bool plugins_set_up = false;
static bool was_in_setup = false;
-TQCleanupHandler<QPluginManager<WidgetInterface> > cleanup_manager;
+TTQCleanupHandler<TQPluginManager<WidgetInterface> > cleanup_manager;
WidgetDatabaseRecord::WidgetDatabaseRecord()
{
@@ -113,18 +113,18 @@ void WidgetDatabase::setupDataBase( int id )
return;
#endif
- wGroups = new QStrList;
- invisibleGroups = new QStrList;
+ wGroups = new TQStrList;
+ invisibleGroups = new TQStrList;
invisibleGroups->append( "Forms" );
invisibleGroups->append( "Temp" );
- className2Id = new TQDict<int>( dbdictsize );
+ className2Id = new TTQDict<int>( dbdictsize );
className2Id->setAutoDelete( true );
WidgetDatabaseRecord *r = 0;
r = new WidgetDatabaseRecord;
r->iconSet = "pushbutton.xpm";
- r->name = "TQPushButton";
+ r->name = "TTQPushButton";
r->group = widgetGroup( "Buttons" );
r->toolTip = "Push Button";
@@ -132,7 +132,7 @@ void WidgetDatabase::setupDataBase( int id )
r = new WidgetDatabaseRecord;
r->iconSet = "toolbutton.xpm";
- r->name = "TQToolButton";
+ r->name = "TTQToolButton";
r->group = widgetGroup( "Buttons" );
r->toolTip = "Tool Button";
@@ -140,7 +140,7 @@ void WidgetDatabase::setupDataBase( int id )
r = new WidgetDatabaseRecord;
r->iconSet = "radiobutton.xpm";
- r->name = "TQRadioButton";
+ r->name = "TTQRadioButton";
r->group = widgetGroup( "Buttons" );
r->toolTip = "Radio Button";
@@ -148,7 +148,7 @@ void WidgetDatabase::setupDataBase( int id )
r = new WidgetDatabaseRecord;
r->iconSet = "checkbox.xpm";
- r->name = "TQCheckBox";
+ r->name = "TTQCheckBox";
r->group = widgetGroup( "Buttons" );
r->toolTip = "Check Box";
@@ -156,7 +156,7 @@ void WidgetDatabase::setupDataBase( int id )
r = new WidgetDatabaseRecord;
r->iconSet = "groupbox.xpm";
- r->name = "TQGroupBox";
+ r->name = "TTQGroupBox";
r->group = widgetGroup( "Containers" );
r->toolTip = "Group Box";
r->isContainer = true;
@@ -165,7 +165,7 @@ void WidgetDatabase::setupDataBase( int id )
r = new WidgetDatabaseRecord;
r->iconSet = "buttongroup.xpm";
- r->name = "TQButtonGroup";
+ r->name = "TTQButtonGroup";
r->group = widgetGroup( "Containers" );
r->toolTip = "Button Group";
r->isContainer = true;
@@ -174,7 +174,7 @@ void WidgetDatabase::setupDataBase( int id )
r = new WidgetDatabaseRecord;
r->iconSet = "frame.xpm";
- r->name = "TQFrame";
+ r->name = "TTQFrame";
r->group = widgetGroup( "Containers" );
r->toolTip = "Frame";
r->isContainer = true;
@@ -183,7 +183,7 @@ void WidgetDatabase::setupDataBase( int id )
r = new WidgetDatabaseRecord;
r->iconSet = "tabwidget.xpm";
- r->name = "TQTabWidget";
+ r->name = "TTQTabWidget";
r->group = widgetGroup( "Containers" );
r->toolTip = "Tabwidget";
r->isContainer = true;
@@ -193,7 +193,7 @@ void WidgetDatabase::setupDataBase( int id )
r = new WidgetDatabaseRecord;
r->iconSet = "listbox.xpm";
- r->name = "TQListBox";
+ r->name = "TTQListBox";
r->group = widgetGroup( "Views" );
r->toolTip = "List Box";
@@ -201,7 +201,7 @@ void WidgetDatabase::setupDataBase( int id )
r = new WidgetDatabaseRecord;
r->iconSet = "listview.xpm";
- r->name = "TQListView";
+ r->name = "TTQListView";
r->group = widgetGroup( "Views" );
r->toolTip = "List View";
@@ -210,7 +210,7 @@ void WidgetDatabase::setupDataBase( int id )
#if !defined(QT_NO_ICONVIEW) || defined(UIC)
r = new WidgetDatabaseRecord;
r->iconSet = "iconview.xpm";
- r->name = "TQIconView";
+ r->name = "TTQIconView";
r->group = widgetGroup( "Views" );
r->toolTip = "Icon View";
@@ -220,7 +220,7 @@ void WidgetDatabase::setupDataBase( int id )
#if !defined(QT_NO_TABLE)
r = new WidgetDatabaseRecord;
r->iconSet = "table.xpm";
- r->name = "TQTable";
+ r->name = "TTQTable";
r->group = widgetGroup( "Views" );
r->toolTip = "Table";
@@ -231,7 +231,7 @@ void WidgetDatabase::setupDataBase( int id )
r = new WidgetDatabaseRecord;
r->iconSet = "datatable.xpm";
r->includeFile = "tqdatatable.h";
- r->name = "TQDataTable";
+ r->name = "TTQDataTable";
r->group = widgetGroup( "Database" );
r->toolTip = "Data Table";
@@ -240,7 +240,7 @@ void WidgetDatabase::setupDataBase( int id )
r = new WidgetDatabaseRecord;
r->iconSet = "lineedit.xpm";
- r->name = "TQLineEdit";
+ r->name = "TTQLineEdit";
r->group = widgetGroup( "Input" );
r->toolTip = "Line Edit";
@@ -248,7 +248,7 @@ void WidgetDatabase::setupDataBase( int id )
r = new WidgetDatabaseRecord;
r->iconSet = "spinbox.xpm";
- r->name = "TQSpinBox";
+ r->name = "TTQSpinBox";
r->group = widgetGroup( "Input" );
r->toolTip = "Spin Box";
@@ -256,7 +256,7 @@ void WidgetDatabase::setupDataBase( int id )
r = new WidgetDatabaseRecord;
r->iconSet = "dateedit.xpm";
- r->name = "QDateEdit";
+ r->name = "TQDateEdit";
r->group = widgetGroup( "Input" );
r->toolTip = "Date Edit";
r->includeFile = "tqdatetimeedit.h";
@@ -265,7 +265,7 @@ void WidgetDatabase::setupDataBase( int id )
r = new WidgetDatabaseRecord;
r->iconSet = "timeedit.xpm";
- r->name = "QTimeEdit";
+ r->name = "TQTimeEdit";
r->group = widgetGroup( "Input" );
r->toolTip = "Time Edit";
r->includeFile = "tqdatetimeedit.h";
@@ -274,7 +274,7 @@ void WidgetDatabase::setupDataBase( int id )
r = new WidgetDatabaseRecord;
r->iconSet = "datetimeedit.xpm";
- r->name = "QDateTimeEdit";
+ r->name = "TQDateTimeEdit";
r->group = widgetGroup( "Input" );
r->toolTip = "Date-Time Edit";
r->includeFile = "tqdatetimeedit.h";
@@ -283,7 +283,7 @@ void WidgetDatabase::setupDataBase( int id )
r = new WidgetDatabaseRecord;
r->iconSet = "multilineedit.xpm";
- r->name = "TQMultiLineEdit";
+ r->name = "TTQMultiLineEdit";
r->group = widgetGroup( "Temp" );
r->toolTip = "Multi Line Edit";
@@ -291,7 +291,7 @@ void WidgetDatabase::setupDataBase( int id )
r = new WidgetDatabaseRecord;
r->iconSet = "richtextedit.xpm";
- r->name = "TQTextEdit";
+ r->name = "TTQTextEdit";
r->group = widgetGroup( "Input" );
r->toolTip = "Richtext Editor";
@@ -299,7 +299,7 @@ void WidgetDatabase::setupDataBase( int id )
r = new WidgetDatabaseRecord;
r->iconSet = "combobox.xpm";
- r->name = "TQComboBox";
+ r->name = "TTQComboBox";
r->group = widgetGroup( "Input" );
r->toolTip = "Combo Box";
@@ -307,7 +307,7 @@ void WidgetDatabase::setupDataBase( int id )
r = new WidgetDatabaseRecord;
r->iconSet = "slider.xpm";
- r->name = "TQSlider";
+ r->name = "TTQSlider";
r->group = widgetGroup( "Input" );
r->toolTip = "Slider";
@@ -315,7 +315,7 @@ void WidgetDatabase::setupDataBase( int id )
r = new WidgetDatabaseRecord;
r->iconSet = "scrollbar.xpm";
- r->name = "TQScrollBar";
+ r->name = "TTQScrollBar";
r->group = widgetGroup( "Input" );
r->toolTip = "Scrollbar";
@@ -323,7 +323,7 @@ void WidgetDatabase::setupDataBase( int id )
r = new WidgetDatabaseRecord;
r->iconSet = "dial.xpm";
- r->name = "TQDial";
+ r->name = "TTQDial";
r->group = widgetGroup( "Input" );
r->toolTip = "Dial";
@@ -331,7 +331,7 @@ void WidgetDatabase::setupDataBase( int id )
r = new WidgetDatabaseRecord;
r->iconSet = "label.xpm";
- r->name = "TQLabel";
+ r->name = "TTQLabel";
r->group = widgetGroup( "Temp" );
r->toolTip = "Label";
@@ -357,7 +357,7 @@ void WidgetDatabase::setupDataBase( int id )
r = new WidgetDatabaseRecord;
r->iconSet = "lcdnumber.xpm";
- r->name = "QLCDNumber";
+ r->name = "TQLCDNumber";
r->group = widgetGroup( "Display" );
r->toolTip = "LCD Number";
@@ -375,7 +375,7 @@ void WidgetDatabase::setupDataBase( int id )
r = new WidgetDatabaseRecord;
r->iconSet = "progress.xpm";
- r->name = "TQProgressBar";
+ r->name = "TTQProgressBar";
r->group = widgetGroup( "Display" );
r->toolTip = "Progress Bar";
@@ -383,7 +383,7 @@ void WidgetDatabase::setupDataBase( int id )
r = new WidgetDatabaseRecord;
r->iconSet = "textview.xpm";
- r->name = "TQTextView";
+ r->name = "TTQTextView";
r->group = widgetGroup( "Temp" );
r->toolTip = "Text View";
@@ -391,7 +391,7 @@ void WidgetDatabase::setupDataBase( int id )
r = new WidgetDatabaseRecord;
r->iconSet = "textbrowser.xpm";
- r->name = "TQTextBrowser";
+ r->name = "TTQTextBrowser";
r->group = widgetGroup( "Display" );
r->toolTip = "Text Browser";
@@ -407,35 +407,35 @@ void WidgetDatabase::setupDataBase( int id )
append( r );
r = new WidgetDatabaseRecord;
- r->name = "TQWidget";
+ r->name = "TTQWidget";
r->isForm = true;
r->group = widgetGroup( "Forms" );
append( r );
r = new WidgetDatabaseRecord;
- r->name = "TQDialog";
+ r->name = "TTQDialog";
r->group = widgetGroup( "Forms" );
r->isForm = true;
append( r );
r = new WidgetDatabaseRecord;
- r->name = "TQWizard";
+ r->name = "TTQWizard";
r->group = widgetGroup( "Forms" );
r->isContainer = true;
append( r );
r = new WidgetDatabaseRecord;
- r->name = "QDesignerWizard";
+ r->name = "TQDesignerWizard";
r->group = widgetGroup( "Forms" );
r->isContainer = true;
append( r );
r = new WidgetDatabaseRecord;
- r->name = "QLayoutWidget";
+ r->name = "TQLayoutWidget";
r->group = widgetGroup( "Temp" );
r->includeFile = "";
r->isContainer = true;
@@ -443,7 +443,7 @@ void WidgetDatabase::setupDataBase( int id )
append( r );
r = new WidgetDatabaseRecord;
- r->name = "TQSplitter";
+ r->name = "TTQSplitter";
r->group = widgetGroup( "Temp" );
r->includeFile = "tqsplitter.h";
r->isContainer = true;
@@ -452,7 +452,7 @@ void WidgetDatabase::setupDataBase( int id )
r = new WidgetDatabaseRecord;
r->iconSet = "tabwidget.xpm";
- r->name = "QDesignerTabWidget";
+ r->name = "TQDesignerTabWidget";
r->group = widgetGroup( "Temp" );
r->isContainer = true;
@@ -460,7 +460,7 @@ void WidgetDatabase::setupDataBase( int id )
r = new WidgetDatabaseRecord;
r->iconSet = "tabwidget.xpm";
- r->name = "QDesignerWidget";
+ r->name = "TQDesignerWidget";
r->group = widgetGroup( "Temp" );
r->isContainer = true;
@@ -468,7 +468,7 @@ void WidgetDatabase::setupDataBase( int id )
r = new WidgetDatabaseRecord;
r->iconSet = "tabwidget.xpm";
- r->name = "QDesignerDialog";
+ r->name = "TQDesignerDialog";
r->group = widgetGroup( "Temp" );
r->isContainer = true;
@@ -476,7 +476,7 @@ void WidgetDatabase::setupDataBase( int id )
r = new WidgetDatabaseRecord;
r->iconSet = "";
- r->name = "TQMainWindow";
+ r->name = "TTQMainWindow";
r->includeFile = "tqmainwindow.h";
r->group = widgetGroup( "Temp" );
r->isContainer = true;
@@ -486,7 +486,7 @@ void WidgetDatabase::setupDataBase( int id )
#ifndef QT_NO_SQL
r = new WidgetDatabaseRecord;
r->iconSet = "";
- r->name = "TQDataBrowser";
+ r->name = "TTQDataBrowser";
r->includeFile = "tqdatabrowser.h";
r->group = widgetGroup( "Database" );
r->toolTip = "Data Browser";
@@ -497,7 +497,7 @@ void WidgetDatabase::setupDataBase( int id )
r = new WidgetDatabaseRecord;
r->iconSet = "";
- r->name = "TQDataView";
+ r->name = "TTQDataView";
r->includeFile = "tqdataview.h";
r->group = widgetGroup( "Database" );
r->toolTip = "Data View";
@@ -517,8 +517,8 @@ void WidgetDatabase::setupPlugins()
if ( plugins_set_up )
return;
plugins_set_up = true;
- TQStringList widgets = widgetManager()->featureList();
- for ( TQStringList::Iterator it = widgets.begin(); it != widgets.end(); ++it ) {
+ TTQStringList widgets = widgetManager()->featureList();
+ for ( TTQStringList::Iterator it = widgets.begin(); it != widgets.end(); ++it ) {
if ( hasWidget( *it ) )
continue;
WidgetDatabaseRecord *r = new WidgetDatabaseRecord;
@@ -528,11 +528,11 @@ void WidgetDatabase::setupPlugins()
continue;
#ifndef UIC
- TQIconSet icon = iface->iconSet( *it );
+ TTQIconSet icon = iface->iconSet( *it );
if ( !icon.pixmap().isNull() )
- r->icon = new TQIconSet( icon );
+ r->icon = new TTQIconSet( icon );
#endif
- TQString grp = iface->group( *it );
+ TTQString grp = iface->group( *it );
if ( grp.isEmpty() )
grp = "3rd party widgets";
r->group = widgetGroup( grp );
@@ -570,19 +570,19 @@ int WidgetDatabase::startCustom()
Returns the iconset which represents the class registered as \a id.
*/
-TQIconSet WidgetDatabase::iconSet( int id )
+TTQIconSet WidgetDatabase::iconSet( int id )
{
setupDataBase( id );
WidgetDatabaseRecord *r = at( id );
if ( !r )
- return TQIconSet();
+ return TTQIconSet();
#if !defined(UIC) && !defined(RESOURCE)
if ( !r->icon )
- r->icon = new TQIconSet( PixmapChooser::loadPixmap( r->iconSet, PixmapChooser::Small ),
+ r->icon = new TTQIconSet( PixmapChooser::loadPixmap( r->iconSet, PixmapChooser::Small ),
PixmapChooser::loadPixmap( r->iconSet, PixmapChooser::Large ) );
return *r->icon;
#else
- return TQIconSet();
+ return TTQIconSet();
#endif
}
@@ -590,12 +590,12 @@ TQIconSet WidgetDatabase::iconSet( int id )
Returns the classname of the widget which is registered as \a id.
*/
-TQString WidgetDatabase::className( int id )
+TTQString WidgetDatabase::className( int id )
{
setupDataBase( id );
WidgetDatabaseRecord *r = at( id );
if ( !r )
- return TQString::null;
+ return TTQString::null;
return r->name;
}
@@ -603,12 +603,12 @@ TQString WidgetDatabase::className( int id )
Returns the group to which the widget registered as \a id belongs.
*/
-TQString WidgetDatabase::group( int id )
+TTQString WidgetDatabase::group( int id )
{
setupDataBase( id );
WidgetDatabaseRecord *r = at( id );
if ( !r )
- return TQString::null;
+ return TTQString::null;
return r->group;
}
@@ -616,12 +616,12 @@ TQString WidgetDatabase::group( int id )
id.
*/
-TQString WidgetDatabase::toolTip( int id )
+TTQString WidgetDatabase::toolTip( int id )
{
setupDataBase( id );
WidgetDatabaseRecord *r = at( id );
if ( !r )
- return TQString::null;
+ return TTQString::null;
return r->toolTip;
}
@@ -629,12 +629,12 @@ TQString WidgetDatabase::toolTip( int id )
as \a id.
*/
-TQString WidgetDatabase::whatsThis( int id )
+TTQString WidgetDatabase::whatsThis( int id )
{
setupDataBase( id );
WidgetDatabaseRecord *r = at( id );
if ( !r )
- return TQString::null;
+ return TTQString::null;
return r->whatsThis;
}
@@ -642,12 +642,12 @@ TQString WidgetDatabase::whatsThis( int id )
Returns the include file if the widget which is registered as \a id.
*/
-TQString WidgetDatabase::includeFile( int id )
+TTQString WidgetDatabase::includeFile( int id )
{
setupDataBase( id );
WidgetDatabaseRecord *r = at( id );
if ( !r )
- return TQString::null;
+ return TTQString::null;
if ( r->includeFile.isNull() )
return r->name.lower() + ".h";
return r->includeFile;
@@ -677,24 +677,24 @@ bool WidgetDatabase::isContainer( int id )
return r->isContainer || r->isForm;
}
-TQString WidgetDatabase::createWidgetName( int id )
+TTQString WidgetDatabase::createWidgetName( int id )
{
setupDataBase( id );
- TQString n = className( id );
- if ( n == "QLayoutWidget" )
+ TTQString n = className( id );
+ if ( n == "TQLayoutWidget" )
n = "Layout";
if ( n[ 0 ] == 'Q' )
n = n.mid( 1 );
WidgetDatabaseRecord *r = at( id );
if ( !r )
return n;
- n += TQString::number( ++r->nameCounter );
+ n += TTQString::number( ++r->nameCounter );
return n;
}
/*! Returns the id for \a name or -1 if \a name is unknown.
*/
-int WidgetDatabase::idFromClassName( const TQString &name )
+int WidgetDatabase::idFromClassName( const TTQString &name )
{
setupDataBase( -1 );
if ( name.isEmpty() )
@@ -703,7 +703,7 @@ int WidgetDatabase::idFromClassName( const TQString &name )
if ( i )
return *i;
if ( name == "FormWindow" )
- return idFromClassName( "QLayoutWidget" );
+ return idFromClassName( "TQLayoutWidget" );
#ifdef UIC
#ifndef NO_UI_PLUGINS
setupDataBase( -2 );
@@ -715,7 +715,7 @@ int WidgetDatabase::idFromClassName( const TQString &name )
return -1;
}
-bool WidgetDatabase::hasWidget( const TQString &name )
+bool WidgetDatabase::hasWidget( const TTQString &name )
{
return className2Id->find( name ) != 0;
}
@@ -738,7 +738,7 @@ void WidgetDatabase::insert( int index, WidgetDatabaseRecord *r )
db[ index ] = r;
className2Id->insert( r->name, new int( index ) );
if ( index < dbcustom )
- dbcount = QMAX( dbcount, index );
+ dbcount = TQMAX( dbcount, index );
}
void WidgetDatabase::append( WidgetDatabaseRecord *r )
@@ -748,14 +748,14 @@ void WidgetDatabase::append( WidgetDatabaseRecord *r )
insert( dbcount++, r );
}
-TQString WidgetDatabase::widgetGroup( const TQString &g )
+TTQString WidgetDatabase::widgetGroup( const TTQString &g )
{
if ( wGroups->find( g ) == -1 )
wGroups->append( g );
return g;
}
-bool WidgetDatabase::isGroupEmpty( const TQString &grp )
+bool WidgetDatabase::isGroupEmpty( const TTQString &grp )
{
WidgetDatabaseRecord *r = 0;
for ( int i = 0; i < dbcount; ++i ) {
@@ -767,12 +767,12 @@ bool WidgetDatabase::isGroupEmpty( const TQString &grp )
return true;
}
-TQString WidgetDatabase::widgetGroup( int i )
+TTQString WidgetDatabase::widgetGroup( int i )
{
setupDataBase( -1 );
if ( i >= 0 && i < (int)wGroups->count() )
return wGroups->at( i );
- return TQString::null;
+ return TTQString::null;
}
int WidgetDatabase::numWidgetGroups()
@@ -781,7 +781,7 @@ int WidgetDatabase::numWidgetGroups()
return wGroups->count();
}
-bool WidgetDatabase::isGroupVisible( const TQString &g )
+bool WidgetDatabase::isGroupVisible( const TTQString &g )
{
setupDataBase( -1 );
return invisibleGroups->find( g ) == -1;
@@ -805,16 +805,16 @@ bool WidgetDatabase::isWhatsThisLoaded()
return whatsThisLoaded;
}
-void WidgetDatabase::loadWhatsThis( const TQString &docPath )
+void WidgetDatabase::loadWhatsThis( const TTQString &docPath )
{
- TQString whatsthisFile = docPath + "/whatsthis";
- TQFile f( whatsthisFile );
+ TTQString whatsthisFile = docPath + "/whatsthis";
+ TTQFile f( whatsthisFile );
if ( !f.open( IO_ReadOnly ) )
return;
- TQTextStream ts( &f );
+ TTQTextStream ts( &f );
while ( !ts.atEnd() ) {
- TQString s = ts.readLine();
- TQStringList l = TQStringList::split( " | ", s );
+ TTQString s = ts.readLine();
+ TTQStringList l = TTQStringList::split( " | ", s );
int id = idFromClassName( l[ 1 ] );
WidgetDatabaseRecord *r = at( id );
if ( r )
@@ -823,10 +823,10 @@ void WidgetDatabase::loadWhatsThis( const TQString &docPath )
whatsThisLoaded = true;
}
-QPluginManager<WidgetInterface> *widgetManager()
+TTQPluginManager<WidgetInterface> *widgetManager()
{
if ( !widgetPluginManager ) {
- widgetPluginManager = new QPluginManager<WidgetInterface>( IID_Widget, TQApplication::libraryPaths(), "/designer" );
+ widgetPluginManager = new TQPluginManager<WidgetInterface>( IID_Widget, TTQApplication::libraryPaths(), "/designer" );
cleanup_manager.add( &widgetPluginManager );
}
return widgetPluginManager;