From aa3a1ca934bc541bddd3fa136a85f106f7da266e Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:25:18 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeadmin@1157635 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kpackage/search.cpp | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) (limited to 'kpackage/search.cpp') diff --git a/kpackage/search.cpp b/kpackage/search.cpp index e4254f4..2f774bf 100644 --- a/kpackage/search.cpp +++ b/kpackage/search.cpp @@ -30,52 +30,52 @@ #include "managementWidget.h" #include "search.h" #include -#include -#include -#include -#include +#include +#include +#include +#include -Search::Search(QWidget *parent, const char * name) +Search::Search(TQWidget *parent, const char * name) : KDialogBase(parent, name, false, i18n("Find Package"), User1 | Close, User1, true, KGuiItem( i18n("&Find"), "find")) { - QFrame *page = makeMainWidget(); + TQFrame *page = makeMainWidget(); - setFocusPolicy(QWidget::StrongFocus); + setFocusPolicy(TQWidget::StrongFocus); - QVBoxLayout* vtop = new QVBoxLayout( page, 10, 10, "vtop"); + TQVBoxLayout* vtop = new TQVBoxLayout( page, 10, 10, "vtop"); - QFrame *frame1 = new QGroupBox(i18n("Find Package"), page, "frame1"); + TQFrame *frame1 = new TQGroupBox(i18n("Find Package"), page, "frame1"); vtop->addWidget(frame1,1); - QVBoxLayout* vf = new QVBoxLayout( frame1, 20, 10, "vf"); + TQVBoxLayout* vf = new TQVBoxLayout( frame1, 20, 10, "vf"); - value = new QLineEdit( frame1, "v"); + value = new TQLineEdit( frame1, "v"); vf->addWidget(value,0); value->setFocus(); value->setFixedHeight(value->sizeHint().height()); value->setMinimumWidth(250); - connect(value, SIGNAL(textChanged(const QString &)),this, SLOT(textChanged(const QString &))); + connect(value, TQT_SIGNAL(textChanged(const TQString &)),this, TQT_SLOT(textChanged(const TQString &))); - QHBoxLayout* hc = new QHBoxLayout( ); + TQHBoxLayout* hc = new TQHBoxLayout( ); vf->addLayout(hc,0); - substr = new QCheckBox(i18n("Sub string"), frame1, "substr"); + substr = new TQCheckBox(i18n("Sub string"), frame1, "substr"); substr->setChecked(TRUE); hc->addWidget(substr,1,AlignLeft); substr->setFixedSize(substr->sizeHint()); hc->addStretch(1); - wrap = new QCheckBox(i18n("Wrap search"), frame1, "wrap"); + wrap = new TQCheckBox(i18n("Wrap search"), frame1, "wrap"); wrap->setChecked(TRUE); hc->addWidget(wrap,1,AlignRight); wrap->setFixedSize(wrap->sizeHint()); enableButton( User1, false ); - connect(this, SIGNAL(user1Clicked()), this, SLOT(ok_slot())); - connect(this, SIGNAL(closeClicked()), this, SLOT(done_slot())); + connect(this, TQT_SIGNAL(user1Clicked()), this, TQT_SLOT(ok_slot())); + connect(this, TQT_SIGNAL(closeClicked()), this, TQT_SLOT(done_slot())); show(); } @@ -84,16 +84,16 @@ Search::~Search() { } -void Search::textChanged(const QString &text) +void Search::textChanged(const TQString &text) { enableButton( User1, !text.isEmpty() ); } void Search::ok_slot() { - QListViewItem *pkg; + TQListViewItem *pkg; - QString to_find = value->text(); + TQString to_find = value->text(); to_find = to_find.stripWhiteSpace(); pkg = kpackage->management->search(to_find, -- cgit v1.2.1