Commit 0b20199a authored by Oswald Buddenhagen's avatar Oswald Buddenhagen
Browse files

de-arcanize code

no need to make a dummyfied derived class when using another flag is
just fine.
parent e26b631a
......@@ -54,21 +54,6 @@
namespace ProjectExplorer {
namespace Internal {
class CustomDirectoryPathChooser : public Utils::PathChooser
{
public:
CustomDirectoryPathChooser(QWidget *parent)
: Utils::PathChooser(parent)
{
}
virtual bool validatePath(const QString &path, QString *errorMessage = 0)
{
Q_UNUSED(path)
Q_UNUSED(errorMessage)
return true;
}
};
CustomExecutableConfigurationWidget::CustomExecutableConfigurationWidget(CustomExecutableRunConfiguration *rc)
: m_ignoreChange(false), m_runConfiguration(rc)
{
......@@ -85,8 +70,8 @@ CustomExecutableConfigurationWidget::CustomExecutableConfigurationWidget(CustomE
m_commandLineArgumentsLineEdit->setMinimumWidth(200); // this shouldn't be fixed here...
layout->addRow(tr("Arguments:"), m_commandLineArgumentsLineEdit);
m_workingDirectory = new CustomDirectoryPathChooser(this);
m_workingDirectory->setExpectedKind(Utils::PathChooser::ExistingDirectory);
m_workingDirectory = new Utils::PathChooser(this);
m_workingDirectory->setExpectedKind(Utils::PathChooser::Directory);
m_workingDirectory->setBaseDirectory(rc->target()->project()->projectDirectory());
m_workingDirectory->setEnvironment(rc->environment());
layout->addRow(tr("Working directory:"), m_workingDirectory);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment