summaryrefslogtreecommitdiffstats
path: root/languages/cpp/createpcsdialog.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 /languages/cpp/createpcsdialog.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 'languages/cpp/createpcsdialog.cpp')
-rw-r--r--languages/cpp/createpcsdialog.cpp72
1 files changed, 36 insertions, 36 deletions
diff --git a/languages/cpp/createpcsdialog.cpp b/languages/cpp/createpcsdialog.cpp
index 1dc45034..d716bcc2 100644
--- a/languages/cpp/createpcsdialog.cpp
+++ b/languages/cpp/createpcsdialog.cpp
@@ -35,13 +35,13 @@
#include <kstringhandler.h>
#include <klineedit.h>
-#include <qprogressbar.h>
-#include <qheader.h>
-#include <qlabel.h>
-#include <qregexp.h>
-#include <qlayout.h>
-#include <qtimer.h>
-#include <qpushbutton.h>
+#include <tqprogressbar.h>
+#include <tqheader.h>
+#include <tqlabel.h>
+#include <tqregexp.h>
+#include <tqlayout.h>
+#include <tqtimer.h>
+#include <tqpushbutton.h>
#include <stdlib.h>
#include <unistd.h>
@@ -64,7 +64,7 @@ public:
}
#if 0 /// \FIXME robe
- void addDocDirectory( const QString& dir )
+ void addDocDirectory( const TQString& dir )
{
m_docDirectoryList.append( dir );
TagCreator::setDocumentationDirectories( m_docDirectoryList );
@@ -76,8 +76,8 @@ public:
/// @todo increment progress
#if 0 /// @todo show problems
- QValueList<Problem> l = problems( fileName );
- QValueList<Problem>::Iterator it = l.begin();
+ TQValueList<Problem> l = problems( fileName );
+ TQValueList<Problem>::Iterator it = l.begin();
while ( it != l.end() )
{
const Problem & p = *it;
@@ -99,18 +99,18 @@ public:
void setup()
{
bool ok;
- QString gccLibPath = SetupHelper::getGccIncludePath(&ok);
+ TQString gccLibPath = SetupHelper::getGccIncludePath(&ok);
if (!ok)
return;
- gccLibPath = gccLibPath.replace( QRegExp( "[\r\n]" ), "" );
+ gccLibPath = gccLibPath.replace( TQRegExp( "[\r\n]" ), "" );
addIncludePath( gccLibPath );
//addIncludePath( "/usr/include/g++-3" );
//addIncludePath( "/usr/include/g++" );
- QStringList lines = SetupHelper::getGccMacros(&ok);
+ TQStringList lines = SetupHelper::getGccMacros(&ok);
if (!ok)
return;
- for (QStringList::ConstIterator it = lines.constBegin(); it != lines.constEnd(); ++it) {
- QStringList lst = QStringList::split( ' ', *it );
+ for (TQStringList::ConstIterator it = lines.constBegin(); it != lines.constEnd(); ++it) {
+ TQStringList lst = TQStringList::split( ' ', *it );
if ( lst.count() != 3 )
continue;
addMacro( Macro( lst[1], lst[2] ) );
@@ -124,7 +124,7 @@ private:
Catalog* catalog;
#if 0 /// \FIXME
- QStringList m_docDirectoryList;
+ TQStringList m_docDirectoryList;
#endif
};
@@ -132,12 +132,12 @@ private:
class PCSListViewItem: public KListViewItem
{
public:
- PCSListViewItem( KService::Ptr ptr, KDevPCSImporter* importer, QListViewItem* parent )
+ PCSListViewItem( KService::Ptr ptr, KDevPCSImporter* importer, TQListViewItem* parent )
: KListViewItem( parent ), m_importer( importer )
{
init( ptr );
}
- PCSListViewItem( KService::Ptr ptr, KDevPCSImporter* importer, QListView* parent )
+ PCSListViewItem( KService::Ptr ptr, KDevPCSImporter* importer, TQListView* parent )
: KListViewItem( parent ), m_importer( importer )
{
init( ptr );
@@ -167,14 +167,14 @@ private:
class CreatePCSDialog::PCSJobData
{
public:
- QString dbName;
+ TQString dbName;
Catalog * catalog;
RppDriver * driver;
- QStringList list;
- QStringList::iterator it;
+ TQStringList list;
+ TQStringList::iterator it;
int progress;
- PCSJobData( const QString & dbName, QStringList const & fileList )
+ PCSJobData( const TQString & dbName, TQStringList const & fileList )
: dbName( dbName), list( fileList ), it( list.begin() ), progress( 0 )
{
catalog = new Catalog;
@@ -196,7 +196,7 @@ public:
-CreatePCSDialog::CreatePCSDialog( CppSupportPart* part, QWidget* parent, const char* name, bool modal, WFlags fl )
+CreatePCSDialog::CreatePCSDialog( CppSupportPart* part, TQWidget* parent, const char* name, bool modal, WFlags fl )
: CreatePCSDialogBase( parent, name, modal, fl ), m_part( part ), m_jobData( 0 )
{
helpButton()->hide();
@@ -212,7 +212,7 @@ CreatePCSDialog::CreatePCSDialog( CppSupportPart* part, QWidget* parent, const c
KService::Ptr ptr = *it;
int error = 0;
- KDevPCSImporter* importer = KParts::ComponentFactory::createInstanceFromService<KDevPCSImporter>( ptr, this, ptr->name().latin1(), QStringList(), &error );
+ KDevPCSImporter* importer = KParts::ComponentFactory::createInstanceFromService<KDevPCSImporter>( ptr, this, ptr->name().latin1(), TQStringList(), &error );
if ( importer )
{
new PCSListViewItem( ptr, importer, importerListView );
@@ -221,7 +221,7 @@ CreatePCSDialog::CreatePCSDialog( CppSupportPart* part, QWidget* parent, const c
setNextEnabled( importerPage, false );
- QHBoxLayout* hbox = new QHBoxLayout( settingsPage );
+ TQHBoxLayout* hbox = new TQHBoxLayout( settingsPage );
hbox->setAutoAdd( true );
if ( importerListView->firstChild() )
@@ -237,12 +237,12 @@ CreatePCSDialog::~CreatePCSDialog()
/*$SPECIALIZATION$*/
void CreatePCSDialog::back()
{
- QWizard::back();
+ TQWizard::back();
}
void CreatePCSDialog::next()
{
- QWizard::next();
+ TQWizard::next();
}
void CreatePCSDialog::reject()
@@ -254,7 +254,7 @@ void CreatePCSDialog::reject()
m_jobData = 0;
}
- QWizard::reject();
+ TQWizard::reject();
}
void CreatePCSDialog::accept()
@@ -262,10 +262,10 @@ void CreatePCSDialog::accept()
delete m_jobData;
m_jobData = 0;
- QWizard::accept();
+ TQWizard::accept();
}
-void CreatePCSDialog::slotSelected( const QString & )
+void CreatePCSDialog::slotSelected( const TQString & )
{
if ( currentPage() == settingsPage )
{
@@ -276,7 +276,7 @@ void CreatePCSDialog::slotSelected( const QString & )
m_settings = importer->createSettingsPage( settingsPage );
setNextEnabled( currentPage(), false );
setHelpEnabled( currentPage(), false );
- connect( m_settings, SIGNAL( enabled( int ) ), this, SLOT( setNextPageEnabled( int ) ) );
+ connect( m_settings, TQT_SIGNAL( enabled( int ) ), this, TQT_SLOT( setNextPageEnabled( int ) ) );
if ( m_settings )
{
@@ -295,19 +295,19 @@ void CreatePCSDialog::slotSelected( const QString & )
setNextEnabled( currentPage(), false );
KDevPCSImporter* importer = static_cast<PCSListViewItem*>( importerListView->selectedItem() )->importer();
- QStringList fileList = importer->fileList();
+ TQStringList fileList = importer->fileList();
progressBar->setTotalSteps( fileList.size() );
progressBar->setPercentageVisible( true );
KStandardDirs *dirs = m_part->instance() ->dirs();
- QString dbName = dirs->saveLocation( "data", "kdevcppsupport/pcs" ) + KURL::encode_string_no_slash(filename_edit->text()) + ".db";
+ TQString dbName = dirs->saveLocation( "data", "kdevcppsupport/pcs" ) + KURL::encode_string_no_slash(filename_edit->text()) + ".db";
kdDebug( 9007 ) << "================================> dbName = " << dbName << endl;
m_part->removeCatalog( dbName );
m_jobData = new PCSJobData( dbName, fileList );
- QTimer::singleShot( 0, this, SLOT(parseNext()) );
+ TQTimer::singleShot( 0, this, TQT_SLOT(parseNext()) );
}
}
@@ -340,7 +340,7 @@ void CreatePCSDialog::parseNext( )
++(m_jobData->it);
- QTimer::singleShot( 0, this, SLOT(parseNext()) );
+ TQTimer::singleShot( 0, this, TQT_SLOT(parseNext()) );
}
@@ -349,7 +349,7 @@ void CreatePCSDialog::setNextPageEnabled( int enabled )
setNextEnabled( currentPage(), enabled );
}
-void CreatePCSDialog::slotSelectionChanged( QListViewItem * item )
+void CreatePCSDialog::slotSelectionChanged( TQListViewItem * item )
{
setNextPageEnabled( item != 0 );
}