summaryrefslogtreecommitdiffstats
path: root/kpackage/search.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:25:18 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:25:18 +0000
commitaa3a1ca934bc541bddd3fa136a85f106f7da266e (patch)
tree9ad0b795aed8fa4ac30c2fe0fd1aacb8175714c0 /kpackage/search.cpp
parentb10cf7066791a2f362495890cd50c984e8025412 (diff)
downloadtdeadmin-aa3a1ca934bc541bddd3fa136a85f106f7da266e.tar.gz
tdeadmin-aa3a1ca934bc541bddd3fa136a85f106f7da266e.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeadmin@1157635 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kpackage/search.cpp')
-rw-r--r--kpackage/search.cpp40
1 files changed, 20 insertions, 20 deletions
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 <klocale.h>
-#include <qlineedit.h>
-#include <qcheckbox.h>
-#include <qframe.h>
-#include <qgroupbox.h>
+#include <tqlineedit.h>
+#include <tqcheckbox.h>
+#include <tqframe.h>
+#include <tqgroupbox.h>
-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,