From a2277b6bc715464e83882b90c2a058139b8a6b54 Mon Sep 17 00:00:00 2001
From: tpearson
Date: Thu, 23 Jun 2011 01:42:07 +0000
Subject: TQt4 port kdeutils This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeutils@1238125 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
---
kregexpeditor/regexpbuttons.cpp | 50 ++++++++++++++++++++---------------------
1 file changed, 25 insertions(+), 25 deletions(-)
(limited to 'kregexpeditor/regexpbuttons.cpp')
diff --git a/kregexpeditor/regexpbuttons.cpp b/kregexpeditor/regexpbuttons.cpp
index 88e581e..f854f21 100644
--- a/kregexpeditor/regexpbuttons.cpp
+++ b/kregexpeditor/regexpbuttons.cpp
@@ -15,7 +15,7 @@
* the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA.
**/
-#ifdef QT_ONLY
+#ifdef TQT_ONLY
#include "compat.h"
#include "images.h"
#else
@@ -34,30 +34,30 @@
#include
#include "regexpconverter.h"
-RegExpButtons::RegExpButtons( TQWidget *parent, const char *name )
- : TQDockWindow( TQDockWindow::InDock, parent, name), _keepMode(false)
+RegExpButtons::RegExpButtons( TQWidget *tqparent, const char *name )
+ : TQDockWindow( TQDockWindow::InDock, tqparent, name), _keepMode(false)
{
- TQBoxLayout *layout = boxLayout();
+ TQBoxLayout *tqlayout = boxLayout();
_grp = new TQButtonGroup(this);
_grp->hide();
_grp->setExclusive( true );
- _mapper = new TQSignalMapper( this, "RegExpButtons::_mapper" );
+ _mapper = new TQSignalMapper( TQT_TQOBJECT(this), "RegExpButtons::_mapper" );
connect( _mapper, TQT_SIGNAL( mapped(int) ), this, TQT_SIGNAL( clicked(int) ) );
// The "select" button.
_selectBut = new TQToolButton( this);
-#ifdef QT_ONLY
+#ifdef TQT_ONLY
TQPixmap pix;
pix.convertFromImage( qembed_findImage( "select" ) );
#else
- TQPixmap pix = KGlobal::iconLoader()->loadIcon(locate("data", TQString::fromLatin1("kregexpeditor/pics/select.png") ), KIcon::Toolbar );
+ TQPixmap pix = KGlobal::iconLoader()->loadIcon(locate("data", TQString::tqfromLatin1("kregexpeditor/pics/select.png") ), KIcon::Toolbar );
#endif
_selectBut->setPixmap( pix );
- layout->addWidget( _selectBut );
+ tqlayout->addWidget( _selectBut );
_grp->insert(_selectBut);
_selectBut->setToggleButton( true );
connect( _selectBut, TQT_SIGNAL(clicked()), TQT_SIGNAL(doSelect()));
@@ -76,19 +76,19 @@ RegExpButtons::RegExpButtons( TQWidget *parent, const char *name )
but = insert(TEXT, "text", i18n("Text"),
i18n( "This will insert a text field, where you may write text. The text you write will "
"be matched literally. (i.e. you do not need to escape any characters)" ) );
- layout->addWidget( but );
+ tqlayout->addWidget( but );
but = insert(CHARSET, "characters", i18n("A single character specified in a range"),
i18n("This will match a single character from a predefined range."
"When you insert this widget a dialog box will appear, which lets you specify "
"which characters this regexp item will match.
") );
- layout->addWidget( but );
+ tqlayout->addWidget( but );
but = insert(DOT, "anychar", i18n("Any character"),
i18n("This will match any single character") );
- layout->addWidget( but );
+ tqlayout->addWidget( but );
but = insert(REPEAT, "repeat", i18n("Repeated content"),
@@ -102,14 +102,14 @@ RegExpButtons::RegExpButtons( TQWidget *parent, const char *name )
"is abc, then this regexp item will match the empty string, "
"the string abc, the string abcabc, the string abcabcabcabc, "
"etc.") );
- layout->addWidget( but );
+ tqlayout->addWidget( but );
but = insert(ALTN, "altn", i18n("Alternatives"),
i18n("This regexp item will match any of its alternatives.
"
"You specify alternatives by placing regexp items on top of "
"each other inside this widget.") );
- layout->addWidget( but );
+ tqlayout->addWidget( but );
but = insert(COMPOUND, "compound", i18n("Compound regexp"),
@@ -118,53 +118,53 @@ RegExpButtons::RegExpButtons( TQWidget *parent, const char *name )
"a small box. This makes it easier for you to get an overview of large "
"regexp items. This is especially useful if you load a predefined regexp item "
"you perhaps don't care about the inner workings of.") );
- layout->addWidget( but );
+ tqlayout->addWidget( but );
but = insert(BEGLINE, "begline", i18n("Beginning of line"),
i18n("This will match the beginning of a line.") );
- layout->addWidget( but );
+ tqlayout->addWidget( but );
but = insert(ENDLINE, "endline", i18n("End of line"),
i18n("This will match the end of a line.") );
- layout->addWidget( but );
+ tqlayout->addWidget( but );
_wordBoundary = insert(WORDBOUNDARY, "wordboundary", i18n("Word boundary"),
i18n("This asserts a word boundary (This part does not actually match any characters)") );
- layout->addWidget( _wordBoundary );
+ tqlayout->addWidget( _wordBoundary );
_nonWordBoundary = insert(NONWORDBOUNDARY, "nonwordboundary", i18n("Non Word boundary"),
i18n("This asserts a non-word boundary "
"(This part does not actually match any characters)") );
- layout->addWidget( _nonWordBoundary );
+ tqlayout->addWidget( _nonWordBoundary );
_posLookAhead = insert(POSLOOKAHEAD, "poslookahead", i18n("Positive Look Ahead"),
i18n("This asserts a regular expression (This part does not actually match any characters). "
"You can only use this at the end of a regular expression.") );
- layout->addWidget( _posLookAhead );
+ tqlayout->addWidget( _posLookAhead );
_negLookAhead = insert(NEGLOOKAHEAD, "neglookahead", i18n("Negative Look Ahead"),
i18n("This asserts a regular expression that must not match "
"(This part does not actually match any characters). "
"You can only use this at the end of a regular expression.") );
- layout->addWidget( _negLookAhead );
+ tqlayout->addWidget( _negLookAhead );
}
DoubleClickButton* RegExpButtons::insert(RegExpType tp, const char* name, TQString tooltip, TQString whatsthis)
{
-#ifdef QT_ONLY
+#ifdef TQT_ONLY
TQPixmap pix;
- pix.convertFromImage( qembed_findImage( TQString::fromLatin1( name ) ) );
+ pix.convertFromImage( qembed_findImage( TQString::tqfromLatin1( name ) ) );
#else
- TQPixmap pix = KGlobal::iconLoader()->loadIcon(locate("data", TQString::fromLatin1("kregexpeditor/pics/")+TQString::fromLatin1(name) +
- TQString::fromLatin1(".png") ), KIcon::Toolbar );
+ TQPixmap pix = KGlobal::iconLoader()->loadIcon(locate("data", TQString::tqfromLatin1("kregexpeditor/pics/")+TQString::tqfromLatin1(name) +
+ TQString::tqfromLatin1(".png") ), KIcon::Toolbar );
#endif
DoubleClickButton* but = new DoubleClickButton( pix, this, "RegExpButtons::but");
- _mapper->setMapping( but, tp );
+ _mapper->setMapping( TQT_TQOBJECT(but), tp );
connect( but, TQT_SIGNAL( clicked() ), _mapper, TQT_SLOT( map() ) );
connect( but, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotSetNonKeepMode() ) );
--
cgit v1.2.1