diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-19 19:03:33 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-19 19:03:33 +0000 |
commit | e69e8b1d09fb579316595b4e6a850e717358a8b1 (patch) | |
tree | a24fc20865f65772f530d16177520190594ffdd2 /kviewshell/searchWidget.cpp | |
parent | eecec9afb81fdebb0f22e9da22635874c403f854 (diff) | |
download | tdegraphics-e69e8b1d09fb579316595b4e6a850e717358a8b1.tar.gz tdegraphics-e69e8b1d09fb579316595b4e6a850e717358a8b1.zip |
TQt4 port kdegraphics
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1237557 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kviewshell/searchWidget.cpp')
-rw-r--r-- | kviewshell/searchWidget.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/kviewshell/searchWidget.cpp b/kviewshell/searchWidget.cpp index 27ca42f8..95d06295 100644 --- a/kviewshell/searchWidget.cpp +++ b/kviewshell/searchWidget.cpp @@ -36,41 +36,41 @@ #include "searchWidget.h" -SearchWidget::SearchWidget(TQWidget* parent, const char* name, WFlags fl) - : TQWidget(parent, name, fl) +SearchWidget::SearchWidget(TQWidget* tqparent, const char* name, WFlags fl) + : TQWidget(tqparent, name, fl) { setName("SearchWidget"); - setSizePolicy(TQSizePolicy::MinimumExpanding, TQSizePolicy::Fixed); + tqsetSizePolicy(TQSizePolicy::MinimumExpanding, TQSizePolicy::Fixed); - layout = new TQHBoxLayout(this, 4, 6, "SearchWidgetLayout"); + tqlayout = new TQHBoxLayout(this, 4, 6, "SearchWidgetLayout"); stopButton = new TQPushButton(this, "stopButton"); stopButton->setPixmap(KGlobal::iconLoader()->loadIcon("stop", KIcon::Small, KIcon::SizeSmall)); - layout->addWidget(stopButton); + tqlayout->addWidget(stopButton); searchLabel = new TQLabel(this, "searchLabel"); searchLabel->setText(i18n("Search:")); - layout->addWidget(searchLabel); + tqlayout->addWidget(searchLabel); searchText = new KLineEdit(this, "searchText"); - layout->addWidget(searchText); + tqlayout->addWidget(searchText); searchLabel->setBuddy(searchText); findPrevButton = new TQPushButton(this, "findPrevButton"); findPrevButton->setPixmap(KGlobal::iconLoader()->loadIcon("back", KIcon::NoGroup, KIcon::SizeSmall)); TQToolTip::add(findPrevButton, i18n("Find previous")); - layout->addWidget(findPrevButton); + tqlayout->addWidget(findPrevButton); findNextButton = new TQPushButton(this, "findNextButton"); findNextButton->setPixmap(KGlobal::iconLoader()->loadIcon("forward", KIcon::NoGroup, KIcon::SizeSmall)); TQToolTip::add(findNextButton, i18n("Find next")); - layout->addWidget(findNextButton); + tqlayout->addWidget(findNextButton); caseSensitiveCheckBox = new TQCheckBox(this, "caseSensitiveCheckBox"); caseSensitiveCheckBox->setText(i18n("Case sensitive")); - layout->addWidget(caseSensitiveCheckBox); + tqlayout->addWidget(caseSensitiveCheckBox); connect(stopButton, TQT_SIGNAL(clicked()), this, TQT_SIGNAL(stopSearch())); @@ -126,12 +126,12 @@ void SearchWidget::setFocus() void SearchWidget::keyPressEvent(TQKeyEvent* e) { - if (e->key() == Qt::Key_Escape) + if (e->key() == TQt::Key_Escape) emit stopSearch(); - if (e->key() == Qt::Key_Return || e->key() == Qt::Key_Enter) + if (e->key() == TQt::Key_Return || e->key() == TQt::Key_Enter) { - if (e->state() == Qt::ShiftButton) + if (e->state() == TQt::ShiftButton) emit findPrevText(); else emit findNextText(); |