summaryrefslogtreecommitdiffstats
path: root/parts/quickopen/quickopendialog.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:56:07 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:56:07 +0000
commitd6f8bbb45b267065a6907e71ff9c98bb6d161241 (patch)
treed109539636691d7b03036ca1c0ed29dbae6577cf /parts/quickopen/quickopendialog.cpp
parent3331a47a9cad24795c7440ee8107143ce444ef34 (diff)
downloadtdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.tar.gz
tdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1157658 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'parts/quickopen/quickopendialog.cpp')
-rw-r--r--parts/quickopen/quickopendialog.cpp42
1 files changed, 21 insertions, 21 deletions
diff --git a/parts/quickopen/quickopendialog.cpp b/parts/quickopen/quickopendialog.cpp
index b18ab980..e0d40295 100644
--- a/parts/quickopen/quickopendialog.cpp
+++ b/parts/quickopen/quickopendialog.cpp
@@ -18,8 +18,8 @@
*
*/
-#include <qapplication.h>
-#include <qregexp.h>
+#include <tqapplication.h>
+#include <tqregexp.h>
#include <klistbox.h>
#include <klineedit.h>
@@ -28,18 +28,18 @@
#include "quickopendialog.h"
#include "quickopen_part.h"
-QuickOpenDialog::QuickOpenDialog(QuickOpenPart* part, QWidget* parent, const char* name, bool modal, WFlags fl)
+QuickOpenDialog::QuickOpenDialog(QuickOpenPart* part, TQWidget* parent, const char* name, bool modal, WFlags fl)
: QuickOpenDialogBase( parent, name, modal, fl ), m_part( part )
{
nameEdit->installEventFilter(this);
- connect( &m_typeTimeout, SIGNAL(timeout()), this, SLOT(slotTextChangedDelayed()) );
+ connect( &m_typeTimeout, TQT_SIGNAL(timeout()), this, TQT_SLOT(slotTextChangedDelayed()) );
}
QuickOpenDialog::~QuickOpenDialog()
{
}
-void QuickOpenDialog::slotTextChanged(const QString &)
+void QuickOpenDialog::slotTextChanged(const TQString &)
{
m_typeTimeout.start( 100, true );
}
@@ -58,8 +58,8 @@ void QuickOpenDialog::setFirstItemSelected()
itemList->setCurrentItem(0);
// We are doing this indirectly because the event handler does things for multiple
// selections we cannot do through the public interface.
- QKeyEvent e(QEvent::KeyPress, Qt::Key_Home, 0, 0);
- QApplication::sendEvent(itemList, &e);
+ TQKeyEvent e(TQEvent::KeyPress, Qt::Key_Home, 0, 0);
+ TQApplication::sendEvent(itemList, &e);
}
void QuickOpenDialog::slotTextChangedDelayed()
@@ -69,38 +69,38 @@ void QuickOpenDialog::slotTextChangedDelayed()
setFirstItemSelected();
}
-bool QuickOpenDialog::eventFilter( QObject * watched, QEvent * e )
+bool QuickOpenDialog::eventFilter( TQObject * watched, TQEvent * e )
{
if (!watched || !e)
return true;
- if ((watched == nameEdit) && (e->type() == QEvent::KeyPress))
+ if ((watched == nameEdit) && (e->type() == TQEvent::KeyPress))
{
- QKeyEvent *ke = (QKeyEvent*)e;
+ TQKeyEvent *ke = (TQKeyEvent*)e;
if (ke->key() == Key_Up)
{
- QApplication::sendEvent(itemList, e);
+ TQApplication::sendEvent(itemList, e);
nameEdit->blockSignals(true);
itemSelectionChanged();
nameEdit->blockSignals(false);
return true;
} else if (ke->key() == Key_Down)
{
- QApplication::sendEvent(itemList, e);
+ TQApplication::sendEvent(itemList, e);
nameEdit->blockSignals(true);
itemSelectionChanged();
nameEdit->blockSignals(false);
return true;
} else if ((ke->key() == Key_Next) || (ke->key() == Key_Prior))
{
- QApplication::sendEvent(itemList, e);
+ TQApplication::sendEvent(itemList, e);
nameEdit->blockSignals(true);
itemSelectionChanged();
nameEdit->blockSignals(false);
}
}
- return QWidget::eventFilter(watched, e);
+ return TQWidget::eventFilter(watched, e);
}
void QuickOpenDialog::selectClassViewItem(ItemDom item)
@@ -108,13 +108,13 @@ void QuickOpenDialog::selectClassViewItem(ItemDom item)
m_part->selectItem( item );
}
-QStringList QuickOpenDialog::wildCardCompletion(const QString & text)
+TQStringList QuickOpenDialog::wildCardCompletion(const TQString & text)
{
if ( text.isEmpty() ) return m_items;
- QRegExp re( text, false, true );
- QStringList matches;
- QStringList::const_iterator it = m_items.begin();
+ TQRegExp re( text, false, true );
+ TQStringList matches;
+ TQStringList::const_iterator it = m_items.begin();
while( it != m_items.end() )
{
if ( (*it).find( re ) != -1 )
@@ -127,14 +127,14 @@ QStringList QuickOpenDialog::wildCardCompletion(const QString & text)
return matches;
}
-void QuickOpenDialog::QStringList_unique( QStringList & list )
+void QuickOpenDialog::QStringList_unique( TQStringList & list )
{
if ( list.size() < 2 ) return;
list.sort();
- QStringList::iterator it = list.begin();
- QStringList::iterator it2 = it;
+ TQStringList::iterator it = list.begin();
+ TQStringList::iterator it2 = it;
while ( it2 != list.end() )
{
++it2;