summaryrefslogtreecommitdiffstats
path: root/kregexpeditor/charselector.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-15 15:50:52 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-15 15:50:52 -0600
commitbf280726d5d22f33d33e4f9e771220c725249407 (patch)
tree48b7496821910eb85179d543acee981cf5d16dd8 /kregexpeditor/charselector.cpp
parentc78266617c282543427d2c000b3b68fe2b6b6722 (diff)
downloadtdeutils-bf280726d5d22f33d33e4f9e771220c725249407.tar.gz
tdeutils-bf280726d5d22f33d33e4f9e771220c725249407.zip
Rename a number of old tq methods that are no longer tq specific
Diffstat (limited to 'kregexpeditor/charselector.cpp')
-rw-r--r--kregexpeditor/charselector.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/kregexpeditor/charselector.cpp b/kregexpeditor/charselector.cpp
index 5f60475..0434281 100644
--- a/kregexpeditor/charselector.cpp
+++ b/kregexpeditor/charselector.cpp
@@ -26,7 +26,7 @@
#include "charselector.h"
#include "limitedcharlineedit.h"
#include "regexpconverter.h"
-#include <tqlayout.h>
+#include <layout.h>
#include <tqwidgetstack.h>
#include <tqcombobox.h>
@@ -43,10 +43,10 @@ class StackContainer :public TQWidget
public:
StackContainer( TQWidget* child, TQWidget* parent ) : TQWidget( parent )
{
- TQHBoxLayout* tqlayout = new TQHBoxLayout( this );
+ TQHBoxLayout* layout = new TQHBoxLayout( this );
child->reparent( this, TQPoint(0,0), false );
- tqlayout->addWidget( child );
- tqlayout->addStretch( 1 );
+ layout->addWidget( child );
+ layout->addStretch( 1 );
}
};
@@ -54,13 +54,13 @@ CharSelector::CharSelector( TQWidget* parent, const char* name )
:TQWidget( parent, name ), _oldIndex(0)
{
TQStringList items;
- TQHBoxLayout* tqlayout = new TQHBoxLayout( this, 0, 6 );
+ TQHBoxLayout* layout = new TQHBoxLayout( this, 0, 6 );
_type = new TQComboBox( this, "_type" );
items << i18n("Normal Character")
<< i18n("Unicode Char in Hex.")
<< i18n("Unicode Char in Oct.")
- << TQString::tqfromLatin1("----")
+ << TQString::fromLatin1("----")
<< i18n("The Bell Character (\\a)")
<< i18n("The Form Feed Character (\\f)")
<< i18n("The Line Feed Character (\\n)")
@@ -68,10 +68,10 @@ CharSelector::CharSelector( TQWidget* parent, const char* name )
<< i18n("TheQt::Horizontal Tab Character (\\t)")
<< i18n("TheQt::Vertical Tab Character (\\v)");
_type->insertStringList( items );
- tqlayout->addWidget( _type );
+ layout->addWidget( _type );
_stack = new TQWidgetStack( this, "_stack" );
- tqlayout->addWidget( _stack );
+ layout->addWidget( _stack );
_normal = new LimitedCharLineEdit( LimitedCharLineEdit::NORMAL, 0, "_normal" );
_stack->addWidget( new StackContainer( _normal, _stack ), 0 );
@@ -169,17 +169,17 @@ TQString CharSelector::text() const
case 3: // The seperator
break;
case 4:
- return TQString::tqfromLatin1("\\a");
+ return TQString::fromLatin1("\\a");
case 5:
- return TQString::tqfromLatin1("\\f");
+ return TQString::fromLatin1("\\f");
case 6:
- return TQString::tqfromLatin1("\\n");
+ return TQString::fromLatin1("\\n");
case 7:
- return TQString::tqfromLatin1("\\r");
+ return TQString::fromLatin1("\\r");
case 8:
- return TQString::tqfromLatin1("\\t");
+ return TQString::fromLatin1("\\t");
case 9:
- return TQString::tqfromLatin1("\\v");
+ return TQString::fromLatin1("\\v");
}
return TQString();
}