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
9b59df0b
Commit
9b59df0b
authored
Dec 12, 2008
by
mae
Browse files
fix show on split
parent
aed481de
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/coreplugin/editormanager/stackededitorgroup.cpp
View file @
9b59df0b
...
...
@@ -157,6 +157,7 @@ StackedEditorGroup::StackedEditorGroup(QWidget *parent) :
hbox
->
addWidget
(
closeButton
);
m_infoWidget
->
setVisible
(
false
);
tl
->
addWidget
(
m_infoWidget
);
}
tl
->
addWidget
(
m_container
);
...
...
@@ -166,8 +167,6 @@ StackedEditorGroup::StackedEditorGroup(QWidget *parent) :
l
->
setMargin
(
0
);
l
->
addWidget
(
m_toplevel
);
setLayout
(
l
);
m_toplevel
->
setVisible
(
false
);
}
void
StackedEditorGroup
::
showEditorInfoBar
(
const
QString
&
kind
,
...
...
@@ -261,10 +260,6 @@ void StackedEditorGroup::removeEditor(IEditor *editor)
toolBar
->
setVisible
(
false
);
toolBar
->
setParent
(
0
);
}
if
(
m_container
->
count
()
==
0
)
{
m_toplevel
->
setVisible
(
false
);
setFocus
();
}
emit
editorRemoved
(
editor
);
}
}
...
...
@@ -281,7 +276,6 @@ void StackedEditorGroup::setCurrentEditor(IEditor *editor)
if
(
!
editor
||
m_container
->
count
()
<=
0
||
m_container
->
indexOf
(
editor
->
widget
())
==
-
1
)
return
;
m_toplevel
->
setVisible
(
true
);
const
int
idx
=
m_container
->
indexOf
(
editor
->
widget
());
QTC_ASSERT
(
idx
>=
0
,
return
);
if
(
m_container
->
currentIndex
()
!=
idx
)
{
...
...
Write
Preview
Markdown
is supported
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