summaryrefslogtreecommitdiffstats
path: root/kdevdesigner/designer/widgetfactory.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-17 19:08:25 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-17 19:08:25 +0000
commite9be34de5fe62ce92c1d4cad63d03be76e9beb8d (patch)
treeb41889ff9d6b950124134560ccbcecc78493a452 /kdevdesigner/designer/widgetfactory.cpp
parent48d4a26399959121f33d2bc3bfe51c7827b654fc (diff)
downloadtdevelop-e9be34de5fe62ce92c1d4cad63d03be76e9beb8d.tar.gz
tdevelop-e9be34de5fe62ce92c1d4cad63d03be76e9beb8d.zip
Fix kdevelop Qt3 compilation
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1237312 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdevdesigner/designer/widgetfactory.cpp')
-rw-r--r--kdevdesigner/designer/widgetfactory.cpp184
1 files changed, 92 insertions, 92 deletions
diff --git a/kdevdesigner/designer/widgetfactory.cpp b/kdevdesigner/designer/widgetfactory.cpp
index 43081cdd..5d47c863 100644
--- a/kdevdesigner/designer/widgetfactory.cpp
+++ b/kdevdesigner/designer/widgetfactory.cpp
@@ -123,52 +123,52 @@ void TQLayoutWidget::paintEvent( TQPaintEvent* )
}
-TQDesignerTabWidget::TQDesignerTabWidget( TQWidget *tqparent, const char *name )
+QDesignerTabWidget::QDesignerTabWidget( TQWidget *tqparent, const char *name )
: TQTabWidget( tqparent, name ), dropIndicator( 0 ), dragPage( 0 ), mousePressed( FALSE )
{
tabBar()->setAcceptDrops( TRUE );
tabBar()->installEventFilter( this );
}
-int TQDesignerTabWidget::currentPage() const
+int QDesignerTabWidget::currentPage() const
{
return tabBar()->currentTab();
}
-void TQDesignerTabWidget::setCurrentPage( int i )
+void QDesignerTabWidget::setCurrentPage( int i )
{
tabBar()->setCurrentTab( i );
}
-TQString TQDesignerTabWidget::pageTitle() const
+TQString QDesignerTabWidget::pageTitle() const
{
return ((TQTabWidget*)this)->tabLabel( TQTabWidget::currentPage() );
}
-void TQDesignerTabWidget::setPageTitle( const TQString& title )
+void QDesignerTabWidget::setPageTitle( const TQString& title )
{
changeTab( TQTabWidget::currentPage(), title );
}
-void TQDesignerTabWidget::setPageName( const TQCString& name )
+void QDesignerTabWidget::setPageName( const TQCString& name )
{
if ( TQTabWidget::currentPage() )
TQTabWidget::currentPage()->setName( name );
}
-TQCString TQDesignerTabWidget::pageName() const
+TQCString QDesignerTabWidget::pageName() const
{
if ( !TQTabWidget::currentPage() )
return 0;
return TQTabWidget::currentPage()->name();
}
-int TQDesignerTabWidget::count() const
+int QDesignerTabWidget::count() const
{
return tabBar()->count();
}
-bool TQDesignerTabWidget::eventFilter( TQObject *o, TQEvent *e )
+bool QDesignerTabWidget::eventFilter( TQObject *o, TQEvent *e )
{
if ( TQT_BASE_OBJECT(o) != TQT_BASE_OBJECT(tabBar()) ) return FALSE;
@@ -290,7 +290,7 @@ bool TQDesignerTabWidget::eventFilter( TQObject *o, TQEvent *e )
}
-TQDesignerWidgetStack::TQDesignerWidgetStack( TQWidget *tqparent, const char *name )
+QDesignerWidgetStack::QDesignerWidgetStack( TQWidget *tqparent, const char *name )
: TQWidgetStack( tqparent, name )
{
prev = new TQToolButton( TQt::LeftArrow, this, "designer_wizardstack_button" );
@@ -306,7 +306,7 @@ TQDesignerWidgetStack::TQDesignerWidgetStack( TQWidget *tqparent, const char *na
updateButtons();
}
-void TQDesignerWidgetStack::updateButtons()
+void QDesignerWidgetStack::updateButtons()
{
prev->setGeometry( width() - 31, 1, 15, 15 );
next->setGeometry( width() - 16, 1, 15, 15 );
@@ -316,23 +316,23 @@ void TQDesignerWidgetStack::updateButtons()
next->raise();
}
-void TQDesignerWidgetStack::prevPage()
+void QDesignerWidgetStack::prevPage()
{
setCurrentPage( currentPage() - 1 );
}
-void TQDesignerWidgetStack::nextPage()
+void QDesignerWidgetStack::nextPage()
{
setCurrentPage( currentPage() + 1 );
}
-int TQDesignerWidgetStack::currentPage() const
+int QDesignerWidgetStack::currentPage() const
{
- TQDesignerWidgetStack* that = (TQDesignerWidgetStack*) this;
+ QDesignerWidgetStack* that = (QDesignerWidgetStack*) this;
return that->pages.tqfind( visibleWidget() );
}
-void TQDesignerWidgetStack::setCurrentPage( int i )
+void QDesignerWidgetStack::setCurrentPage( int i )
{
// help next/prev page commands
if ( i < 0 )
@@ -346,34 +346,34 @@ void TQDesignerWidgetStack::setCurrentPage( int i )
updateButtons();
}
-TQCString TQDesignerWidgetStack::pageName() const
+TQCString QDesignerWidgetStack::pageName() const
{
if ( !visibleWidget() )
return 0;
return visibleWidget()->name();
}
-void TQDesignerWidgetStack::setPageName( const TQCString& name )
+void QDesignerWidgetStack::setPageName( const TQCString& name )
{
if ( visibleWidget() )
visibleWidget()->setName( name );
}
-int TQDesignerWidgetStack::count() const
+int QDesignerWidgetStack::count() const
{
return pages.count();
}
-TQWidget* TQDesignerWidgetStack::page( int i ) const
+TQWidget* QDesignerWidgetStack::page( int i ) const
{
if ( i < 0 || i >= count() )
return 0;
- TQDesignerWidgetStack* that = (TQDesignerWidgetStack*) this;
+ QDesignerWidgetStack* that = (QDesignerWidgetStack*) this;
return that->pages.at( i );
}
-int TQDesignerWidgetStack::insertPage( TQWidget *p, int i )
+int QDesignerWidgetStack::insertPage( TQWidget *p, int i )
{
if ( i < 0 )
pages.append( p );
@@ -387,7 +387,7 @@ int TQDesignerWidgetStack::insertPage( TQWidget *p, int i )
return pages.tqfind( p );
}
-int TQDesignerWidgetStack::removePage( TQWidget *p )
+int QDesignerWidgetStack::removePage( TQWidget *p )
{
int i = pages.tqfind( p );
pages.remove( p );
@@ -398,7 +398,7 @@ int TQDesignerWidgetStack::removePage( TQWidget *p )
}
-int TQDesignerWizard::currentPageNum() const
+int QDesignerWizard::currentPageNum() const
{
for ( int i = 0; i < pageCount(); ++i ) {
if ( page( i ) == currentPage() )
@@ -411,7 +411,7 @@ int TQDesignerWizard::currentPageNum() const
-void TQDesignerWizard::setCurrentPage( int i )
+void QDesignerWizard::setCurrentPage( int i )
{
if ( i < currentPageNum() ) {
while ( i < currentPageNum() ) {
@@ -429,30 +429,30 @@ void TQDesignerWizard::setCurrentPage( int i )
}
}
-TQString TQDesignerWizard::pageTitle() const
+TQString QDesignerWizard::pageTitle() const
{
return title( currentPage() );
}
-void TQDesignerWizard::setPageTitle( const TQString& title )
+void QDesignerWizard::setPageTitle( const TQString& title )
{
setTitle( currentPage(), title );
}
-void TQDesignerWizard::setPageName( const TQCString& name )
+void QDesignerWizard::setPageName( const TQCString& name )
{
if ( TQWizard::currentPage() )
TQWizard::currentPage()->setName( name );
}
-TQCString TQDesignerWizard::pageName() const
+TQCString QDesignerWizard::pageName() const
{
if ( !TQWizard::currentPage() )
return 0;
return TQWizard::currentPage()->name();
}
-int TQDesignerWizard::pageNum( TQWidget *p )
+int QDesignerWizard::pageNum( TQWidget *p )
{
for ( int i = 0; i < pageCount(); ++i ) {
if ( page( i ) == p )
@@ -461,20 +461,20 @@ int TQDesignerWizard::pageNum( TQWidget *p )
return -1;
}
-void TQDesignerWizard::addPage( TQWidget *p, const TQString &t )
+void QDesignerWizard::addPage( TQWidget *p, const TQString &t )
{
TQWizard::addPage( p, t );
if ( removedPages.tqfind( p ) )
removedPages.remove( p );
}
-void TQDesignerWizard::removePage( TQWidget *p )
+void QDesignerWizard::removePage( TQWidget *p )
{
TQWizard::removePage( p );
removedPages.insert( p, p );
}
-void TQDesignerWizard::insertPage( TQWidget *p, const TQString &t, int index )
+void QDesignerWizard::insertPage( TQWidget *p, const TQString &t, int index )
{
TQWizard::insertPage( p, t, index );
if ( removedPages.tqfind( p ) )
@@ -603,7 +603,7 @@ TQLayout *WidgetFactory::createLayout( TQWidget *widget, TQLayout *tqlayout, Lay
l = new TQVBoxLayout( tqlayout );
break;
case Grid:
- l = new TQDesignerGridLayout( tqlayout );
+ l = new QDesignerGridLayout( tqlayout );
break;
default:
return 0;
@@ -621,7 +621,7 @@ TQLayout *WidgetFactory::createLayout( TQWidget *widget, TQLayout *tqlayout, Lay
l = new TQVBoxLayout( tqlayout );
break;
case Grid:
- l = new TQDesignerGridLayout( tqlayout );
+ l = new QDesignerGridLayout( tqlayout );
break;
default:
return 0;
@@ -638,7 +638,7 @@ TQLayout *WidgetFactory::createLayout( TQWidget *widget, TQLayout *tqlayout, Lay
l = new TQVBoxLayout( widget );
break;
case Grid:
- l = new TQDesignerGridLayout( widget );
+ l = new QDesignerGridLayout( widget );
break;
default:
return 0;
@@ -689,17 +689,17 @@ TQWidget *WidgetFactory::createWidget( const TQString &className, TQWidget *tqpa
if ( className == TQPUSHBUTTON_OBJECT_NAME_STRING ) {
TQPushButton *b = 0;
if ( init ) {
- b = new TQDesignerPushButton( tqparent, name );
+ b = new QDesignerPushButton( tqparent, name );
b->setText( TQString::tqfromLatin1( name ) );
} else {
- b = new TQDesignerPushButton( tqparent, name );
+ b = new QDesignerPushButton( tqparent, name );
}
TQWidget *w = find_formwindow( b );
b->setAutoDefault( w && ::tqqt_cast<TQDialog*>(((FormWindow*)w)->mainContainer()) );
return b;
} else if ( className == TQTOOLBUTTON_OBJECT_NAME_STRING ) {
if ( init ) {
- TQDesignerToolButton *tb = new TQDesignerToolButton( tqparent, name );
+ QDesignerToolButton *tb = new QDesignerToolButton( tqparent, name );
if ( ::tqqt_cast<TQToolBox*>(widgetOfContainer(tqparent))) {
tb->setUsesTextLabel(TRUE);
tb->setTextLabel("...");
@@ -710,21 +710,21 @@ TQWidget *WidgetFactory::createWidget( const TQString &className, TQWidget *tqpa
}
return tb;
}
- return new TQDesignerToolButton( tqparent, name );
+ return new QDesignerToolButton( tqparent, name );
} else if ( className == TQCHECKBOX_OBJECT_NAME_STRING ) {
if ( init ) {
- TQDesignerCheckBox *cb = new TQDesignerCheckBox( tqparent, name );
+ QDesignerCheckBox *cb = new QDesignerCheckBox( tqparent, name );
cb->setText( TQString::tqfromLatin1( name ) );
return cb;
}
- return new TQDesignerCheckBox( tqparent, name );
+ return new QDesignerCheckBox( tqparent, name );
} else if ( className == TQRADIOBUTTON_OBJECT_NAME_STRING ) {
if ( init ) {
- TQDesignerRadioButton *rb = new TQDesignerRadioButton( tqparent, name );
+ QDesignerRadioButton *rb = new QDesignerRadioButton( tqparent, name );
rb->setText( TQString::tqfromLatin1( name ) );
return rb;
}
- return new TQDesignerRadioButton( tqparent, name );
+ return new QDesignerRadioButton( tqparent, name );
} else if ( className == TQGROUPBOX_OBJECT_NAME_STRING ) {
if ( init )
return new TQGroupBox( TQString::tqfromLatin1( name ), tqparent, name );
@@ -787,7 +787,7 @@ TQWidget *WidgetFactory::createWidget( const TQString &className, TQWidget *tqpa
else if ( className == TQTEXTEDIT_OBJECT_NAME_STRING )
return new TQTextEdit( tqparent, name );
else if ( className == TQLABEL_OBJECT_NAME_STRING || className == "TextLabel" ) {
- TQDesignerLabel *l = new TQDesignerLabel( tqparent, name );
+ QDesignerLabel *l = new QDesignerLabel( tqparent, name );
if ( init ) {
l->setText( TQString::tqfromLatin1( name ) );
MetaDataBase::addEntry( TQT_TQOBJECT(l) );
@@ -795,7 +795,7 @@ TQWidget *WidgetFactory::createWidget( const TQString &className, TQWidget *tqpa
}
return l;
} else if ( className == "PixmapLabel" ) {
- TQDesignerLabel *l = new TQDesignerLabel( tqparent, name );
+ QDesignerLabel *l = new QDesignerLabel( tqparent, name );
if ( init ) {
l->setPixmap( BarIcon( "designer_qtlogo.png", KDevDesignerPartFactory::instance() ) );
l->setScaledContents( TRUE );
@@ -807,23 +807,23 @@ TQWidget *WidgetFactory::createWidget( const TQString &className, TQWidget *tqpa
} else if ( className == TQLAYOUTWIDGET_OBJECT_NAME_STRING )
return new TQLayoutWidget( tqparent, name );
else if ( className == TQTABWIDGET_OBJECT_NAME_STRING ) {
- TQTabWidget *tw = new TQDesignerTabWidget( tqparent, name );
+ TQTabWidget *tw = new QDesignerTabWidget( tqparent, name );
if ( init ) {
FormWindow *fw = find_formwindow( tqparent );
- TQWidget *w = fw ? new TQDesignerWidget( fw, tw, "tab" ) : new TQWidget( tw, "tab" );
+ TQWidget *w = fw ? new QDesignerWidget( fw, tw, "tab" ) : new TQWidget( tw, "tab" );
tw->addTab( w, i18n("Tab 1") );
MetaDataBase::addEntry( TQT_TQOBJECT(w) );
- w = fw ? new TQDesignerWidget( fw, tw, "tab" ) : new TQWidget( tw, "tab" );
+ w = fw ? new QDesignerWidget( fw, tw, "tab" ) : new TQWidget( tw, "tab" );
tw->addTab( w, i18n("Tab 2") );
MetaDataBase::addEntry( TQT_TQOBJECT(tw) );
MetaDataBase::addEntry( TQT_TQOBJECT(w) );
}
return tw;
} else if ( className == TQWIDGETSTACK_OBJECT_NAME_STRING ) {
- TQDesignerWidgetStack *ws = new TQDesignerWidgetStack( tqparent, name );
+ QDesignerWidgetStack *ws = new QDesignerWidgetStack( tqparent, name );
if ( init ) {
FormWindow *fw = find_formwindow( tqparent );
- TQWidget *w = fw ? new TQDesignerWidget( fw, ws, "WStackPage" ) : new TQWidget( ws, "WStackPage" );
+ TQWidget *w = fw ? new QDesignerWidget( fw, ws, "WStackPage" ) : new TQWidget( ws, "WStackPage" );
ws->insertPage( w );
MetaDataBase::addEntry( TQT_TQOBJECT(w) );
MetaDataBase::addEntry( TQT_TQOBJECT(ws) );
@@ -841,7 +841,7 @@ TQWidget *WidgetFactory::createWidget( const TQString &className, TQWidget *tqpa
::tqqt_cast<TQMainWindow*>(tqparent) ) ) {
FormWindow *fw = find_formwindow( tqparent );
if ( fw ) {
- TQDesignerWidget *dw = new TQDesignerWidget( fw, tqparent, name );
+ QDesignerWidget *dw = new QDesignerWidget( fw, tqparent, name );
MetaDataBase::addEntry( TQT_TQOBJECT(dw) );
return dw;
}
@@ -850,7 +850,7 @@ TQWidget *WidgetFactory::createWidget( const TQString &className, TQWidget *tqpa
} else if ( className == TQDIALOG_OBJECT_NAME_STRING ) {
TQDialog *dia = 0;
if ( ::tqqt_cast<FormWindow*>(tqparent) )
- dia = new TQDesignerDialog( (FormWindow*)tqparent, tqparent, name );
+ dia = new QDesignerDialog( (FormWindow*)tqparent, tqparent, name );
else
dia = new TQDialog( tqparent, name );
#if defined(TQT_NON_COMMERCIAL)
@@ -861,7 +861,7 @@ TQWidget *WidgetFactory::createWidget( const TQString &className, TQWidget *tqpa
dia->reparent( tqparent, TQPoint( 0, 0 ), TRUE );
return dia;
} else if ( className == TQWIZARD_OBJECT_NAME_STRING ) {
- TQWizard *wiz = new TQDesignerWizard( tqparent, name );
+ TQWizard *wiz = new QDesignerWizard( tqparent, name );
#if defined(TQT_NON_COMMERCIAL)
if ( ::tqqt_cast<MainWindow*>(tqparent) )
#else
@@ -869,7 +869,7 @@ TQWidget *WidgetFactory::createWidget( const TQString &className, TQWidget *tqpa
#endif
wiz->reparent( tqparent, TQPoint( 0, 0 ), TRUE );
if ( init && ::tqqt_cast<FormWindow*>(tqparent) ) {
- TQDesignerWidget *dw = new TQDesignerWidget( (FormWindow*)tqparent, wiz, "WizardPage" );
+ QDesignerWidget *dw = new QDesignerWidget( (FormWindow*)tqparent, wiz, "WizardPage" );
MetaDataBase::addEntry( TQT_TQOBJECT(dw) );
wiz->addPage( dw, i18n( "Page" ) );
TQTimer::singleShot( 0, wiz, TQT_SLOT( next() ) );
@@ -943,7 +943,7 @@ TQWidget *WidgetFactory::createWidget( const TQString &className, TQWidget *tqpa
} else if ( className == TQMAINWINDOW_OBJECT_NAME_STRING ) {
TQMainWindow *mw = new TQMainWindow( tqparent, name, 0 );
mw->setDockEnabled( TQt::DockMinimized, FALSE );
- TQDesignerWidget *dw = new TQDesignerWidget( (FormWindow*)tqparent, mw, "central widget" );
+ QDesignerWidget *dw = new QDesignerWidget( (FormWindow*)tqparent, mw, "central widget" );
mw->setDockMenuEnabled( FALSE );
MetaDataBase::addEntry( TQT_TQOBJECT(dw) );
mw->setCentralWidget( dw );
@@ -952,14 +952,14 @@ TQWidget *WidgetFactory::createWidget( const TQString &className, TQWidget *tqpa
return mw;
} else if ( className == TQTOOLBOX_OBJECT_NAME_STRING ) {
if ( !init )
- return new TQDesignerToolBox( tqparent, name );
- TQToolBox *tb = new TQDesignerToolBox( tqparent, name );
+ return new QDesignerToolBox( tqparent, name );
+ TQToolBox *tb = new QDesignerToolBox( tqparent, name );
FormWindow *fw = find_formwindow( tqparent );
- TQWidget *w = fw ? new TQDesignerWidget( fw, tb, "page1" ) :
+ TQWidget *w = fw ? new QDesignerWidget( fw, tb, "page1" ) :
new TQWidget( tb, "page1" );
tb->addItem( w, i18n("Page 1") );
MetaDataBase::addEntry( TQT_TQOBJECT(w) );
- w = fw ? new TQDesignerWidget( fw, tb, "page2" ) : new TQWidget( tb, "page2" );
+ w = fw ? new QDesignerWidget( fw, tb, "page2" ) : new TQWidget( tb, "page2" );
tb->addItem( w, i18n("Page 2") );
MetaDataBase::addEntry( TQT_TQOBJECT(tb) );
MetaDataBase::addEntry( TQT_TQOBJECT(w) );
@@ -967,12 +967,12 @@ TQWidget *WidgetFactory::createWidget( const TQString &className, TQWidget *tqpa
}
#ifndef TQT_NO_SQL
else if ( className == TQDATABROWSER_OBJECT_NAME_STRING ) {
- TQWidget *w = new TQDesignerDataBrowser( tqparent, name );
+ TQWidget *w = new QDesignerDataBrowser( tqparent, name );
if ( tqparent )
w->reparent( tqparent, TQPoint( 0, 0 ), TRUE );
return w;
} else if ( className == TQDATAVIEW_OBJECT_NAME_STRING ) {
- TQWidget *w = new TQDesignerDataView( tqparent, name );
+ TQWidget *w = new QDesignerDataView( tqparent, name );
if ( tqparent )
w->reparent( tqparent, TQPoint( 0, 0 ), TRUE );
return w;
@@ -1222,46 +1222,46 @@ const char* WidgetFactory::classNameOf( TQObject* o )
return o->className();
if (WidgetDatabase::isCustomPluginWidget(WidgetDatabase::idFromClassName(o->className())))
return o->className();
- else if ( ::tqqt_cast<TQDesignerTabWidget*>(o) )
+ else if ( ::tqqt_cast<QDesignerTabWidget*>(o) )
return TQTABWIDGET_OBJECT_NAME_STRING;
- else if ( ::tqqt_cast<TQDesignerWidgetStack*>(o) )
+ else if ( ::tqqt_cast<QDesignerWidgetStack*>(o) )
return TQWIDGETSTACK_OBJECT_NAME_STRING;
else if ( ::tqqt_cast<TQWidgetStack*>(o) )
return "TQWeDoNotWantToBreakTabWidget";
- else if ( ::tqqt_cast<TQDesignerDialog*>(o) )
+ else if ( ::tqqt_cast<QDesignerDialog*>(o) )
return TQDIALOG_OBJECT_NAME_STRING;
- else if ( ::tqqt_cast<TQDesignerWidget*>(o) )
+ else if ( ::tqqt_cast<QDesignerWidget*>(o) )
return TQWIDGET_OBJECT_NAME_STRING;
else if ( o->inherits( "CustomWidget" ) )
return ( (CustomWidget*)o )->realClassName().latin1();
- else if ( ::tqqt_cast<TQDesignerLabel*>(o) )
+ else if ( ::tqqt_cast<QDesignerLabel*>(o) )
return TQLABEL_OBJECT_NAME_STRING;
- else if ( ::tqqt_cast<TQDesignerWizard*>(o) )
+ else if ( ::tqqt_cast<QDesignerWizard*>(o) )
return TQWIZARD_OBJECT_NAME_STRING;
- else if ( ::tqqt_cast<TQDesignerPushButton*>(o) )
+ else if ( ::tqqt_cast<QDesignerPushButton*>(o) )
return TQPUSHBUTTON_OBJECT_NAME_STRING;
- else if ( ::tqqt_cast<TQDesignerToolButton*>(o) )
+ else if ( ::tqqt_cast<QDesignerToolButton*>(o) )
return TQTOOLBUTTON_OBJECT_NAME_STRING;
- else if ( ::tqqt_cast<TQDesignerRadioButton*>(o) )
+ else if ( ::tqqt_cast<QDesignerRadioButton*>(o) )
return TQRADIOBUTTON_OBJECT_NAME_STRING;
- else if ( ::tqqt_cast<TQDesignerCheckBox*>(o) )
+ else if ( ::tqqt_cast<QDesignerCheckBox*>(o) )
return TQCHECKBOX_OBJECT_NAME_STRING;
else if ( ::tqqt_cast<MenuBarEditor*>(o) )
return TQMENUBAR_OBJECT_NAME_STRING;
- else if ( ::tqqt_cast<TQDesignerToolBar*>(o) )
+ else if ( ::tqqt_cast<QDesignerToolBar*>(o) )
return TQTOOLBAR_OBJECT_NAME_STRING;
- else if ( ::tqqt_cast<TQDesignerAction*>(o) )
+ else if ( ::tqqt_cast<QDesignerAction*>(o) )
return TQACTION_OBJECT_NAME_STRING;
- else if ( ::tqqt_cast<TQDesignerActionGroup*>(o) )
+ else if ( ::tqqt_cast<QDesignerActionGroup*>(o) )
return TQACTIONGROUP_OBJECT_NAME_STRING;
else if ( ::tqqt_cast<PopupMenuEditor*>(o) )
return TQPOPUPMENU_OBJECT_NAME_STRING;
- else if ( ::tqqt_cast<TQDesignerToolBox*>(o) )
+ else if ( ::tqqt_cast<QDesignerToolBox*>(o) )
return TQTOOLBOX_OBJECT_NAME_STRING;
#ifndef TQT_NO_SQL
- else if ( ::tqqt_cast<TQDesignerDataBrowser*>(o) )
+ else if ( ::tqqt_cast<QDesignerDataBrowser*>(o) )
return TQDATABROWSER_OBJECT_NAME_STRING;
- else if ( ::tqqt_cast<TQDesignerDataView*>(o) )
+ else if ( ::tqqt_cast<QDesignerDataView*>(o) )
return TQDATAVIEW_OBJECT_NAME_STRING;
#endif
return o->className();
@@ -1307,7 +1307,7 @@ void WidgetFactory::initChangedProperties( TQObject *o )
MainWindow::self->currProject()->fakeFormFileFor( o ) )
return;
MetaDataBase::setPropertyChanged( o, "name", TRUE );
- if ( !::tqqt_cast<TQDesignerToolBar*>(o) && !::tqqt_cast<MenuBarEditor*>(o) )
+ if ( !::tqqt_cast<QDesignerToolBar*>(o) && !::tqqt_cast<MenuBarEditor*>(o) )
MetaDataBase::setPropertyChanged( o, "geometry", TRUE );
if ( ::tqqt_cast<TQPushButton*>(o) ||
@@ -1359,7 +1359,7 @@ void WidgetFactory::initChangedProperties( TQObject *o )
#endif
} else if ( ::tqqt_cast<TQSplitter*>(o) ) {
MetaDataBase::setPropertyChanged( o, "orientation", TRUE );
- } else if ( ::tqqt_cast<TQDesignerToolBar*>(o) ) {
+ } else if ( ::tqqt_cast<QDesignerToolBar*>(o) ) {
MetaDataBase::setPropertyChanged( o, "label", TRUE );
} else if ( ::tqqt_cast<MenuBarEditor*>(o) ) {
MetaDataBase::setPropertyChanged( o, "itemName", TRUE );
@@ -1543,7 +1543,7 @@ TQVariant WidgetFactory::property( TQObject *w, const char *name )
return w->property( name );
}
-void TQDesignerLabel::updateBuddy()
+void QDesignerLabel::updateBuddy()
{
if ( myBuddy.isEmpty() )
@@ -1560,7 +1560,7 @@ void TQDesignerLabel::updateBuddy()
}
-void TQDesignerWidget::resizeEvent( TQResizeEvent* e)
+void QDesignerWidget::resizeEvent( TQResizeEvent* e)
{
if ( need_frame ) {
TQPainter p(this);
@@ -1569,7 +1569,7 @@ void TQDesignerWidget::resizeEvent( TQResizeEvent* e)
}
}
-void TQDesignerWidget::paintEvent( TQPaintEvent *e )
+void QDesignerWidget::paintEvent( TQPaintEvent *e )
{
if ( need_frame ) {
TQPainter p(this);
@@ -1579,7 +1579,7 @@ void TQDesignerWidget::paintEvent( TQPaintEvent *e )
formwindow->paintGrid( this, e );
}
-void TQDesignerDialog::paintEvent( TQPaintEvent *e )
+void QDesignerDialog::paintEvent( TQPaintEvent *e )
{
formwindow->paintGrid( this, e );
}
@@ -1757,39 +1757,39 @@ TQWidget *CustomWidgetFactory::createWidget( const TQString &className, TQWidget
}
-TQDesignerToolBox::TQDesignerToolBox( TQWidget *tqparent, const char *name )
+QDesignerToolBox::QDesignerToolBox( TQWidget *tqparent, const char *name )
: TQToolBox( tqparent, name )
{
}
-TQString TQDesignerToolBox::itemLabel() const
+TQString QDesignerToolBox::itemLabel() const
{
return TQToolBox::itemLabel( currentIndex() );
}
-void TQDesignerToolBox::setItemLabel( const TQString &l )
+void QDesignerToolBox::setItemLabel( const TQString &l )
{
TQToolBox::setItemLabel( currentIndex(), l );
}
-TQCString TQDesignerToolBox::itemName() const
+TQCString QDesignerToolBox::itemName() const
{
return currentItem() ? currentItem()->name() : 0;
}
-void TQDesignerToolBox::setItemName( const TQCString &n )
+void QDesignerToolBox::setItemName( const TQCString &n )
{
if (currentItem())
currentItem()->setName( n );
}
-TQt::BackgroundMode TQDesignerToolBox::itemBackgroundMode() const
+TQt::BackgroundMode QDesignerToolBox::itemBackgroundMode() const
{
return (item(0) ? item(0)->backgroundMode() : PaletteBackground);
}
-void TQDesignerToolBox::setItemBackgroundMode( BackgroundMode bmode )
+void QDesignerToolBox::setItemBackgroundMode( BackgroundMode bmode )
{
for (int i = 0; i < count(); ++i) {
TQWidget *w = item(i);
@@ -1798,7 +1798,7 @@ void TQDesignerToolBox::setItemBackgroundMode( BackgroundMode bmode )
}
}
-void TQDesignerToolBox::itemInserted( int index )
+void QDesignerToolBox::itemInserted( int index )
{
if (count() > 1)
item(index)->setBackgroundMode(item(index>0?0:1)->backgroundMode());