summaryrefslogtreecommitdiffstats
path: root/qtruby/rubylib/designer/rbuic/subclassing.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qtruby/rubylib/designer/rbuic/subclassing.cpp')
-rw-r--r--qtruby/rubylib/designer/rbuic/subclassing.cpp46
1 files changed, 23 insertions, 23 deletions
diff --git a/qtruby/rubylib/designer/rbuic/subclassing.cpp b/qtruby/rubylib/designer/rbuic/subclassing.cpp
index e6a876f0..ef19cf53 100644
--- a/qtruby/rubylib/designer/rbuic/subclassing.cpp
+++ b/qtruby/rubylib/designer/rbuic/subclassing.cpp
@@ -39,20 +39,20 @@
\sa createSubDecl()
*/
-void Uic::createSubImpl( const TQDomElement &e, const TQString& subClass )
+void Uic::createSubImpl( const TTQDomElement &e, const TTQString& subClass )
{
- TQDomElement n;
- TQDomNodeList nl;
+ TTQDomElement n;
+ TTQDomNodeList nl;
int i;
- TQStringList::Iterator it, it2, it3;
+ TTQStringList::Iterator it, it2, it3;
- TQString objClass = getClassName( e );
+ TTQString objClass = getClassName( e );
if ( objClass.isEmpty() )
return;
if (hasKDEwidget) {
- out << indent << "require 'Korundum'" << endl;
+ out << indent << "retquire 'Korundum'" << endl;
} else {
- out << indent << "require 'Qt'" << endl;
+ out << indent << "retquire 'Qt'" << endl;
}
out << endl;
out << indent << "class " << subClass << " < " << nameOfClass << endl;
@@ -61,7 +61,7 @@ void Uic::createSubImpl( const TQDomElement &e, const TQString& subClass )
++indent;
// constructor
- if ( objClass == "Qt::Dialog" || objClass == "Qt::Wizard" ) {
+ if ( objClass == "TQt::Dialog" || objClass == "TQt::Wizard" ) {
out << indent << "# Constructs a " << subClass << " which is a child of 'parent', with the " << endl;
out << indent << "# name 'name' and widget flags set to 'fl' " << endl;
out << indent << "# " << endl;
@@ -82,10 +82,10 @@ void Uic::createSubImpl( const TQDomElement &e, const TQString& subClass )
out << endl;
// find additional slots
- TQStringList publicSlots, protectedSlots, privateSlots;
- TQStringList publicSlotTypes, protectedSlotTypes, privateSlotTypes;
- TQStringList publicSlotSpecifier, protectedSlotSpecifier, privateSlotSpecifier;
- TQMap<TQString, TQString> functionImpls;
+ TTQStringList publicSlots, protectedSlots, privateSlots;
+ TTQStringList publicSlotTypes, protectedSlotTypes, privateSlotTypes;
+ TTQStringList publicSlotSpecifier, protectedSlotSpecifier, privateSlotSpecifier;
+ TTQMap<TTQString, TTQString> functionImpls;
nl = e.parentNode().toElement().elementsByTagName( "slot" );
for ( i = 0; i < (int) nl.length(); i++ ) {
n = nl.item(i).toElement();
@@ -94,12 +94,12 @@ void Uic::createSubImpl( const TQDomElement &e, const TQString& subClass )
continue;
if ( n.attribute( "language", "C++" ) != "C++" )
continue;
- TQString returnType = n.attribute( "returnType", "void" );
- TQString slotName = n.firstChild().toText().data().stripWhiteSpace();
+ TTQString returnType = n.attribute( "returnType", "void" );
+ TTQString slotName = n.firstChild().toText().data().stripWhiteSpace();
if ( slotName.endsWith( ";" ) )
slotName = slotName.left( slotName.length() - 1 );
- TQString specifier = n.attribute( "specifier" );
- TQString access = n.attribute( "access" );
+ TTQString specifier = n.attribute( "specifier" );
+ TTQString access = n.attribute( "access" );
if ( access == "protected" ) {
protectedSlots += slotName;
protectedSlotTypes += returnType;
@@ -119,7 +119,7 @@ void Uic::createSubImpl( const TQDomElement &e, const TQString& subClass )
// compatibility with early 3.0 betas
nl = e.parentNode().toElement().elementsByTagName( "function" );
for ( i = 0; i < (int) nl.length(); i++ ) {
- TQString fname = n.attribute( "name" );
+ TTQString fname = n.attribute( "name" );
fname = Parser::cleanArgs( fname );
functionImpls.insert( fname, n.firstChild().toText().data() );
}
@@ -127,8 +127,8 @@ void Uic::createSubImpl( const TQDomElement &e, const TQString& subClass )
if ( !publicSlots.isEmpty() ) {
for ( it = publicSlots.begin(), it2 = publicSlotTypes.begin(), it3 = publicSlotSpecifier.begin();
it != publicSlots.end(); ++it, ++it2, ++it3 ) {
- TQString pure;
- TQString type = *it2;
+ TTQString pure;
+ TTQString type = *it2;
if ( type.isEmpty() )
type = "void";
if ( *it3 == "non virtual" )
@@ -149,8 +149,8 @@ void Uic::createSubImpl( const TQDomElement &e, const TQString& subClass )
if ( !protectedSlots.isEmpty() ) {
for ( it = protectedSlots.begin(), it2 = protectedSlotTypes.begin(), it3 = protectedSlotSpecifier.begin();
it != protectedSlots.end(); ++it, ++it2, ++it3 ) {
- TQString pure;
- TQString type = *it2;
+ TTQString pure;
+ TTQString type = *it2;
if ( type.isEmpty() )
type = "void";
if ( *it3 == "non virtual" )
@@ -173,8 +173,8 @@ void Uic::createSubImpl( const TQDomElement &e, const TQString& subClass )
if ( !privateSlots.isEmpty() ) {
for ( it = privateSlots.begin(), it2 = privateSlotTypes.begin(), it3 = privateSlotSpecifier.begin();
it != privateSlots.end(); ++it, ++it2, ++it3 ) {
- TQString pure;
- TQString type = *it2;
+ TTQString pure;
+ TTQString type = *it2;
if ( type.isEmpty() )
type = "void";
if ( *it3 == "non virtual" )