summaryrefslogtreecommitdiffstats
path: root/parts/quickopen/quickopenfunctiondialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'parts/quickopen/quickopenfunctiondialog.cpp')
-rw-r--r--parts/quickopen/quickopenfunctiondialog.cpp50
1 files changed, 25 insertions, 25 deletions
diff --git a/parts/quickopen/quickopenfunctiondialog.cpp b/parts/quickopen/quickopenfunctiondialog.cpp
index d8691d92..8b877b8b 100644
--- a/parts/quickopen/quickopenfunctiondialog.cpp
+++ b/parts/quickopen/quickopenfunctiondialog.cpp
@@ -19,8 +19,8 @@
*/
#include <klocale.h>
-#include <qlabel.h>
-#include <qvaluelist.h>
+#include <tqlabel.h>
+#include <tqvaluelist.h>
#include <kcompletion.h>
#include <kdebug.h>
@@ -33,13 +33,13 @@
#include <kdevpartcontroller.h>
#include <kdevproject.h>
#include <kdevlanguagesupport.h>
-#include <qregexp.h>
+#include <tqregexp.h>
#include "quickopenfunctionchooseform.h"
#include "quickopenfunctiondialog.h"
-QuickOpenFunctionDialog::QuickOpenFunctionDialog( QuickOpenPart *part, QWidget* parent, const char* name, bool modal, WFlags fl)
+QuickOpenFunctionDialog::QuickOpenFunctionDialog( QuickOpenPart *part, TQWidget* parent, const char* name, bool modal, WFlags fl)
: QuickOpenDialog(part, parent, name, modal, fl)
{
nameLabel->setText( i18n("Function &name:") );
@@ -81,7 +81,7 @@ QuickOpenFunctionDialog::~QuickOpenFunctionDialog()
{
}
-void QuickOpenFunctionDialog::gotoFile( QString name )
+void QuickOpenFunctionDialog::gotoFile( TQString name )
{
FunctionModel *fmodel;
FunctionList funcList;
@@ -97,14 +97,14 @@ void QuickOpenFunctionDialog::gotoFile( QString name )
if( funcList.count() == 1 ){
fdom = funcList.first();
fmodel = fdom.data();
- QString fileNameStr = fmodel->fileName();
+ TQString fileNameStr = fmodel->fileName();
int startline, startcol;
fmodel->getStartPosition( &startline, &startcol );
m_part->partController()->editDocument( KURL( fileNameStr), startline, startcol );
selectClassViewItem( ItemDom(&(*fmodel)) );
}else if( funcList.count() > 1 ){
- QString fileStr;
+ TQString fileStr;
QuickOpenFunctionChooseForm fdlg( this, name.ascii() );
@@ -127,7 +127,7 @@ void QuickOpenFunctionDialog::gotoFile( QString name )
int line, col;
model->getStartPosition( &line, &col );
selectClassViewItem( ItemDom(&(*model)) );
- QString fileNameStr = model->fileName();
+ TQString fileNameStr = model->fileName();
m_part->partController()->editDocument( KURL(fileNameStr), line );
}
}
@@ -139,21 +139,21 @@ void QuickOpenFunctionDialog::gotoFile( QString name )
accept();
}
-void QuickOpenFunctionDialog::slotExecuted(QListBoxItem* item)
+void QuickOpenFunctionDialog::slotExecuted(TQListBoxItem* item)
{
if( item ){
gotoFile( item->text() );
}
}
-void QuickOpenFunctionDialog::executed(QListBoxItem*)
+void QuickOpenFunctionDialog::executed(TQListBoxItem*)
{
}
void QuickOpenFunctionDialog::itemSelectionChanged() {
- QString text = nameEdit->text();
- QString txt = text;
- QStringList parts = QStringList::split("::", text);
+ TQString text = nameEdit->text();
+ TQString txt = text;
+ TQStringList parts = TQStringList::split("::", text);
if( !text.endsWith( "::" ) && !parts.isEmpty() )
parts.pop_back();
parts << itemList->currentText();
@@ -161,21 +161,21 @@ void QuickOpenFunctionDialog::itemSelectionChanged() {
}
void QuickOpenFunctionDialog::slotTextChangedDelayed() {
- QString text = nameEdit->text();
- QString txt = text;
- QStringList parts = QStringList::split("::", text);
+ TQString text = nameEdit->text();
+ TQString txt = text;
+ TQStringList parts = TQStringList::split("::", text);
if(text.endsWith("::") || parts.isEmpty()) {
txt = "";
}else{
txt = parts.back();
parts.pop_back();
}
- QValueList<QRegExp> regExpParts;
- for( QStringList::const_iterator it = parts.begin(); it != parts.end(); ++it ) {
- regExpParts << QRegExp( *it, false, true );
+ TQValueList<TQRegExp> regExpParts;
+ for( TQStringList::const_iterator it = parts.begin(); it != parts.end(); ++it ) {
+ regExpParts << TQRegExp( *it, false, true );
}
- QString scope = parts.join("::");
+ TQString scope = parts.join("::");
if( m_scope != scope ) {
if( !scope.startsWith(m_scope) ) { ///Not a specialization, so reload all function-definitions
@@ -184,12 +184,12 @@ void QuickOpenFunctionDialog::slotTextChangedDelayed() {
if(!parts.isEmpty()) {
FunctionList accepted;
- QStringList acceptedItems;
+ TQStringList acceptedItems;
FunctionList::iterator it = m_functionDefList.begin();
while(it != m_functionDefList.end()) {
- QStringList scope = (*it)->scope();
- QValueList<QRegExp>::iterator mit = regExpParts.begin();
- QStringList::iterator sit = scope.begin();
+ TQStringList scope = (*it)->scope();
+ TQValueList<TQRegExp>::iterator mit = regExpParts.begin();
+ TQStringList::iterator sit = scope.begin();
bool fail = false;
while(mit != regExpParts.end()) {
while(sit != scope.end() && !(*mit).exactMatch( *sit ) ) ++sit;
@@ -221,7 +221,7 @@ void QuickOpenFunctionDialog::slotTextChangedDelayed() {
void QuickOpenFunctionDialog::slotReturnPressed()
{
maybeUpdateSelection();
- QListBoxItem *listboxItem = itemList->selectedItem();
+ TQListBoxItem *listboxItem = itemList->selectedItem();
slotExecuted( listboxItem );
}