summaryrefslogtreecommitdiffstats
path: root/buildtools/lib/widgets/runoptionswidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'buildtools/lib/widgets/runoptionswidget.cpp')
-rw-r--r--buildtools/lib/widgets/runoptionswidget.cpp40
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
{