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
69a99f0a
Commit
69a99f0a
authored
May 21, 2009
by
Joel Nordell
Browse files
add current editor filename (and, on macosx, proxy icon) to titlebar
parent
bb6f56f5
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/plugins/coreplugin/editormanager/editormanager.cpp
View file @
69a99f0a
...
...
@@ -770,6 +770,8 @@ bool EditorManager::closeEditors(const QList<IEditor*> editorsToClose, bool askA
setCurrentView
(
m_d
->
m_splitter
->
findView
(
currentView
));
if
(
IEditor
*
e
=
currentView
->
currentEditor
())
activateEditor
(
currentView
,
e
);
else
emit
currentEditorChanged
(
0
);
}
return
!
closingFailed
;
...
...
src/plugins/projectexplorer/session.cpp
View file @
69a99f0a
...
...
@@ -393,6 +393,8 @@ SessionManager::SessionManager(QObject *parent)
this
,
SLOT
(
setEditorCodec
(
Core
::
IEditor
*
,
QString
)));
connect
(
ProjectExplorerPlugin
::
instance
(),
SIGNAL
(
currentProjectChanged
(
ProjectExplorer
::
Project
*
)),
this
,
SLOT
(
updateWindowTitle
()));
connect
(
m_core
->
editorManager
(),
SIGNAL
(
currentEditorChanged
(
Core
::
IEditor
*
)),
this
,
SLOT
(
updateWindowTitle
()));
}
SessionManager
::~
SessionManager
()
...
...
@@ -921,6 +923,13 @@ void SessionManager::updateWindowTitle()
if
(
Project
*
currentProject
=
ProjectExplorerPlugin
::
instance
()
->
currentProject
())
windowTitle
.
prepend
(
currentProject
->
name
()
+
" - "
);
}
if
(
m_core
->
editorManager
()
->
currentEditor
())
{
QFileInfo
fi
(
m_core
->
editorManager
()
->
currentEditor
()
->
file
()
->
fileName
());
windowTitle
.
prepend
(
fi
.
fileName
()
+
" - "
);
m_core
->
mainWindow
()
->
setWindowFilePath
(
fi
.
absoluteFilePath
());
}
else
{
m_core
->
mainWindow
()
->
setWindowFilePath
(
QString
());
}
m_core
->
mainWindow
()
->
setWindowTitle
(
windowTitle
);
}
...
...
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