Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
otb
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
David Youssefi
otb
Commits
7ee15d99
Commit
7ee15d99
authored
13 years ago
by
Cyrille Valladeau
Browse files
Options
Downloads
Patches
Plain Diff
ENH: no more general scroll widget
parent
ce5952f2
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Code/Wrappers/QtWidget/otbWrapperQtWidgetView.cxx
+11
-12
11 additions, 12 deletions
Code/Wrappers/QtWidget/otbWrapperQtWidgetView.cxx
with
11 additions
and
12 deletions
Code/Wrappers/QtWidget/otbWrapperQtWidgetView.cxx
+
11
−
12
View file @
7ee15d99
...
...
@@ -68,25 +68,24 @@ void QtWidgetView::CreateGui()
QGroupBox
*
mainGroup
=
new
QGroupBox
();
mainGroup
->
setLayout
(
mainLayout
);
// Put the main group inside a scroll area
QScrollArea
*
scrollArea
=
new
QScrollArea
;
scrollArea
->
setWidget
(
mainGroup
);
scrollArea
->
setHorizontalScrollBarPolicy
(
Qt
::
ScrollBarAsNeeded
);
scrollArea
->
setVerticalScrollBarPolicy
(
Qt
::
ScrollBarAsNeeded
);
scrollArea
->
setWidgetResizable
(
true
);
QVBoxLayout
*
scrollLayout
=
new
QVBoxLayout
();
scrollLayout
->
addWidget
(
scrollArea
);
QVBoxLayout
*
mainLayout
=
new
QVBoxLayout
();
mainLayout
->
addWidget
(
mainGroup
);
// Make the scroll layout the main layout
this
->
setLayout
(
scroll
Layout
);
this
->
setLayout
(
main
Layout
);
}
QWidget
*
QtWidgetView
::
CreateInputWidgets
()
{
QtWidgetParameterBase
*
params
=
QtWidgetParameterFactory
::
CreateQtWidget
(
m_Model
->
GetApplication
()
->
GetParameterList
(),
m_Model
);
return
params
;
QScrollArea
*
scrollArea
=
new
QScrollArea
;
// Put the main group inside a scroll area
scrollArea
->
setWidget
(
QtWidgetParameterFactory
::
CreateQtWidget
(
m_Model
->
GetApplication
()
->
GetParameterList
(),
m_Model
));
scrollArea
->
setHorizontalScrollBarPolicy
(
Qt
::
ScrollBarAsNeeded
);
scrollArea
->
setVerticalScrollBarPolicy
(
Qt
::
ScrollBarAsNeeded
);
scrollArea
->
setWidgetResizable
(
true
);
return
scrollArea
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment