diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-04-27 00:40:29 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-04-27 00:40:29 +0000 |
commit | 7a741e43ff09e70396a918956219b8316c48e522 (patch) | |
tree | 3d0f60eccd59786cea7236db2d5c4c1f25874515 /src/filterbar.cpp | |
parent | a48487ef0c329434b58b6f920111bb0999f1109e (diff) | |
download | dolphin-7a741e43ff09e70396a918956219b8316c48e522.tar.gz dolphin-7a741e43ff09e70396a918956219b8316c48e522.zip |
TQt4 port Dolphin
This enables compilation under Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/dolphin@1229359 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/filterbar.cpp')
-rw-r--r-- | src/filterbar.cpp | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/src/filterbar.cpp b/src/filterbar.cpp index 83cc784..e008aa0 100644 --- a/src/filterbar.cpp +++ b/src/filterbar.cpp @@ -19,8 +19,8 @@ ***************************************************************************/ #include "filterbar.h" -#include <qlabel.h> -#include <qlayout.h> +#include <tqlabel.h> +#include <tqlayout.h> #include <kdialog.h> #include <klocale.h> @@ -30,35 +30,35 @@ #include "dolphin.h" -FilterBar::FilterBar(QWidget *parent, const char *name) : - QWidget(parent, name) +FilterBar::FilterBar(TQWidget *tqparent, const char *name) : + TQWidget(tqparent, name) { const int gap = 3; - QVBoxLayout* foo = new QVBoxLayout(this); + TQVBoxLayout* foo = new TQVBoxLayout(this); foo->addSpacing(gap); - QHBoxLayout* layout = new QHBoxLayout(foo); - layout->addSpacing(gap); + TQHBoxLayout* tqlayout = new TQHBoxLayout(foo); + tqlayout->addSpacing(gap); - m_filter = new QLabel(i18n("Filter:"), this); - layout->addWidget(m_filter); - layout->addSpacing(KDialog::spacingHint()); + m_filter = new TQLabel(i18n("Filter:"), this); + tqlayout->addWidget(m_filter); + tqlayout->addSpacing(KDialog::spacingHint()); m_filterInput = new KLineEdit(this); - layout->addWidget(m_filterInput); + tqlayout->addWidget(m_filterInput); m_close = new KPushButton(this); m_close->setIconSet(SmallIcon("fileclose")); m_close->setFlat(true); - layout->addWidget(m_close); - layout->addSpacing(gap); + tqlayout->addWidget(m_close); + tqlayout->addSpacing(gap); - connect(m_filterInput, SIGNAL(textChanged(const QString&)), - this, SIGNAL(signalFilterChanged(const QString&))); - connect(m_close, SIGNAL(clicked()), this, SLOT(hide())); - connect(m_close, SIGNAL(clicked()), - &Dolphin::mainWin(), SLOT(slotShowFilterBarChanged())); + connect(m_filterInput, TQT_SIGNAL(textChanged(const TQString&)), + this, TQT_SIGNAL(signalFilterChanged(const TQString&))); + connect(m_close, TQT_SIGNAL(clicked()), this, TQT_SLOT(hide())); + connect(m_close, TQT_SIGNAL(clicked()), + &Dolphin::mainWin(), TQT_SLOT(slotShowFilterBarChanged())); } FilterBar::~FilterBar() @@ -69,19 +69,19 @@ void FilterBar::hide() { m_filterInput->clear(); m_filterInput->clearFocus(); - QWidget::hide(); + TQWidget::hide(); } void FilterBar::show() { m_filterInput->setFocus(); - QWidget::show(); + TQWidget::show(); } -void FilterBar::keyReleaseEvent(QKeyEvent* event) +void FilterBar::keyReleaseEvent(TQKeyEvent* event) { - QWidget::keyReleaseEvent(event); - if ((event->key() == Qt::Key_Escape)) { + TQWidget::keyReleaseEvent(event); + if ((event->key() == TQt::Key_Escape)) { hide(); Dolphin::mainWin().slotShowFilterBarChanged(); } |