Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
qt-creator
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tobias Hunger
qt-creator
Commits
f6cd2493
Commit
f6cd2493
authored
15 years ago
by
Tobias Hunger
Browse files
Options
Downloads
Patches
Plain Diff
Set parents on objects
... otherwise we might leak memory
parent
7cd54f12
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/plugins/qt4projectmanager/qt4runconfiguration.cpp
+14
-10
14 additions, 10 deletions
src/plugins/qt4projectmanager/qt4runconfiguration.cpp
src/plugins/qt4projectmanager/qt4runconfiguration.h
+2
-0
2 additions, 0 deletions
src/plugins/qt4projectmanager/qt4runconfiguration.h
with
16 additions
and
10 deletions
src/plugins/qt4projectmanager/qt4runconfiguration.cpp
+
14
−
10
View file @
f6cd2493
...
...
@@ -195,25 +195,25 @@ Qt4RunConfigurationWidget::Qt4RunConfigurationWidget(Qt4RunConfiguration *qt4Run
toplayout
->
setFieldGrowthPolicy
(
QFormLayout
::
ExpandingFieldsGrow
);
toplayout
->
setMargin
(
0
);
QLabel
*
nameLabel
=
new
QLabel
(
tr
(
"Name:"
));
m_nameLineEdit
=
new
QLineEdit
(
m_qt4RunConfiguration
->
displayName
());
QLabel
*
nameLabel
=
new
QLabel
(
tr
(
"Name:"
)
,
this
);
m_nameLineEdit
=
new
QLineEdit
(
m_qt4RunConfiguration
->
displayName
()
,
this
);
nameLabel
->
setBuddy
(
m_nameLineEdit
);
toplayout
->
addRow
(
nameLabel
,
m_nameLineEdit
);
m_executableLabel
=
new
QLabel
(
m_qt4RunConfiguration
->
executable
());
m_executableLabel
=
new
QLabel
(
m_qt4RunConfiguration
->
executable
()
,
this
);
toplayout
->
addRow
(
tr
(
"Executable:"
),
m_executableLabel
);
QLabel
*
argumentsLabel
=
new
QLabel
(
tr
(
"Arguments:"
));
m_argumentsLineEdit
=
new
QLineEdit
(
ProjectExplorer
::
Environment
::
joinArgumentList
(
qt4RunConfiguration
->
commandLineArguments
()));
QLabel
*
argumentsLabel
=
new
QLabel
(
tr
(
"Arguments:"
)
,
this
);
m_argumentsLineEdit
=
new
QLineEdit
(
ProjectExplorer
::
Environment
::
joinArgumentList
(
qt4RunConfiguration
->
commandLineArguments
())
,
this
);
argumentsLabel
->
setBuddy
(
m_argumentsLineEdit
);
toplayout
->
addRow
(
argumentsLabel
,
m_argumentsLineEdit
);
m_workingDirectoryEdit
=
new
Utils
::
PathChooser
();
m_workingDirectoryEdit
=
new
Utils
::
PathChooser
(
this
);
m_workingDirectoryEdit
->
setPath
(
m_qt4RunConfiguration
->
workingDirectory
());
m_workingDirectoryEdit
->
setExpectedKind
(
Utils
::
PathChooser
::
Directory
);
m_workingDirectoryEdit
->
setPromptDialogTitle
(
tr
(
"Select the working directory"
));
QToolButton
*
resetButton
=
new
QToolButton
();
QToolButton
*
resetButton
=
new
QToolButton
(
this
);
resetButton
->
setToolTip
(
tr
(
"Reset to default"
));
resetButton
->
setIcon
(
QIcon
(
":/core/images/reset.png"
));
...
...
@@ -223,12 +223,12 @@ Qt4RunConfigurationWidget::Qt4RunConfigurationWidget(Qt4RunConfiguration *qt4Run
boxlayout
->
addWidget
(
resetButton
);
toplayout
->
addRow
(
tr
(
"Working Directory:"
),
boxlayout
);
m_useTerminalCheck
=
new
QCheckBox
(
tr
(
"Run in Terminal"
));
m_useTerminalCheck
=
new
QCheckBox
(
tr
(
"Run in Terminal"
)
,
this
);
m_useTerminalCheck
->
setChecked
(
m_qt4RunConfiguration
->
runMode
()
==
ProjectExplorer
::
LocalApplicationRunConfiguration
::
Console
);
toplayout
->
addRow
(
QString
(),
m_useTerminalCheck
);
#ifdef Q_OS_MAC
m_usingDyldImageSuffix
=
new
QCheckBox
(
tr
(
"Use debug version of frameworks (DYLD_IMAGE_SUFFIX=_debug)"
));
m_usingDyldImageSuffix
=
new
QCheckBox
(
tr
(
"Use debug version of frameworks (DYLD_IMAGE_SUFFIX=_debug)"
)
,
this
);
m_usingDyldImageSuffix
->
setChecked
(
m_qt4RunConfiguration
->
isUsingDyldImageSuffix
());
toplayout
->
addRow
(
QString
(),
m_usingDyldImageSuffix
);
connect
(
m_usingDyldImageSuffix
,
SIGNAL
(
toggled
(
bool
)),
...
...
@@ -243,7 +243,7 @@ Qt4RunConfigurationWidget::Qt4RunConfigurationWidget(Qt4RunConfiguration *qt4Run
environmentLabel
->
setFont
(
f
);
vboxTopLayout
->
addWidget
(
environmentLabel
);
QWidget
*
baseEnvironmentWidget
=
new
QWidget
;
QWidget
*
baseEnvironmentWidget
=
new
QWidget
(
this
)
;
QHBoxLayout
*
baseEnvironmentLayout
=
new
QHBoxLayout
(
baseEnvironmentWidget
);
baseEnvironmentLayout
->
setMargin
(
0
);
QLabel
*
label
=
new
QLabel
(
tr
(
"Base environment for this runconfiguration:"
),
this
);
...
...
@@ -303,6 +303,10 @@ Qt4RunConfigurationWidget::Qt4RunConfigurationWidget(Qt4RunConfiguration *qt4Run
this
,
SLOT
(
baseEnvironmentChanged
()));
}
Qt4RunConfigurationWidget
::~
Qt4RunConfigurationWidget
()
{
}
void
Qt4RunConfigurationWidget
::
baseEnvironmentSelected
(
int
index
)
{
m_ignoreChange
=
true
;
...
...
This diff is collapsed.
Click to expand it.
src/plugins/qt4projectmanager/qt4runconfiguration.h
+
2
−
0
View file @
f6cd2493
...
...
@@ -158,6 +158,8 @@ class Qt4RunConfigurationWidget : public QWidget
public:
Qt4RunConfigurationWidget
(
Qt4RunConfiguration
*
qt4runconfigration
,
QWidget
*
parent
);
~
Qt4RunConfigurationWidget
();
protected:
void
showEvent
(
QShowEvent
*
event
);
void
hideEvent
(
QHideEvent
*
event
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment