Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
0b20199a
Commit
0b20199a
authored
Mar 08, 2011
by
Oswald Buddenhagen
Browse files
de-arcanize code
no need to make a dummyfied derived class when using another flag is just fine.
parent
e26b631a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/projectexplorer/customexecutableconfigurationwidget.cpp
View file @
0b20199a
...
...
@@ -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
CustomDirectory
PathChooser
(
this
);
m_workingDirectory
->
setExpectedKind
(
Utils
::
PathChooser
::
Existing
Directory
);
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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment