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 /buildtools/lib/widgets/runoptionswidget.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 'buildtools/lib/widgets/runoptionswidget.cpp')
-rw-r--r-- | buildtools/lib/widgets/runoptionswidget.cpp | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/buildtools/lib/widgets/runoptionswidget.cpp b/buildtools/lib/widgets/runoptionswidget.cpp index f0cb94b4..9aecbe17 100644 --- a/buildtools/lib/widgets/runoptionswidget.cpp +++ b/buildtools/lib/widgets/runoptionswidget.cpp @@ -26,20 +26,20 @@ #include <klineedit.h> #include <urlutil.h> -#include <qlistview.h> -#include <qgroupbox.h> -#include <qcheckbox.h> -#include <qradiobutton.h> -#include <qpushbutton.h> -#include <qbuttongroup.h> -#include <qlabel.h> +#include <tqlistview.h> +#include <tqgroupbox.h> +#include <tqcheckbox.h> +#include <tqradiobutton.h> +#include <tqpushbutton.h> +#include <tqbuttongroup.h> +#include <tqlabel.h> #include "domutil.h" #include "environmentvariableswidget.h" -RunOptionsWidget::RunOptionsWidget(QDomDocument &dom, const QString &configGroup, - const QString &buildDirectory, QWidget *parent, const char *name) +RunOptionsWidget::RunOptionsWidget(TQDomDocument &dom, const TQString &configGroup, + const TQString &buildDirectory, TQWidget *parent, const char *name) : RunOptionsWidgetBase(parent, name), m_dom(dom), m_configGroup(configGroup) { @@ -49,37 +49,37 @@ RunOptionsWidget::RunOptionsWidget(QDomDocument &dom, const QString &configGroup mainprogram_edit->completionObject()->setMode(KURLCompletion::FileCompletion); mainprogram_edit->setMode( KFile::File | KFile::ExistingOnly | KFile::LocalOnly ); - if( DomUtil::readEntry(dom, configGroup + "/run/mainprogram").isEmpty() && QFileInfo( buildDirectory ).exists() ) + if( DomUtil::readEntry(dom, configGroup + "/run/mainprogram").isEmpty() && TQFileInfo( buildDirectory ).exists() ) { mainprogram_edit->setURL( buildDirectory ); mainprogram_edit->fileDialog()->setURL( KURL::fromPathOrURL(buildDirectory) ); - }else if ( QFileInfo( DomUtil::readEntry(dom, configGroup + "/run/mainprogram") ).exists() ) + }else if ( TQFileInfo( DomUtil::readEntry(dom, configGroup + "/run/mainprogram") ).exists() ) { - QString program = DomUtil::readEntry(dom, configGroup + "/run/mainprogram"); - if( QDir::isRelativePath(program) ) + TQString program = DomUtil::readEntry(dom, configGroup + "/run/mainprogram"); + if( TQDir::isRelativePath(program) ) program = buildDirectory + "/" + program; mainprogram_edit->setURL(program); mainprogram_edit->fileDialog()->setURL( program ); }else { - mainprogram_edit->setURL(QString()); - mainprogram_edit->fileDialog()->setURL(QString()); + mainprogram_edit->setURL(TQString()); + mainprogram_edit->fileDialog()->setURL(TQString()); } cwd_edit->completionObject()->setMode(KURLCompletion::DirCompletion); cwd_edit->setMode( KFile::Directory | KFile::ExistingOnly | KFile::LocalOnly ); - if( DomUtil::readEntry(dom, configGroup + "/run/globalcwd").isEmpty() && QFileInfo( buildDirectory ).exists() ) + if( DomUtil::readEntry(dom, configGroup + "/run/globalcwd").isEmpty() && TQFileInfo( buildDirectory ).exists() ) { cwd_edit->setURL( buildDirectory ); cwd_edit->fileDialog()->setURL( KURL::fromPathOrURL(buildDirectory) ); - }else if( QFileInfo( DomUtil::readEntry(dom, configGroup + "/run/globalcwd") ).exists() ) + }else if( TQFileInfo( DomUtil::readEntry(dom, configGroup + "/run/globalcwd") ).exists() ) { cwd_edit->setURL(DomUtil::readEntry(dom, configGroup + "/run/globalcwd")); cwd_edit->fileDialog()->setURL( KURL::fromPathOrURL( DomUtil::readEntry(dom, configGroup + "/run/globalcwd") ) ); }else { - cwd_edit->setURL(QString()); - cwd_edit->fileDialog()->setURL(QString()); + cwd_edit->setURL(TQString()); + cwd_edit->fileDialog()->setURL(TQString()); } if( configGroup == "/kdevautoproject" || configGroup == "/kdevtrollproject" ) @@ -127,7 +127,7 @@ void RunOptionsWidget::mainProgramChanged( ) if( mainProgramGroupBox->isChecked() && mainprogram_edit->url().isEmpty() ) { - mainprogram_label->setPaletteForegroundColor(QColor("#ff0000")); + mainprogram_label->setPaletteForegroundColor(TQColor("#ff0000")); } else { |