summaryrefslogtreecommitdiffstats
path: root/parts/quickopen/quickopenclassdialog.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/quickopenclassdialog.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/quickopenclassdialog.cpp')
-rw-r--r--parts/quickopen/quickopenclassdialog.cpp40
1 files changed, 20 insertions, 20 deletions
diff --git a/parts/quickopen/quickopenclassdialog.cpp b/parts/quickopen/quickopenclassdialog.cpp
index 0d5b2251..b97e47a3 100644
--- a/parts/quickopen/quickopenclassdialog.cpp
+++ b/parts/quickopen/quickopenclassdialog.cpp
@@ -28,14 +28,14 @@
#include <kcompletion.h>
#include <klineedit.h>
-#include <qregexp.h>
-#include <qlabel.h>
+#include <tqregexp.h>
+#include <tqlabel.h>
#include "quickopenclassdialog.h"
#include "quickopen_part.h"
#include "quickopenfunctionchooseform.h"
-QuickOpenClassDialog::QuickOpenClassDialog(QuickOpenPart* part, QWidget* parent, const char* name, bool modal, WFlags fl)
+QuickOpenClassDialog::QuickOpenClassDialog(QuickOpenPart* part, TQWidget* parent, const char* name, bool modal, WFlags fl)
: QuickOpenDialog( part, parent, name, modal, fl )
{
nameLabel->setText( i18n("Class &name:") );
@@ -54,14 +54,14 @@ QuickOpenClassDialog::~QuickOpenClassDialog()
{
}
-void QuickOpenClassDialog::slotExecuted( QListBoxItem* /*item*/ )
+void QuickOpenClassDialog::slotExecuted( TQListBoxItem* /*item*/ )
{
accept();
}
void QuickOpenClassDialog::accept()
{
- if( QListBoxItem* item = itemList->selectedItem() )
+ if( TQListBoxItem* item = itemList->selectedItem() )
{
ClassList klasses = findClass( item->text() );
if( klasses.count() == 1 )
@@ -75,7 +75,7 @@ void QuickOpenClassDialog::accept()
else if (klasses.count() > 1 )
{
//several classes with the same name found
- QString fileStr;
+ TQString fileStr;
QuickOpenFunctionChooseForm fdlg( this, "" );
fdlg.setCaption(i18n("Select The Location of Class %1").arg(klasses.first()->name()));
@@ -85,7 +85,7 @@ void QuickOpenClassDialog::accept()
{
ClassDom klass = *it;
//assemble class name to display (maybe with scope info and specialization)
- QString classStr = m_part->languageSupport()->formatModelItem(klass);
+ TQString classStr = m_part->languageSupport()->formatModelItem(klass);
if(klass->hasSpecializationDeclaration())
classStr += klass->getSpecializationDeclaration();
if(!klass->scope().isEmpty())
@@ -106,14 +106,14 @@ void QuickOpenClassDialog::accept()
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 );
}
}
}
}
- QDialog::accept();
+ TQDialog::accept();
}
void QuickOpenClassDialog::slotReturnPressed( )
@@ -122,14 +122,14 @@ void QuickOpenClassDialog::slotReturnPressed( )
accept();
}
-void QuickOpenClassDialog::findAllClasses( QStringList& lst )
+void QuickOpenClassDialog::findAllClasses( TQStringList& lst )
{
findAllClasses( lst, m_part->codeModel()->globalNamespace() );
}
-void QuickOpenClassDialog::findAllClasses( QStringList& lst, const ClassDom klass )
+void QuickOpenClassDialog::findAllClasses( TQStringList& lst, const ClassDom klass )
{
- QStringList fullName = klass->scope();
+ TQStringList fullName = klass->scope();
fullName << klass->name();
lst << fullName.join( "::" );
@@ -138,7 +138,7 @@ void QuickOpenClassDialog::findAllClasses( QStringList& lst, const ClassDom klas
findAllClasses( lst, *it );
}
-void QuickOpenClassDialog::findAllClasses( QStringList& lst, const NamespaceDom ns )
+void QuickOpenClassDialog::findAllClasses( TQStringList& lst, const NamespaceDom ns )
{
const NamespaceList namespaceList = ns->namespaceList();
for( NamespaceList::ConstIterator it=namespaceList.begin(); it!=namespaceList.end(); ++it )
@@ -149,19 +149,19 @@ void QuickOpenClassDialog::findAllClasses( QStringList& lst, const NamespaceDom
findAllClasses( lst, *it );
}
-ClassList QuickOpenClassDialog::findClass( const QString& name )
+ClassList QuickOpenClassDialog::findClass( const TQString& name )
{
- QStringList path = QStringList::split( "::", name );
+ TQStringList path = TQStringList::split( "::", name );
return findClass( path, m_part->codeModel()->globalNamespace() );
}
-ClassList QuickOpenClassDialog::findClass( QStringList& path, const NamespaceDom ns )
+ClassList QuickOpenClassDialog::findClass( TQStringList& path, const NamespaceDom ns )
{
ClassList list;
if( path.isEmpty() )
return list;
- QString current = path.front();
+ TQString current = path.front();
if( ns->hasNamespace(current) )
{
path.pop_front();
@@ -178,7 +178,7 @@ ClassList QuickOpenClassDialog::findClass( QStringList& path, const NamespaceDom
return list;
}
-ClassList QuickOpenClassDialog::findClass( QStringList& path, const ClassList klasses )
+ClassList QuickOpenClassDialog::findClass( TQStringList& path, const ClassList klasses )
{
ClassList list;
if( path.isEmpty() )
@@ -195,7 +195,7 @@ ClassList QuickOpenClassDialog::findClass( QStringList& path, const ClassList kl
return list;
}
-ClassList QuickOpenClassDialog::findClass( QStringList &path, const ClassDom klass )
+ClassList QuickOpenClassDialog::findClass( TQStringList &path, const ClassDom klass )
{
ClassList list;
if( path.isEmpty() )
@@ -204,7 +204,7 @@ ClassList QuickOpenClassDialog::findClass( QStringList &path, const ClassDom kla
return list;
}
- QString current = path.front();
+ TQString current = path.front();
if( klass->hasClass(current) )
{
path.pop_front();