summaryrefslogtreecommitdiffstats
path: root/kregexpeditor/kregexpeditorgui.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/kregexpeditorgui.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/kregexpeditorgui.cpp')
-rw-r--r--kregexpeditor/kregexpeditorgui.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/kregexpeditor/kregexpeditorgui.cpp b/kregexpeditor/kregexpeditorgui.cpp
index 95c0f25..5260140 100644
--- a/kregexpeditor/kregexpeditorgui.cpp
+++ b/kregexpeditor/kregexpeditorgui.cpp
@@ -29,7 +29,7 @@
// #include <unistd.h> // DO I need this?
#include <stdio.h>
#include "kregexpeditorprivate.h"
-#include <tqlayout.h>
+#include <layout.h>
const TQString KRegExpEditorGUI::version = TQString::fromLocal8Bit("1.0");
@@ -38,9 +38,9 @@ KRegExpEditorGUI::KRegExpEditorGUI(TQWidget *parent, const char *name,
const TQStringList & )
: TQWidget( parent, name)
{
- TQHBoxLayout* tqlayout = new TQHBoxLayout( this, 6 );
+ TQHBoxLayout* layout = new TQHBoxLayout( this, 6 );
_editor = new KRegExpEditorPrivate( this, "_editor" );
- tqlayout->addWidget( _editor );
+ layout->addWidget( _editor );
connect( _editor, TQT_SIGNAL( canUndo(bool) ), this, TQT_SIGNAL( canUndo(bool) ) );
connect( _editor, TQT_SIGNAL( canRedo(bool) ), this, TQT_SIGNAL( canRedo(bool) ) );
connect( _editor, TQT_SIGNAL( changes(bool) ), this, TQT_SIGNAL( changes(bool) ) );
@@ -74,8 +74,8 @@ KRegExpEditorGUIDialog::KRegExpEditorGUIDialog( TQWidget *parent,
parent, name ? name : "KRegExpDialog" )
{
TQFrame* frame = plainPage();
- TQVBoxLayout* tqlayout = new TQVBoxLayout( frame, 6 );
- tqlayout->setAutoAdd( true );
+ TQVBoxLayout* layout = new TQVBoxLayout( frame, 6 );
+ layout->setAutoAdd( true );
_editor = new KRegExpEditorGUI( frame );
connect( _editor, TQT_SIGNAL( canUndo(bool) ), this, TQT_SIGNAL( canUndo(bool) ) );
@@ -117,20 +117,20 @@ void KRegExpEditorGUIDialog::doSomething( TQString method, void* arguments )
void KRegExpEditorGUI::doSomething( TQString method, void* arguments )
{
- if ( method == TQString::tqfromLatin1( "setCaseSensitive" ) ) {
+ if ( method == TQString::fromLatin1( "setCaseSensitive" ) ) {
_editor->setCaseSensitive( (bool) arguments );
}
- else if ( method == TQString::tqfromLatin1("setMinimal") ) {
+ else if ( method == TQString::fromLatin1("setMinimal") ) {
_editor->setMinimal( (bool) arguments );
}
- else if ( method == TQString::tqfromLatin1("setSyntax") ) {
+ else if ( method == TQString::fromLatin1("setSyntax") ) {
_editor->setSyntax( *((TQString*) arguments) );
}
- else if ( method == TQString::tqfromLatin1("setAllowNonTQtSyntax") ) {
+ else if ( method == TQString::fromLatin1("setAllowNonTQtSyntax") ) {
_editor->setAllowNonTQtSyntax( (bool) arguments );
}
else {
- qFatal( "%s", tqtr("Method '%1' is not valid!").tqarg(method).latin1() );
+ qFatal( "%s", tqtr("Method '%1' is not valid!").arg(method).latin1() );
}
}