Skip to content
GitLab
Menu
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
169f1b1b
Commit
169f1b1b
authored
Jul 16, 2009
by
dt
Browse files
Add a checkbox for "Showing the compile output on build".
Enough people want that, and it's not much code. Task-Nr: 254138
parent
0d4e1c16
Changes
5
Hide whitespace changes
Inline
Side-by-side
src/plugins/projectexplorer/buildmanager.cpp
View file @
169f1b1b
...
...
@@ -333,6 +333,8 @@ void BuildManager::buildProjects(const QList<Project *> &projects, const QList<Q
}
}
startBuildQueue
();
if
(
ProjectExplorerPlugin
::
instance
()
->
projectExplorerSettings
().
showCompilerOutput
)
m_outputWindow
->
popup
(
false
);
}
void
BuildManager
::
cleanProjects
(
const
QList
<
Project
*>
&
projects
,
const
QList
<
QString
>
&
configurations
)
...
...
@@ -349,6 +351,8 @@ void BuildManager::cleanProjects(const QList<Project *> &projects, const QList<Q
}
}
startBuildQueue
();
if
(
ProjectExplorerPlugin
::
instance
()
->
projectExplorerSettings
().
showCompilerOutput
)
m_outputWindow
->
popup
(
false
);
}
void
BuildManager
::
buildProject
(
Project
*
p
,
const
QString
&
configuration
)
...
...
src/plugins/projectexplorer/projectexplorer.cpp
View file @
169f1b1b
...
...
@@ -644,6 +644,7 @@ bool ProjectExplorerPlugin::initialize(const QStringList &arguments, QString *er
if
(
QSettings
*
s
=
core
->
settings
())
{
m_projectExplorerSettings
.
buildBeforeRun
=
s
->
value
(
"ProjectExplorer/Settings/BuildBeforeRun"
,
true
).
toBool
();
m_projectExplorerSettings
.
saveBeforeBuild
=
s
->
value
(
"ProjectExplorer/Settings/SaveBeforeBuild"
,
false
).
toBool
();
m_projectExplorerSettings
.
showCompilerOutput
=
s
->
value
(
"ProjectExplorer/Settings/ShowCompilerOutput"
,
false
).
toBool
();
}
if
(
Core
::
Internal
::
WelcomeMode
*
welcomeMode
=
qobject_cast
<
Core
::
Internal
::
WelcomeMode
*>
...
...
@@ -887,6 +888,7 @@ void ProjectExplorerPlugin::savePersistentSettings()
s
->
setValue
(
"ProjectExplorer/Settings/BuildBeforeRun"
,
m_projectExplorerSettings
.
buildBeforeRun
);
s
->
setValue
(
"ProjectExplorer/Settings/SaveBeforeBuild"
,
m_projectExplorerSettings
.
saveBeforeBuild
);
s
->
setValue
(
"ProjectExplorer/Settings/ShowCompilerOutput"
,
m_projectExplorerSettings
.
showCompilerOutput
);
}
}
...
...
src/plugins/projectexplorer/projectexplorer.h
View file @
169f1b1b
...
...
@@ -78,6 +78,7 @@ struct ProjectExplorerSettings
{
bool
buildBeforeRun
;
bool
saveBeforeBuild
;
bool
showCompilerOutput
;
};
}
// namespace Internal
...
...
src/plugins/projectexplorer/projectexplorersettingspage.cpp
View file @
169f1b1b
...
...
@@ -72,6 +72,7 @@ QWidget *ProjectExplorerSettingsPage::createPage(QWidget *parent)
ProjectExplorerSettings
pes
=
ProjectExplorerPlugin
::
instance
()
->
projectExplorerSettings
();
m_ui
.
buildProjectBeforeRunCheckBox
->
setChecked
(
pes
.
buildBeforeRun
);
m_ui
.
saveAllFilesCheckBox
->
setChecked
(
pes
.
saveBeforeBuild
);
m_ui
.
showCompileOutputCheckBox
->
setChecked
(
pes
.
showCompilerOutput
);
return
w
;
}
...
...
@@ -80,6 +81,7 @@ void ProjectExplorerSettingsPage::apply()
ProjectExplorerSettings
pes
;
pes
.
buildBeforeRun
=
m_ui
.
buildProjectBeforeRunCheckBox
->
isChecked
();
pes
.
saveBeforeBuild
=
m_ui
.
saveAllFilesCheckBox
->
isChecked
();
pes
.
showCompilerOutput
=
m_ui
.
showCompileOutputCheckBox
->
isChecked
();
ProjectExplorerPlugin
::
instance
()
->
setProjectExplorerSettings
(
pes
);
}
...
...
src/plugins/projectexplorer/projectexplorersettingspage.ui
View file @
169f1b1b
...
...
@@ -31,6 +31,13 @@
</property>
</widget>
</item>
<item>
<widget
class=
"QCheckBox"
name=
"showCompileOutputCheckBox"
>
<property
name=
"text"
>
<string>
Show Compiler Output on building
</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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