From b1057f437bf65300831a0ccb45b920787c6b318d Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 11 Jun 2011 06:00:15 +0000 Subject: TQt4 port kdemultimedia This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdemultimedia@1236079 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- juk/searchwidget.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'juk/searchwidget.cpp') diff --git a/juk/searchwidget.cpp b/juk/searchwidget.cpp index a9b8d868..a0a110fa 100644 --- a/juk/searchwidget.cpp +++ b/juk/searchwidget.cpp @@ -1,6 +1,6 @@ /*************************************************************************** begin : Sun Mar 6 2003 - copyright : (C) 2003 by Richard Lärkäng + copyright : (C) 2003 by Richard L�rk�ng email : nouseforaname@home.se copyright : (C) 2003 - 2004 by Scott Wheeler @@ -39,8 +39,8 @@ using namespace ActionCollection; // SearchLine public methods //////////////////////////////////////////////////////////////////////////////// -SearchLine::SearchLine(TQWidget *parent, bool simple, const char *name) : - TQHBox(parent, name), +SearchLine::SearchLine(TQWidget *tqparent, bool simple, const char *name) : + TQHBox(tqparent, name), m_simple(simple), m_searchFieldsBox(0) { @@ -136,11 +136,11 @@ void SearchLine::setFocus() bool SearchLine::eventFilter(TQObject *watched, TQEvent *e) { - if(watched != m_lineEdit || e->type() != TQEvent::KeyPress) + if(TQT_BASE_OBJECT(watched) != TQT_BASE_OBJECT(m_lineEdit) || e->type() != TQEvent::KeyPress) return TQHBox::eventFilter(watched, e); - TQKeyEvent *key = static_cast(e); - if(key->key() == Qt::Key_Down) + TQKeyEvent *key = TQT_TQKEYEVENT(e); + if(key->key() == TQt::Key_Down) emit signalDownPressed(); return TQHBox::eventFilter(watched, e); @@ -163,7 +163,7 @@ void SearchLine::updateColumns() TQStringList columnHeaders; - columnHeaders.append(TQString("<%1>").arg(i18n("All Visible"))); + columnHeaders.append(TQString("<%1>").tqarg(i18n("All Visible"))); Playlist *playlist = CollectionList::instance(); @@ -188,7 +188,7 @@ void SearchLine::updateColumns() // SearchWidget public methods //////////////////////////////////////////////////////////////////////////////// -SearchWidget::SearchWidget(TQWidget *parent, const char *name) : KToolBar(parent, name) +SearchWidget::SearchWidget(TQWidget *tqparent, const char *name) : KToolBar(tqparent, name) { setupLayout(); updateColumns(); -- cgit v1.2.1