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
Tobias Hunger
qt-creator
Commits
453dc448
Commit
453dc448
authored
Feb 10, 2010
by
Thorbjørn Lindeijer
Browse files
A bit less indirection
parent
f230811f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/qmldesigner/designmodewidget.cpp
View file @
453dc448
...
...
@@ -183,11 +183,11 @@ void DocumentToolBar::updateEditorStatus()
Core
::
IEditor
*
editor
=
m_documentWidget
->
textEditor
();
if
(
editor
->
file
()
->
isReadOnly
())
{
m_lockButton
->
setIcon
(
Core
::
ICore
::
instance
()
->
editorManager
()
->
openedEditors
Model
()
->
lockedIcon
());
m_lockButton
->
setIcon
(
m_editorsList
Model
->
lockedIcon
());
m_lockButton
->
setEnabled
(
!
editor
->
file
()
->
fileName
().
isEmpty
());
m_lockButton
->
setToolTip
(
tr
(
"Make writable"
));
}
else
{
m_lockButton
->
setIcon
(
Core
::
ICore
::
instance
()
->
editorManager
()
->
openedEditors
Model
()
->
unlockedIcon
());
m_lockButton
->
setIcon
(
m_editorsList
Model
->
unlockedIcon
());
m_lockButton
->
setEnabled
(
false
);
m_lockButton
->
setToolTip
(
tr
(
"File is writable"
));
}
...
...
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