summaryrefslogtreecommitdiffstats
path: root/kdevdesigner/designer/widgetfactory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kdevdesigner/designer/widgetfactory.cpp')
-rw-r--r--kdevdesigner/designer/widgetfactory.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/kdevdesigner/designer/widgetfactory.cpp b/kdevdesigner/designer/widgetfactory.cpp
index 2ac16034..8c58a328 100644
--- a/kdevdesigner/designer/widgetfactory.cpp
+++ b/kdevdesigner/designer/widgetfactory.cpp
@@ -522,7 +522,7 @@ void WidgetFactory::saveChangedProperties( TQObject *w, int id )
created.
*/
-TQWidget *WidgetFactory::create( int id, TQWidget *parent, const char *name, bool init, const TQRect *r, Qt::Orientation orient )
+TQWidget *WidgetFactory::create( int id, TQWidget *parent, const char *name, bool init, const TQRect *r, TQt::Orientation orient )
{
TQString n = WidgetDatabase::className( id );
if ( n.isEmpty() )
@@ -591,7 +591,7 @@ TQLayout *WidgetFactory::createLayout( TQWidget *widget, TQLayout *layout, Layou
int align = 0;
if ( !layout && ::tqqt_cast<TQGroupBox*>(widget) ) {
TQGroupBox *gb = (TQGroupBox*)widget;
- gb->setColumnLayout( 0, Qt::Vertical );
+ gb->setColumnLayout( 0, TQt::Vertical );
layout = gb->layout();
layout->setMargin( 0 );
layout->setSpacing( 0 );
@@ -684,7 +684,7 @@ void WidgetFactory::deleteLayout( TQWidget *widget )
*/
TQWidget *WidgetFactory::createWidget( const TQString &className, TQWidget *parent, const char *name, bool init,
- const TQRect *r, Qt::Orientation orient )
+ const TQRect *r, TQt::Orientation orient )
{
if ( className == "TQPushButton" ) {
TQPushButton *b = 0;
@@ -877,9 +877,9 @@ TQWidget *WidgetFactory::createWidget( const TQString &className, TQWidget *pare
if ( !r->isValid() || r->width() < 2 && r->height() < 2 )
s->setOrientation( orient );
else if ( r->width() < r->height() )
- s->setOrientation( Qt::Vertical );
+ s->setOrientation( TQt::Vertical );
else
- s->setOrientation( Qt::Horizontal );
+ s->setOrientation( TQt::Horizontal );
return s;
} else if ( className == "TQLCDNumber" )
return new TQLCDNumber( parent, name );
@@ -898,7 +898,7 @@ TQWidget *WidgetFactory::createWidget( const TQString &className, TQWidget *pare
if ( !r->isValid() || r->width() < 2 && r->height() < 2 )
s->setOrientation( orient );
else if ( r->width() > r->height() )
- s->setOrientation( Qt::Horizontal );
+ s->setOrientation( TQt::Horizontal );
MetaDataBase::addEntry( TQT_TQOBJECT(s) );
MetaDataBase::setPropertyChanged( TQT_TQOBJECT(s), "orientation", TRUE );
return s;
@@ -909,7 +909,7 @@ TQWidget *WidgetFactory::createWidget( const TQString &className, TQWidget *pare
if ( !r->isValid() || r->width() < 2 && r->height() < 2 )
s->setOrientation( orient );
else if ( r->width() > r->height() )
- s->setOrientation( Qt::Horizontal );
+ s->setOrientation( TQt::Horizontal );
MetaDataBase::addEntry( TQT_TQOBJECT(s) );
MetaDataBase::setPropertyChanged( TQT_TQOBJECT(s), "orientation", TRUE );
return s;
@@ -930,7 +930,7 @@ TQWidget *WidgetFactory::createWidget( const TQString &className, TQWidget *pare
if ( !r->isValid() || r->width() < 2 && r->height() < 2 )
l->setOrientation( orient );
else if ( r->width() < r->height() )
- l->setOrientation( Qt::Vertical );
+ l->setOrientation( TQt::Vertical );
return l;
} else if ( className == "TQMainWindow" ) {
TQMainWindow *mw = new TQMainWindow( parent, name, 0 );
@@ -1014,7 +1014,7 @@ WidgetFactory::LayoutType WidgetFactory::layoutType( TQWidget *w, TQLayout *&lay
w = ((TQToolBox*)w)->currentItem();
if ( ::tqqt_cast<TQSplitter*>(w) )
- return ( (TQSplitter*)w )->orientation() ==Qt::Horizontal ? HBox : VBox;
+ return ( (TQSplitter*)w )->orientation() ==TQt::Horizontal ? HBox : VBox;
if ( !w || !w->layout() )
return NoLayout;