From c663b6440964f6ac48027143ac9e63298991f9d0 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:33:34 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1157639 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kfind/kfind.cpp | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) (limited to 'kfind/kfind.cpp') diff --git a/kfind/kfind.cpp b/kfind/kfind.cpp index 93c646a91..8908b26c8 100644 --- a/kfind/kfind.cpp +++ b/kfind/kfind.cpp @@ -26,15 +26,15 @@ **********************************************************************/ #include -#include -#include +#include +#include #include #include #include #include -#include -#include +#include +#include #include #include "kftabdlg.h" @@ -42,11 +42,11 @@ #include "kfind.moc" -Kfind::Kfind(QWidget *parent, const char *name) - : QWidget( parent, name ) +Kfind::Kfind(TQWidget *parent, const char *name) + : TQWidget( parent, name ) { kdDebug() << "Kfind::Kfind " << this << endl; - QBoxLayout * mTopLayout = new QBoxLayout( this, QBoxLayout::LeftToRight, + TQBoxLayout * mTopLayout = new TQBoxLayout( this, TQBoxLayout::LeftToRight, KDialog::marginHint(), KDialog::spacingHint() ); // create tabwidget @@ -58,30 +58,30 @@ Kfind::Kfind(QWidget *parent, const char *name) * pixel for me which is visually distracting (GS). // create separator KSeparator * mActionSep = new KSeparator( this ); - mActionSep->setFocusPolicy( QWidget::ClickFocus ); - mActionSep->setOrientation( QFrame::VLine ); + mActionSep->setFocusPolicy( TQWidget::ClickFocus ); + mActionSep->setOrientation( TQFrame::VLine ); mTopLayout->addWidget(mActionSep); */ // create button box - QVBox * mButtonBox = new QVBox( this ); - QVBoxLayout *lay = (QVBoxLayout*)mButtonBox->layout(); + TQVBox * mButtonBox = new TQVBox( this ); + TQVBoxLayout *lay = (TQVBoxLayout*)mButtonBox->layout(); lay->addStretch(1); mTopLayout->addWidget(mButtonBox); mSearch = new KPushButton( KGuiItem(i18n("&Find"), "find"), mButtonBox ); mButtonBox->setSpacing( (tabWidget->sizeHint().height()-4*mSearch->sizeHint().height()) / 4); - connect( mSearch, SIGNAL(clicked()), this, SLOT( startSearch() ) ); + connect( mSearch, TQT_SIGNAL(clicked()), this, TQT_SLOT( startSearch() ) ); mStop = new KPushButton( KGuiItem(i18n("Stop"), "stop"), mButtonBox ); - connect( mStop, SIGNAL(clicked()), this, SLOT( stopSearch() ) ); + connect( mStop, TQT_SIGNAL(clicked()), this, TQT_SLOT( stopSearch() ) ); mSave = new KPushButton( KStdGuiItem::saveAs(), mButtonBox ); - connect( mSave, SIGNAL(clicked()), this, SLOT( saveResults() ) ); + connect( mSave, TQT_SIGNAL(clicked()), this, TQT_SLOT( saveResults() ) ); KPushButton * mClose = new KPushButton( KStdGuiItem::close(), mButtonBox ); - connect( mClose, SIGNAL(clicked()), this, SIGNAL( destroyMe() ) ); + connect( mClose, TQT_SIGNAL(clicked()), this, TQT_SIGNAL( destroyMe() ) ); // react to search requests from widget - connect( tabWidget, SIGNAL(startSearch()), this, SLOT( startSearch() ) ); + connect( tabWidget, TQT_SIGNAL(startSearch()), this, TQT_SLOT( startSearch() ) ); mSearch->setEnabled(true); // Enable "Search" mStop->setEnabled(false); // Disable "Stop" @@ -164,7 +164,7 @@ void Kfind::setFocus() tabWidget->setFocus(); } -void Kfind::saveState( QDataStream *stream ) +void Kfind::saveState( TQDataStream *stream ) { query->kill(); *stream << tabWidget->nameBox->currentText(); @@ -174,9 +174,9 @@ void Kfind::saveState( QDataStream *stream ) *stream << (int)( tabWidget->subdirsCb->isChecked() ? 0 : 1 ); } -void Kfind::restoreState( QDataStream *stream ) +void Kfind::restoreState( TQDataStream *stream ) { - QString namesearched, dirsearched,containing; + TQString namesearched, dirsearched,containing; int typeIdx; int subdirs; *stream >> namesearched; -- cgit v1.2.1