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
Marco Bubke
flatpak-qt-creator
Commits
8d1edf72
Commit
8d1edf72
authored
Jan 19, 2009
by
Thorbjørn Lindeijer
Browse files
Have the editor list combo adjust size to contents
Now the box will grow larger when files with long filenames are opened.
parent
cc5ff1ec
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/coreplugin/editormanager/stackededitorgroup.cpp
View file @
8d1edf72
...
...
@@ -79,6 +79,7 @@ StackedEditorGroup::StackedEditorGroup(QWidget *parent) :
tl
->
setMargin
(
0
);
{
m_editorList
->
setSizePolicy
(
QSizePolicy
::
Fixed
,
QSizePolicy
::
Fixed
);
m_editorList
->
setSizeAdjustPolicy
(
QComboBox
::
AdjustToContents
);
m_editorList
->
setMinimumContentsLength
(
20
);
m_proxyModel
.
setSourceModel
(
model
());
m_proxyModel
.
sort
(
0
);
...
...
@@ -296,9 +297,9 @@ void StackedEditorGroup::setCurrentEditor(IEditor *editor)
void
StackedEditorGroup
::
checkEditorStatus
()
{
IEditor
*
editor
=
qobject_cast
<
IEditor
*>
(
sender
());
if
(
editor
==
currentEditor
())
updateEditorStatus
(
editor
);
IEditor
*
editor
=
qobject_cast
<
IEditor
*>
(
sender
());
if
(
editor
==
currentEditor
())
updateEditorStatus
(
editor
);
}
void
StackedEditorGroup
::
updateEditorStatus
(
IEditor
*
editor
)
...
...
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