Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Ben Boeckel
SMTK
Commits
734aa411
Commit
734aa411
authored
Sep 14, 2017
by
Alvaro Sanchez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes file combo-box resizing in SimBuilderDialog.
parent
2982552f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
smtk/extension/qt/qtBaseView.cxx
smtk/extension/qt/qtBaseView.cxx
+1
-0
smtk/extension/qt/qtFileItem.cxx
smtk/extension/qt/qtFileItem.cxx
+8
-0
No files found.
smtk/extension/qt/qtBaseView.cxx
View file @
734aa411
...
...
@@ -318,6 +318,7 @@ void qtBaseView::makeTopLevel()
this
->
m_ScrollArea
=
new
QScrollArea
(
this
->
parentWidget
());
this
->
m_ScrollArea
->
setWidgetResizable
(
true
);
this
->
m_ScrollArea
->
setAlignment
(
Qt
::
AlignHCenter
|
Qt
::
AlignVCenter
);
this
->
m_ScrollArea
->
setFrameShape
(
QFrame
::
NoFrame
);
this
->
m_ScrollArea
->
setObjectName
(
"topLevelScrollArea"
);
parentlayout
->
addWidget
(
this
->
m_ScrollArea
);
...
...
smtk/extension/qt/qtFileItem.cxx
View file @
734aa411
...
...
@@ -229,7 +229,15 @@ QWidget* qtFileItem::createFileBrowseWidget(int elementIdx)
if
(
lineEdit
)
lineEdit
->
setAlignment
(
Qt
::
AlignRight
);
else
if
(
fileCombo
)
{
fileCombo
->
lineEdit
()
->
setAlignment
(
Qt
::
AlignRight
);
fileCombo
->
setMinimumContentsLength
(
10
);
// http://doc.qt.io/qt-5/qcombobox.html#sizeAdjustPolicy-prop
// Recommends using QComboBox::AdjustToContents, but that does not seem to
// work on Linux.
fileCombo
->
setSizeAdjustPolicy
(
QComboBox
::
AdjustToMinimumContentsLength
);
}
frame
->
setSizePolicy
(
QSizePolicy
::
Expanding
,
QSizePolicy
::
Fixed
);
fileTextWidget
->
setSizePolicy
(
QSizePolicy
::
Expanding
,
QSizePolicy
::
Fixed
);
...
...
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