From 5f5ee2367157176ed223b86343eb0a9e4022e020 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:52:55 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeutils@1157653 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kregexpeditor/regexpbuttons.cpp | 58 ++++++++++++++++++++--------------------- 1 file changed, 29 insertions(+), 29 deletions(-) (limited to 'kregexpeditor/regexpbuttons.cpp') diff --git a/kregexpeditor/regexpbuttons.cpp b/kregexpeditor/regexpbuttons.cpp index eae7da0..88e581e 100644 --- a/kregexpeditor/regexpbuttons.cpp +++ b/kregexpeditor/regexpbuttons.cpp @@ -27,44 +27,44 @@ #include "regexpbuttons.h" #include "dcbutton.h" -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include #include "regexpconverter.h" -RegExpButtons::RegExpButtons( QWidget *parent, const char *name ) - : QDockWindow( QDockWindow::InDock, parent, name), _keepMode(false) +RegExpButtons::RegExpButtons( TQWidget *parent, const char *name ) + : TQDockWindow( TQDockWindow::InDock, parent, name), _keepMode(false) { - QBoxLayout *layout = boxLayout(); + TQBoxLayout *layout = boxLayout(); - _grp = new QButtonGroup(this); + _grp = new TQButtonGroup(this); _grp->hide(); _grp->setExclusive( true ); - _mapper = new QSignalMapper( this, "RegExpButtons::_mapper" ); - connect( _mapper, SIGNAL( mapped(int) ), this, SIGNAL( clicked(int) ) ); + _mapper = new TQSignalMapper( this, "RegExpButtons::_mapper" ); + connect( _mapper, TQT_SIGNAL( mapped(int) ), this, TQT_SIGNAL( clicked(int) ) ); // The "select" button. - _selectBut = new QToolButton( this); + _selectBut = new TQToolButton( this); #ifdef QT_ONLY - QPixmap pix; + TQPixmap pix; pix.convertFromImage( qembed_findImage( "select" ) ); #else - QPixmap pix = KGlobal::iconLoader()->loadIcon(locate("data", QString::fromLatin1("kregexpeditor/pics/select.png") ), KIcon::Toolbar ); + TQPixmap pix = KGlobal::iconLoader()->loadIcon(locate("data", TQString::fromLatin1("kregexpeditor/pics/select.png") ), KIcon::Toolbar ); #endif _selectBut->setPixmap( pix ); layout->addWidget( _selectBut ); _grp->insert(_selectBut); _selectBut->setToggleButton( true ); - connect( _selectBut, SIGNAL(clicked()), SIGNAL(doSelect())); - connect( _selectBut, SIGNAL(clicked()), this, SLOT(slotSetNonKeepMode()) ); + connect( _selectBut, TQT_SIGNAL(clicked()), TQT_SIGNAL(doSelect())); + connect( _selectBut, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotSetNonKeepMode()) ); - QToolTip::add( _selectBut, i18n("Selection tool")); - QWhatsThis::add( _selectBut, i18n("This will change the state of the editor to selection state.

" + TQToolTip::add( _selectBut, i18n("Selection tool")); + TQWhatsThis::add( _selectBut, i18n("This will change the state of the editor to selection state.

" "In this state you will not be inserting regexp items, but instead select them. " "To select a number of items, press down the left mouse button and drag it over the items.

" "When you have selected a number of items, you may use cut/copy/paste. These functions are " @@ -152,28 +152,28 @@ RegExpButtons::RegExpButtons( QWidget *parent, const char *name ) layout->addWidget( _negLookAhead ); } -DoubleClickButton* RegExpButtons::insert(RegExpType tp, const char* name, QString tooltip, QString whatsthis) +DoubleClickButton* RegExpButtons::insert(RegExpType tp, const char* name, TQString tooltip, TQString whatsthis) { #ifdef QT_ONLY - QPixmap pix; - pix.convertFromImage( qembed_findImage( QString::fromLatin1( name ) ) ); + TQPixmap pix; + pix.convertFromImage( qembed_findImage( TQString::fromLatin1( name ) ) ); #else - QPixmap pix = KGlobal::iconLoader()->loadIcon(locate("data", QString::fromLatin1("kregexpeditor/pics/")+QString::fromLatin1(name) + - QString::fromLatin1(".png") ), KIcon::Toolbar ); + TQPixmap pix = KGlobal::iconLoader()->loadIcon(locate("data", TQString::fromLatin1("kregexpeditor/pics/")+TQString::fromLatin1(name) + + TQString::fromLatin1(".png") ), KIcon::Toolbar ); #endif DoubleClickButton* but = new DoubleClickButton( pix, this, "RegExpButtons::but"); _mapper->setMapping( but, tp ); - connect( but, SIGNAL( clicked() ), _mapper, SLOT( map() ) ); - connect( but, SIGNAL( clicked() ), this, SLOT( slotSetNonKeepMode() ) ); - connect( but, SIGNAL( doubleClicked() ), this, SLOT( slotSetKeepMode() ) ); + connect( but, TQT_SIGNAL( clicked() ), _mapper, TQT_SLOT( map() ) ); + connect( but, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotSetNonKeepMode() ) ); + connect( but, TQT_SIGNAL( doubleClicked() ), this, TQT_SLOT( slotSetKeepMode() ) ); _grp->insert( but ); but->setToggleButton( true ); - QToolTip::add( but, tooltip ); - QWhatsThis::add( but, whatsthis ); + TQToolTip::add( but, tooltip ); + TQWhatsThis::add( but, whatsthis ); return but; } @@ -181,7 +181,7 @@ DoubleClickButton* RegExpButtons::insert(RegExpType tp, const char* name, QStrin void RegExpButtons::slotUnSelect() { if ( _grp->selected() ) { - QToolButton *pb = static_cast(_grp->selected()); + TQToolButton *pb = static_cast(_grp->selected()); if (pb) { pb->setOn( false ); } -- cgit v1.2.3