diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:56:07 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:56:07 +0000 |
commit | d6f8bbb45b267065a6907e71ff9c98bb6d161241 (patch) | |
tree | d109539636691d7b03036ca1c0ed29dbae6577cf /languages/pascal/compiler/dccoptions/dccoptionsplugin.cpp | |
parent | 3331a47a9cad24795c7440ee8107143ce444ef34 (diff) | |
download | tdevelop-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/pascal/compiler/dccoptions/dccoptionsplugin.cpp')
-rw-r--r-- | languages/pascal/compiler/dccoptions/dccoptionsplugin.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/languages/pascal/compiler/dccoptions/dccoptionsplugin.cpp b/languages/pascal/compiler/dccoptions/dccoptionsplugin.cpp index a65ca9d6..2d267519 100644 --- a/languages/pascal/compiler/dccoptions/dccoptionsplugin.cpp +++ b/languages/pascal/compiler/dccoptions/dccoptionsplugin.cpp @@ -8,8 +8,8 @@ * (at your option) any later version. * * * ***************************************************************************/ -#include <qvbox.h> -#include <qdialog.h> +#include <tqvbox.h> +#include <tqdialog.h> #include <kdebug.h> #include <klocale.h> @@ -21,7 +21,7 @@ K_EXPORT_COMPONENT_FACTORY( libkdevdccoptions, KGenericFactory<DccOptionsPlugin>( "kdevdccoptions" ) ) -DccOptionsPlugin::DccOptionsPlugin(QObject *parent, const char *name, const QStringList/* &args*/) +DccOptionsPlugin::DccOptionsPlugin(TQObject *parent, const char *name, const QStringList/* &args*/) : KDevCompilerOptions(parent, name) { } @@ -30,22 +30,22 @@ DccOptionsPlugin::~DccOptionsPlugin() { } -QString DccOptionsPlugin::exec(QWidget *parent, const QString &flags) +TQString DccOptionsPlugin::exec(TQWidget *parent, const TQString &flags) { DccOptionsDialog *dlg = new DccOptionsDialog(parent, "dcc options dialog"); - QString newFlags = flags; + TQString newFlags = flags; dlg->setFlags(flags); - if(dlg->exec() == QDialog::Accepted) + if(dlg->exec() == TQDialog::Accepted) newFlags = dlg->flags(); delete dlg; return newFlags; } -DccOptionsDialog::DccOptionsDialog( QWidget * parent, const char * name ) +DccOptionsDialog::DccOptionsDialog( TQWidget * parent, const char * name ) : KDialogBase(Tabbed, i18n("Delphi Compiler Options"), Ok|Cancel, Ok, parent, name, true) { - QVBox *vbox; + TQVBox *vbox; vbox = addVBoxPage(i18n("General")); general = new GeneralTab(vbox, "general tab"); @@ -70,9 +70,9 @@ DccOptionsDialog::~DccOptionsDialog( ) { } -void DccOptionsDialog::setFlags( const QString & flags ) +void DccOptionsDialog::setFlags( const TQString & flags ) { - QStringList flaglist = QStringList::split(" ", flags); + TQStringList flaglist = TQStringList::split(" ", flags); general->readFlags(&flaglist); codegen->readFlags(&flaglist); @@ -84,9 +84,9 @@ void DccOptionsDialog::setFlags( const QString & flags ) unrecognizedFlags = flaglist; } -QString DccOptionsDialog::flags( ) const +TQString DccOptionsDialog::flags( ) const { - QStringList flaglist; + TQStringList flaglist; general->writeFlags(&flaglist); locations->writeFlags(&flaglist); @@ -95,8 +95,8 @@ QString DccOptionsDialog::flags( ) const debug_optim->writeFlags(&flaglist); linker->writeFlags(&flaglist); - QString flags; - QStringList::ConstIterator li; + TQString flags; + TQStringList::ConstIterator li; for (li = flaglist.begin(); li != flaglist.end(); ++li) { flags += (*li); flags += " "; |