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
Tobias Hunger
qt-creator
Commits
31d8116f
Commit
31d8116f
authored
Dec 03, 2008
by
con
Browse files
Fixes: - Make about dialog a non-modal dialog
parent
0a73401d
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/plugins/coreplugin/mainwindow.cpp
View file @
31d8116f
...
...
@@ -127,6 +127,7 @@ MainWindow::MainWindow() :
m_mimeDatabase
(
new
MimeDatabase
),
m_navigationWidget
(
0
),
m_rightPaneWidget
(
0
),
m_versionDialog
(
0
),
m_activeContext
(
0
),
m_pluginManager
(
0
),
m_outputPane
(
new
OutputPane
(
m_globalContext
)),
...
...
@@ -1085,8 +1086,20 @@ void MainWindow::openRecentFile()
void
MainWindow
::
aboutQtCreator
()
{
VersionDialog
versionDialog
(
this
);
versionDialog
.
exec
();
if
(
!
m_versionDialog
)
{
m_versionDialog
=
new
VersionDialog
(
this
);
connect
(
m_versionDialog
,
SIGNAL
(
finished
(
int
)),
this
,
SLOT
(
destroyVersionDialog
()));
}
m_versionDialog
->
show
();
}
void
MainWindow
::
destroyVersionDialog
()
{
if
(
m_versionDialog
)
{
m_versionDialog
->
deleteLater
();
m_versionDialog
=
0
;
}
}
void
MainWindow
::
aboutPlugins
()
...
...
src/plugins/coreplugin/mainwindow.h
View file @
31d8116f
...
...
@@ -83,6 +83,7 @@ class OutputPane;
class
ProgressManager
;
class
ShortcutSettings
;
class
ViewManager
;
class
VersionDialog
;
class
CORE_EXPORT
MainWindow
:
public
QMainWindow
{
...
...
@@ -160,6 +161,7 @@ private slots:
void
aboutPlugins
();
void
updateFocusWidget
(
QWidget
*
old
,
QWidget
*
now
);
void
toggleNavigation
();
void
destroyVersionDialog
();
private:
void
updateContextObject
(
IContext
*
context
);
...
...
@@ -190,6 +192,7 @@ private:
NavigationWidget
*
m_navigationWidget
;
RightPaneWidget
*
m_rightPaneWidget
;
Core
::
BaseView
*
m_outputView
;
VersionDialog
*
m_versionDialog
;
IContext
*
m_activeContext
;
...
...
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