summaryrefslogtreecommitdiffstats
path: root/tqtinterface/qt4/tools/designer/uic
diff options
context:
space:
mode:
Diffstat (limited to 'tqtinterface/qt4/tools/designer/uic')
-rw-r--r--tqtinterface/qt4/tools/designer/uic/form.cpp32
-rw-r--r--tqtinterface/qt4/tools/designer/uic/object.cpp18
-rw-r--r--tqtinterface/qt4/tools/designer/uic/subclassing.cpp16
-rw-r--r--tqtinterface/qt4/tools/designer/uic/uic.cpp102
-rw-r--r--tqtinterface/qt4/tools/designer/uic/uic.h26
5 files changed, 97 insertions, 97 deletions
diff --git a/tqtinterface/qt4/tools/designer/uic/form.cpp b/tqtinterface/qt4/tools/designer/uic/form.cpp
index 728a1fd..30b56af 100644
--- a/tqtinterface/qt4/tools/designer/uic/form.cpp
+++ b/tqtinterface/qt4/tools/designer/uic/form.cpp
@@ -381,14 +381,14 @@ void Uic::createFormDecl( const TQDomElement &e )
// constructor
if ( objClass == "TQDialog" || objClass == "TQWizard" ) {
- out << " " << bareNameOfClass << "( TQWidget* tqparent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );" << endl;
+ out << " " << bareNameOfClass << "( TQWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );" << endl;
} else if ( objClass == "TQWidget" ) {
- out << " " << bareNameOfClass << "( TQWidget* tqparent = 0, const char* name = 0, WFlags fl = 0 );" << endl;
+ out << " " << bareNameOfClass << "( TQWidget* parent = 0, const char* name = 0, WFlags fl = 0 );" << endl;
} else if ( objClass == "TQMainWindow" ) {
- out << " " << bareNameOfClass << "( TQWidget* tqparent = 0, const char* name = 0, WFlags fl = (WFlags)TQt::WType_TopLevel );" << endl;
+ out << " " << bareNameOfClass << "( TQWidget* parent = 0, const char* name = 0, WFlags fl = (WFlags)TQt::WType_TopLevel );" << endl;
isMainWindow = TRUE;
} else {
- out << " " << bareNameOfClass << "( TQWidget* tqparent = 0, const char* name = 0 );" << endl;
+ out << " " << bareNameOfClass << "( TQWidget* parent = 0, const char* name = 0 );" << endl;
}
// destructor
@@ -945,37 +945,37 @@ void Uic::createFormImpl( const TQDomElement &e )
// constructor
if ( objClass == "TQDialog" || objClass == "TQWizard" ) {
out << "/*" << endl;
- out << " * Constructs a " << nameOfClass << " as a child of 'tqparent', with the" << endl;
+ out << " * Constructs a " << nameOfClass << " as a child of 'parent', with the" << endl;
out << " * name 'name' and widget flags set to 'f'." << endl;
out << " *" << endl;
out << " * The " << objClass.mid(2).lower() << " will by default be modeless, unless you set 'modal' to" << endl;
out << " * TRUE to construct a modal " << objClass.mid(2).lower() << "." << endl;
out << " */" << endl;
- out << nameOfClass << "::" << bareNameOfClass << "( TQWidget* tqparent, const char* name, bool modal, WFlags fl )" << endl;
- out << " : " << objClass << "( tqparent, name, modal, fl )";
+ out << nameOfClass << "::" << bareNameOfClass << "( TQWidget* parent, const char* name, bool modal, WFlags fl )" << endl;
+ out << " : " << objClass << "( parent, name, modal, fl )";
} else if ( objClass == "TQWidget" ) {
out << "/*" << endl;
- out << " * Constructs a " << nameOfClass << " as a child of 'tqparent', with the" << endl;
+ out << " * Constructs a " << nameOfClass << " as a child of 'parent', with the" << endl;
out << " * name 'name' and widget flags set to 'f'." << endl;
out << " */" << endl;
- out << nameOfClass << "::" << bareNameOfClass << "( TQWidget* tqparent, const char* name, WFlags fl )" << endl;
- out << " : " << objClass << "( tqparent, name, fl )";
+ out << nameOfClass << "::" << bareNameOfClass << "( TQWidget* parent, const char* name, WFlags fl )" << endl;
+ out << " : " << objClass << "( parent, name, fl )";
} else if ( objClass == "TQMainWindow" ) {
out << "/*" << endl;
- out << " * Constructs a " << nameOfClass << " as a child of 'tqparent', with the" << endl;
+ out << " * Constructs a " << nameOfClass << " as a child of 'parent', with the" << endl;
out << " * name 'name' and widget flags set to 'f'." << endl;
out << " *" << endl;
out << " */" << endl;
- out << nameOfClass << "::" << bareNameOfClass << "( TQWidget* tqparent, const char* name, WFlags fl )" << endl;
- out << " : " << objClass << "( tqparent, name, fl )";
+ out << nameOfClass << "::" << bareNameOfClass << "( TQWidget* parent, const char* name, WFlags fl )" << endl;
+ out << " : " << objClass << "( parent, name, fl )";
isMainWindow = TRUE;
} else {
out << "/*" << endl;
- out << " * Constructs a " << nameOfClass << " which is a child of 'tqparent', with the" << endl;
+ out << " * Constructs a " << nameOfClass << " which is a child of 'parent', with the" << endl;
out << " * name 'name'.' " << endl;
out << " */" << endl;
- out << nameOfClass << "::" << bareNameOfClass << "( TQWidget* tqparent, const char* name )" << endl;
- out << " : " << objClass << "( tqparent, name )";
+ out << nameOfClass << "::" << bareNameOfClass << "( TQWidget* parent, const char* name )" << endl;
+ out << " : " << objClass << "( parent, name )";
}
// create pixmaps for all images
diff --git a/tqtinterface/qt4/tools/designer/uic/object.cpp b/tqtinterface/qt4/tools/designer/uic/object.cpp
index 77ca635..1a7ed9c 100644
--- a/tqtinterface/qt4/tools/designer/uic/object.cpp
+++ b/tqtinterface/qt4/tools/designer/uic/object.cpp
@@ -92,12 +92,12 @@ static bool createdCentralWidget = FALSE;
TQString Uic::createObjectImpl( const TQDomElement &e, const TQString& parentClass, const TQString& par, const TQString& tqlayout )
{
- TQString tqparent( par );
- if ( tqparent == "this" && isMainWindow ) {
+ TQString parent( par );
+ if ( parent == "this" && isMainWindow ) {
if ( !createdCentralWidget )
out << indent << "setCentralWidget( new TQWidget( this, \"qt_central_widget\" ) );" << endl;
createdCentralWidget = TRUE;
- tqparent = "centralWidget()";
+ parent = "centralWidget()";
}
TQDomElement n;
TQString objClass, objName;
@@ -106,7 +106,7 @@ TQString Uic::createObjectImpl( const TQDomElement &e, const TQString& parentCla
int numRows = 0;
if ( layouts.contains( e.tagName() ) )
- return createLayoutImpl( e, parentClass, tqparent, tqlayout );
+ return createLayoutImpl( e, parentClass, parent, tqlayout );
objClass = getClassName( e );
if ( objClass.isEmpty() )
@@ -132,13 +132,13 @@ TQString Uic::createObjectImpl( const TQDomElement &e, const TQString& parentCla
if ( tqlayout.isEmpty() ) {
// register the object and unify its name
objName = registerObject( objName );
- out << " TQWidget* " << objName << " = new TQWidget( " << tqparent << ", \"" << definedName << "\" );" << endl;
+ out << " TQWidget* " << objName << " = new TQWidget( " << parent << ", \"" << definedName << "\" );" << endl;
} else {
- // the tqlayout widget is not necessary, hide it by creating its child in the tqparent
+ // the tqlayout widget is not necessary, hide it by creating its child in the parent
TQString result;
for ( n = e.firstChild().toElement(); !n.isNull(); n = n.nextSibling().toElement() ) {
if (tags.contains( n.tagName() ) )
- result = createObjectImpl( n, parentClass, tqparent, tqlayout );
+ result = createObjectImpl( n, parentClass, parent, tqlayout );
}
return result;
}
@@ -148,7 +148,7 @@ TQString Uic::createObjectImpl( const TQDomElement &e, const TQString& parentCla
out << " ";
if ( isTmpObject )
out << objClass << "* ";
- out << objName << " = new " << createObjectInstance( objClass, tqparent, objName ) << ";" << endl;
+ out << objName << " = new " << createObjectInstance( objClass, parent, objName ) << ";" << endl;
}
if ( objClass == "TQAxWidget" ) {
@@ -197,7 +197,7 @@ TQString Uic::createObjectImpl( const TQDomElement &e, const TQString& parentCla
}
if ( prop == "buttonGroupId" ) {
if ( parentClass == "TQButtonGroup" )
- out << indent << tqparent << "->insert( " << objName << ", " << value << " );" << endl;
+ out << indent << parent << "->insert( " << objName << ", " << value << " );" << endl;
continue;
}
if ( prop == "frameworkCode" )
diff --git a/tqtinterface/qt4/tools/designer/uic/subclassing.cpp b/tqtinterface/qt4/tools/designer/uic/subclassing.cpp
index 3677b78..aaabee6 100644
--- a/tqtinterface/qt4/tools/designer/uic/subclassing.cpp
+++ b/tqtinterface/qt4/tools/designer/uic/subclassing.cpp
@@ -71,9 +71,9 @@ void Uic::createSubDecl( const TQDomElement &e, const TQString& subClass )
// constructor
if ( objClass == "TQDialog" || objClass == "TQWizard" ) {
- out << " " << subClass << "( TQWidget* tqparent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );" << endl;
+ out << " " << subClass << "( TQWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );" << endl;
} else { // standard TQWidget
- out << " " << subClass << "( TQWidget* tqparent = 0, const char* name = 0, WFlags fl = 0 );" << endl;
+ out << " " << subClass << "( TQWidget* parent = 0, const char* name = 0, WFlags fl = 0 );" << endl;
}
// destructor
@@ -212,21 +212,21 @@ void Uic::createSubImpl( const TQDomElement &e, const TQString& subClass )
// constructor
if ( objClass == "TQDialog" || objClass == "TQWizard" ) {
out << "/* " << endl;
- out << " * Constructs a " << subClass << " which is a child of 'tqparent', with the " << endl;
+ out << " * Constructs a " << subClass << " which is a child of 'parent', with the " << endl;
out << " * name 'name' and widget flags set to 'f' " << endl;
out << " *" << endl;
out << " * The " << objClass.mid(2).lower() << " will by default be modeless, unless you set 'modal' to" << endl;
out << " * TRUE to construct a modal " << objClass.mid(2).lower() << "." << endl;
out << " */" << endl;
- out << subClass << "::" << subClass << "( TQWidget* tqparent, const char* name, bool modal, WFlags fl )" << endl;
- out << " : " << nameOfClass << "( tqparent, name, modal, fl )" << endl;
+ out << subClass << "::" << subClass << "( TQWidget* parent, const char* name, bool modal, WFlags fl )" << endl;
+ out << " : " << nameOfClass << "( parent, name, modal, fl )" << endl;
} else { // standard TQWidget
out << "/* " << endl;
- out << " * Constructs a " << subClass << " which is a child of 'tqparent', with the " << endl;
+ out << " * Constructs a " << subClass << " which is a child of 'parent', with the " << endl;
out << " * name 'name' and widget flags set to 'f' " << endl;
out << " */" << endl;
- out << subClass << "::" << subClass << "( TQWidget* tqparent, const char* name, WFlags fl )" << endl;
- out << " : " << nameOfClass << "( tqparent, name, fl )" << endl;
+ out << subClass << "::" << subClass << "( TQWidget* parent, const char* name, WFlags fl )" << endl;
+ out << " : " << nameOfClass << "( parent, name, fl )" << endl;
}
out << "{" << endl;
out << "}" << endl;
diff --git a/tqtinterface/qt4/tools/designer/uic/uic.cpp b/tqtinterface/qt4/tools/designer/uic/uic.cpp
index 7a71eaf..ea1bc14 100644
--- a/tqtinterface/qt4/tools/designer/uic/uic.cpp
+++ b/tqtinterface/qt4/tools/designer/uic/uic.cpp
@@ -397,14 +397,14 @@ void Uic::createPopupMenuDecl( const TQDomElement &e )
}
}
-void Uic::createActionImpl( const TQDomElement &n, const TQString &tqparent )
+void Uic::createActionImpl( const TQDomElement &n, const TQString &parent )
{
for ( TQDomElement ae = n; !ae.isNull(); ae = ae.nextSibling().toElement() ) {
TQString objName = registerObject( getObjectName( ae ) );
if ( ae.tagName() == "action" )
- out << indent << objName << " = new TQAction( " << tqparent << ", \"" << objName << "\" );" << endl;
+ out << indent << objName << " = new TQAction( " << parent << ", \"" << objName << "\" );" << endl;
else if ( ae.tagName() == "actiongroup" )
- out << indent << objName << " = new TQActionGroup( " << tqparent << ", \"" << objName << "\" );" << endl;
+ out << indent << objName << " = new TQActionGroup( " << parent << ", \"" << objName << "\" );" << endl;
else
continue;
bool subActionsDone = FALSE;
@@ -470,7 +470,7 @@ TQString get_dock( const TQString &d )
return "";
}
-void Uic::createToolbarImpl( const TQDomElement &n, const TQString &parentClass, const TQString &tqparent )
+void Uic::createToolbarImpl( const TQDomElement &n, const TQString &parentClass, const TQString &parent )
{
TQDomNodeList nl = n.elementsByTagName( "toolbar" );
for ( int i = 0; i < (int) nl.length(); i++ ) {
@@ -478,7 +478,7 @@ void Uic::createToolbarImpl( const TQDomElement &n, const TQString &parentClass,
TQString dock = get_dock( ae.attribute( "dock" ) );
TQString objName = getObjectName( ae );
out << indent << objName << " = new TQToolBar( TQString(\"\"), this, " << dock << " ); " << endl;
- createObjectImpl( ae, parentClass, tqparent );
+ createObjectImpl( ae, parentClass, parent );
for ( TQDomElement n2 = ae.firstChild().toElement(); !n2.isNull(); n2 = n2.nextSibling().toElement() ) {
if ( n2.tagName() == "action" ) {
out << indent << n2.attribute( "name" ) << "->addTo( " << objName << " );" << endl;
@@ -488,7 +488,7 @@ void Uic::createToolbarImpl( const TQDomElement &n, const TQString &parentClass,
if ( n2.attribute( "class" ) != "Spacer" ) {
createObjectImpl( n2, "TQToolBar", objName );
} else {
- TQString child = createSpacerImpl( n2, parentClass, tqparent, objName );
+ TQString child = createSpacerImpl( n2, parentClass, parent, objName );
out << indent << "TQApplication::sendPostedEvents( " << objName
<< ", TQEvent::ChildInserted );" << endl;
out << indent << objName << "->boxLayout()->addItem( " << child << " );" << endl;
@@ -498,11 +498,11 @@ void Uic::createToolbarImpl( const TQDomElement &n, const TQString &parentClass,
}
}
-void Uic::createMenuBarImpl( const TQDomElement &n, const TQString &parentClass, const TQString &tqparent )
+void Uic::createMenuBarImpl( const TQDomElement &n, const TQString &parentClass, const TQString &parent )
{
TQString objName = getObjectName( n );
out << indent << objName << " = new TQMenuBar( this, \"" << objName << "\" );" << endl;
- createObjectImpl( n, parentClass, tqparent );
+ createObjectImpl( n, parentClass, parent );
int i = 0;
TQDomElement c = n.firstChild().toElement();
while ( !c.isNull() ) {
@@ -525,7 +525,7 @@ void Uic::createMenuBarImpl( const TQDomElement &n, const TQString &parentClass,
}
}
-void Uic::createPopupMenuImpl( const TQDomElement &e, const TQString &parentClass, const TQString &tqparent )
+void Uic::createPopupMenuImpl( const TQDomElement &e, const TQString &parentClass, const TQString &parent )
{
int i = 0;
for ( TQDomElement n = e.firstChild().toElement(); !n.isNull(); n = n.nextSibling().toElement() ) {
@@ -535,17 +535,17 @@ void Uic::createPopupMenuImpl( const TQDomElement &e, const TQString &parentClas
TQString itemName = n2.attribute( "name" );
TQString itemText = n2.attribute( "text" );
out << indent << itemName << " = new TQPopupMenu( this );" << endl;
- out << indent << tqparent << "->insertItem( " << n.attribute( "name" ) << "->iconSet(), ";
+ out << indent << parent << "->insertItem( " << n.attribute( "name" ) << "->iconSet(), ";
out << trcall( itemText ) << ", " << itemName << " );" << endl;
- trout << indent << tqparent << "->changeItem( " << tqparent << "->idAt( " << i << " ), ";
+ trout << indent << parent << "->changeItem( " << parent << "->idAt( " << i << " ), ";
trout << trcall( itemText ) << " );" << endl;
createPopupMenuImpl( n2, parentClass, itemName );
n = n2;
} else {
- out << indent << n.attribute( "name" ) << "->addTo( " << tqparent << " );" << endl;
+ out << indent << n.attribute( "name" ) << "->addTo( " << parent << " );" << endl;
}
} else if ( n.tagName() == "separator" ) {
- out << indent << tqparent << "->insertSeparator();" << endl;
+ out << indent << parent << "->insertSeparator();" << endl;
}
++i;
}
@@ -555,7 +555,7 @@ void Uic::createPopupMenuImpl( const TQDomElement &e, const TQString &parentClas
Creates implementation of an listbox item tag.
*/
-TQString Uic::createListBoxItemImpl( const TQDomElement &e, const TQString &tqparent,
+TQString Uic::createListBoxItemImpl( const TQDomElement &e, const TQString &parent,
TQString *value )
{
TQDomElement n = e.firstChild().toElement();
@@ -584,9 +584,9 @@ TQString Uic::createListBoxItemImpl( const TQDomElement &e, const TQString &tqpa
*value = trcall( txt, com );
if ( pix.isEmpty() ) {
- return tqparent + "->insertItem( " + trcall( txt, com ) + " );";
+ return parent + "->insertItem( " + trcall( txt, com ) + " );";
} else {
- return tqparent + "->insertItem( " + pix + ", " + trcall( txt, com ) + " );";
+ return parent + "->insertItem( " + pix + ", " + trcall( txt, com ) + " );";
}
}
@@ -594,7 +594,7 @@ TQString Uic::createListBoxItemImpl( const TQDomElement &e, const TQString &tqpa
Creates implementation of an iconview item tag.
*/
-TQString Uic::createIconViewItemImpl( const TQDomElement &e, const TQString &tqparent )
+TQString Uic::createIconViewItemImpl( const TQDomElement &e, const TQString &parent )
{
TQDomElement n = e.firstChild().toElement();
TQString txt;
@@ -619,16 +619,16 @@ TQString Uic::createIconViewItemImpl( const TQDomElement &e, const TQString &tqp
}
if ( pix.isEmpty() )
- return "(void) new TQIconViewItem( " + tqparent + ", " + trcall( txt, com ) + " );";
+ return "(void) new TQIconViewItem( " + parent + ", " + trcall( txt, com ) + " );";
else
- return "(void) new TQIconViewItem( " + tqparent + ", " + trcall( txt, com ) + ", " + pix + " );";
+ return "(void) new TQIconViewItem( " + parent + ", " + trcall( txt, com ) + ", " + pix + " );";
}
/*!
Creates implementation of an listview item tag.
*/
-TQString Uic::createListViewItemImpl( const TQDomElement &e, const TQString &tqparent,
+TQString Uic::createListViewItemImpl( const TQDomElement &e, const TQString &parent,
const TQString &parentItem )
{
TQString s;
@@ -653,7 +653,7 @@ TQString Uic::createListViewItemImpl( const TQDomElement &e, const TQString &tqp
if ( !parentItem.isEmpty() )
s += "new TQListViewItem( " + parentItem + ", " + lastItem + " );\n";
else
- s += "new TQListViewItem( " + tqparent + ", " + lastItem + " );\n";
+ s += "new TQListViewItem( " + parent + ", " + lastItem + " );\n";
TQStringList texts;
TQStringList pixmaps;
@@ -673,7 +673,7 @@ TQString Uic::createListViewItemImpl( const TQDomElement &e, const TQString &tqp
}
} else if ( n.tagName() == "item" ) {
s += indent + item + "->setOpen( TRUE );\n";
- s += createListViewItemImpl( n, tqparent, item );
+ s += createListViewItemImpl( n, parent, item );
}
n = n.nextSibling().toElement();
}
@@ -693,7 +693,7 @@ TQString Uic::createListViewItemImpl( const TQDomElement &e, const TQString &tqp
Creates implementation of an listview column tag.
*/
-TQString Uic::createListViewColumnImpl( const TQDomElement &e, const TQString &tqparent,
+TQString Uic::createListViewColumnImpl( const TQDomElement &e, const TQString &parent,
TQString *value )
{
TQDomElement n = e.firstChild().toElement();
@@ -726,17 +726,17 @@ TQString Uic::createListViewColumnImpl( const TQDomElement &e, const TQString &t
*value = trcall( txt, com );
TQString s;
- s = indent + tqparent + "->addColumn( " + trcall( txt, com ) + " );\n";
+ s = indent + parent + "->addColumn( " + trcall( txt, com ) + " );\n";
if ( !pix.isEmpty() )
- s += indent + tqparent + "->header()->setLabel( " + tqparent + "->header()->count() - 1, " + pix + ", " + trcall( txt, com ) + " );\n";
+ s += indent + parent + "->header()->setLabel( " + parent + "->header()->count() - 1, " + pix + ", " + trcall( txt, com ) + " );\n";
if ( !clickable )
- s += indent + tqparent + "->header()->setClickEnabled( FALSE, " + tqparent + "->header()->count() - 1 );\n";
+ s += indent + parent + "->header()->setClickEnabled( FALSE, " + parent + "->header()->count() - 1 );\n";
if ( !resizable )
- s += indent + tqparent + "->header()->setResizeEnabled( FALSE, " + tqparent + "->header()->count() - 1 );\n";
+ s += indent + parent + "->header()->setResizeEnabled( FALSE, " + parent + "->header()->count() - 1 );\n";
return s;
}
-TQString Uic::createTableRowColumnImpl( const TQDomElement &e, const TQString &tqparent,
+TQString Uic::createTableRowColumnImpl( const TQDomElement &e, const TQString &parent,
TQString *value )
{
TQString objClass = getClassName( e.parentNode().toElement() );
@@ -774,28 +774,28 @@ TQString Uic::createTableRowColumnImpl( const TQDomElement &e, const TQString &t
TQString s;
if ( isRow ) {
- s = indent + tqparent + "->setNumRows( " + tqparent + "->numRows() + 1 );\n";
+ s = indent + parent + "->setNumRows( " + parent + "->numRows() + 1 );\n";
if ( pix.isEmpty() )
- s += indent + tqparent + "->verticalHeader()->setLabel( " + tqparent + "->numRows() - 1, "
+ s += indent + parent + "->verticalHeader()->setLabel( " + parent + "->numRows() - 1, "
+ trcall( txt, com ) + " );\n";
else
- s += indent + tqparent + "->verticalHeader()->setLabel( " + tqparent + "->numRows() - 1, "
+ s += indent + parent + "->verticalHeader()->setLabel( " + parent + "->numRows() - 1, "
+ pix + ", " + trcall( txt, com ) + " );\n";
} else {
if ( objClass == "TQTable" ) {
- s = indent + tqparent + "->setNumCols( " + tqparent + "->numCols() + 1 );\n";
+ s = indent + parent + "->setNumCols( " + parent + "->numCols() + 1 );\n";
if ( pix.isEmpty() )
- s += indent + tqparent + "->horizontalHeader()->setLabel( " + tqparent + "->numCols() - 1, "
+ s += indent + parent + "->horizontalHeader()->setLabel( " + parent + "->numCols() - 1, "
+ trcall( txt, com ) + " );\n";
else
- s += indent + tqparent + "->horizontalHeader()->setLabel( " + tqparent + "->numCols() - 1, "
+ s += indent + parent + "->horizontalHeader()->setLabel( " + parent + "->numCols() - 1, "
+ pix + ", " + trcall( txt, com ) + " );\n";
} else if ( objClass == "TQDataTable" ) {
if ( !txt.isEmpty() && !field.isEmpty() ) {
if ( pix.isEmpty() )
- out << indent << tqparent << "->addColumn( " << fixString( field ) << ", " << trcall( txt, com ) << " );" << endl;
+ out << indent << parent << "->addColumn( " << fixString( field ) << ", " << trcall( txt, com ) << " );" << endl;
else
- out << indent << tqparent << "->addColumn( " << fixString( field ) << ", " << trcall( txt, com ) << ", " << pix << " );" << endl;
+ out << indent << parent << "->addColumn( " << fixString( field ) << ", " << trcall( txt, com ) << ", " << pix << " );" << endl;
}
}
}
@@ -805,7 +805,7 @@ TQString Uic::createTableRowColumnImpl( const TQDomElement &e, const TQString &t
/*!
Creates the implementation of a tqlayout tag. Called from createObjectImpl().
*/
-TQString Uic::createLayoutImpl( const TQDomElement &e, const TQString& parentClass, const TQString& tqparent, const TQString& tqlayout )
+TQString Uic::createLayoutImpl( const TQDomElement &e, const TQString& parentClass, const TQString& parent, const TQString& tqlayout )
{
TQDomElement n;
TQString objClass, objName;
@@ -830,15 +830,15 @@ TQString Uic::createLayoutImpl( const TQDomElement &e, const TQString& parentCla
optcells = "1, 1, ";
if ( (parentClass == "TQGroupBox" || parentClass == "TQButtonGroup") && tqlayout.isEmpty() ) {
// special case for group box
- out << indent << tqparent << "->setColumnLayout(0, Qt::Vertical );" << endl;
- out << indent << tqparent << "->tqlayout()->setSpacing( " << spacing << " );" << endl;
- out << indent << tqparent << "->tqlayout()->setMargin( " << margin << " );" << endl;
- out << indent << objName << " = new " << qtqlayout << "( " << tqparent << "->tqlayout() );" << endl;
+ out << indent << parent << "->setColumnLayout(0, Qt::Vertical );" << endl;
+ out << indent << parent << "->tqlayout()->setSpacing( " << spacing << " );" << endl;
+ out << indent << parent << "->tqlayout()->setMargin( " << margin << " );" << endl;
+ out << indent << objName << " = new " << qtqlayout << "( " << parent << "->tqlayout() );" << endl;
out << indent << objName << "->tqsetAlignment( TQt::AlignTop );" << endl;
} else {
out << indent << objName << " = new " << qtqlayout << "( ";
if ( tqlayout.isEmpty() )
- out << tqparent;
+ out << parent;
else {
out << "0";
if ( !DomTool::hasProperty( e, "margin" ) )
@@ -852,10 +852,10 @@ TQString Uic::createLayoutImpl( const TQDomElement &e, const TQString& parentCla
if ( !isGrid ) {
for ( n = e.firstChild().toElement(); !n.isNull(); n = n.nextSibling().toElement() ) {
if ( n.tagName() == "spacer" ) {
- TQString child = createSpacerImpl( n, parentClass, tqparent, objName );
+ TQString child = createSpacerImpl( n, parentClass, parent, objName );
out << indent << objName << "->addItem( static_cast<TQLayoutItem*>(static_cast<QLayoutItem*>( " << child << " )) );" << endl;
} else if ( tags.contains( n.tagName() ) ) {
- TQString child = createObjectImpl( n, parentClass, tqparent, objName );
+ TQString child = createObjectImpl( n, parentClass, parent, objName );
if ( isLayout( child ) )
out << indent << objName << "->addLayout( static_cast<TQLayout*>(static_cast<QLayout*>( " << child << " )) );" << endl;
else
@@ -874,7 +874,7 @@ TQString Uic::createLayoutImpl( const TQDomElement &e, const TQString& parentCla
if ( colspan < 1 )
colspan = 1;
if ( n.tagName() == "spacer" ) {
- TQString child = createSpacerImpl( n, parentClass, tqparent, objName );
+ TQString child = createSpacerImpl( n, parentClass, parent, objName );
if ( rowspan * colspan != 1 )
out << indent << objName << "->addMultiCell( " << child << ", "
<< row << ", " << ( row + rowspan - 1 ) << ", " << col << ", " << ( col + colspan - 1 ) << " );" << endl;
@@ -882,7 +882,7 @@ TQString Uic::createLayoutImpl( const TQDomElement &e, const TQString& parentCla
out << indent << objName << "->addItem( " << child << ", "
<< row << ", " << col << " );" << endl;
} else if ( tags.contains( n.tagName() ) ) {
- TQString child = createObjectImpl( n, parentClass, tqparent, objName );
+ TQString child = createObjectImpl( n, parentClass, parent, objName );
out << endl;
TQString o = "Widget";
if ( isLayout( child ) )
@@ -902,7 +902,7 @@ TQString Uic::createLayoutImpl( const TQDomElement &e, const TQString& parentCla
-TQString Uic::createSpacerImpl( const TQDomElement &e, const TQString& /*parentClass*/, const TQString& /*tqparent*/, const TQString& /*tqlayout*/)
+TQString Uic::createSpacerImpl( const TQDomElement &e, const TQString& /*parentClass*/, const TQString& /*parent*/, const TQString& /*tqlayout*/)
{
TQDomElement n;
TQString objClass, objName;
@@ -1109,15 +1109,15 @@ TQStringList Uic::unique( const TQStringList& list )
/*!
- Creates an instance of class \a objClass, with tqparent \a tqparent and name \a objName
+ Creates an instance of class \a objClass, with parent \a parent and name \a objName
*/
-TQString Uic::createObjectInstance( const TQString& objClass, const TQString& tqparent, const TQString& objName )
+TQString Uic::createObjectInstance( const TQString& objClass, const TQString& parent, const TQString& objName )
{
if ( objClass.mid( 2 ) == "ComboBox" ) {
- return objClass + "( FALSE, " + tqparent + ", \"" + objName + "\" )";
+ return objClass + "( FALSE, " + parent + ", \"" + objName + "\" )";
}
- return objClass + "( " + tqparent + ", \"" + objName + "\" )";
+ return objClass + "( " + parent + ", \"" + objName + "\" )";
}
bool Uic::isLayout( const TQString& name ) const
diff --git a/tqtinterface/qt4/tools/designer/uic/uic.h b/tqtinterface/qt4/tools/designer/uic/uic.h
index 00af1d8..6f240fd 100644
--- a/tqtinterface/qt4/tools/designer/uic/uic.h
+++ b/tqtinterface/qt4/tools/designer/uic/uic.h
@@ -60,20 +60,20 @@ public:
void createToolbarDecl( const TQDomElement &e );
void createMenuBarDecl( const TQDomElement &e );
void createPopupMenuDecl( const TQDomElement &e );
- void createActionImpl( const TQDomElement &e, const TQString &tqparent );
- void createToolbarImpl( const TQDomElement &e, const TQString &parentClass, const TQString &tqparent );
- void createMenuBarImpl( const TQDomElement &e, const TQString &parentClass, const TQString &tqparent );
- void createPopupMenuImpl( const TQDomElement &e, const TQString &parentClass, const TQString &tqparent );
- TQString createObjectImpl( const TQDomElement &e, const TQString& parentClass, const TQString& tqparent, const TQString& tqlayout = TQString() );
- TQString createLayoutImpl( const TQDomElement &e, const TQString& parentClass, const TQString& tqparent, const TQString& tqlayout = TQString() );
- TQString createObjectInstance( const TQString& objClass, const TQString& tqparent, const TQString& objName );
- TQString createSpacerImpl( const TQDomElement &e, const TQString& parentClass, const TQString& tqparent, const TQString& tqlayout = TQString() );
+ void createActionImpl( const TQDomElement &e, const TQString &parent );
+ void createToolbarImpl( const TQDomElement &e, const TQString &parentClass, const TQString &parent );
+ void createMenuBarImpl( const TQDomElement &e, const TQString &parentClass, const TQString &parent );
+ void createPopupMenuImpl( const TQDomElement &e, const TQString &parentClass, const TQString &parent );
+ TQString createObjectImpl( const TQDomElement &e, const TQString& parentClass, const TQString& parent, const TQString& tqlayout = TQString() );
+ TQString createLayoutImpl( const TQDomElement &e, const TQString& parentClass, const TQString& parent, const TQString& tqlayout = TQString() );
+ TQString createObjectInstance( const TQString& objClass, const TQString& parent, const TQString& objName );
+ TQString createSpacerImpl( const TQDomElement &e, const TQString& parentClass, const TQString& parent, const TQString& tqlayout = TQString() );
void createExclusiveProperty( const TQDomElement & e, const TQString& exclusiveProp );
- TQString createListBoxItemImpl( const TQDomElement &e, const TQString &tqparent, TQString *value = 0 );
- TQString createIconViewItemImpl( const TQDomElement &e, const TQString &tqparent );
- TQString createListViewColumnImpl( const TQDomElement &e, const TQString &tqparent, TQString *value = 0 );
- TQString createTableRowColumnImpl( const TQDomElement &e, const TQString &tqparent, TQString *value = 0 );
- TQString createListViewItemImpl( const TQDomElement &e, const TQString &tqparent,
+ TQString createListBoxItemImpl( const TQDomElement &e, const TQString &parent, TQString *value = 0 );
+ TQString createIconViewItemImpl( const TQDomElement &e, const TQString &parent );
+ TQString createListViewColumnImpl( const TQDomElement &e, const TQString &parent, TQString *value = 0 );
+ TQString createTableRowColumnImpl( const TQDomElement &e, const TQString &parent, TQString *value = 0 );
+ TQString createListViewItemImpl( const TQDomElement &e, const TQString &parent,
const TQString &parentItem );
void createColorGroupImpl( const TQString& cg, const TQDomElement& e );
TQColorGroup loadColorGroup( const TQDomElement &e );