Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpenBoard
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lifo
Nicolas Ollinger
OpenBoard
Commits
60f485f9
Commit
60f485f9
authored
Jan 13, 2012
by
shibakaneki
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'Bett-2012' of github.com:Sankore/Sankore-3.1 into Bett-2012
parents
ff7fe04f
f8cbf421
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
10 deletions
+7
-10
UBWidgetList.cpp
src/customWidgets/UBWidgetList.cpp
+7
-10
No files found.
src/customWidgets/UBWidgetList.cpp
View file @
60f485f9
...
@@ -81,18 +81,15 @@ int UBWidgetList::scaleWidgets(QSize pSize)
...
@@ -81,18 +81,15 @@ int UBWidgetList::scaleWidgets(QSize pSize)
scaleFactor
=
(
float
)
mWidgetInfo
[
eachWidget
].
width
()
/
(
float
)
pSize
.
width
();
scaleFactor
=
(
float
)
mWidgetInfo
[
eachWidget
].
width
()
/
(
float
)
pSize
.
width
();
newWidgetHeight
=
mWidgetInfo
[
eachWidget
].
height
()
/
scaleFactor
;
newWidgetHeight
=
mWidgetInfo
[
eachWidget
].
height
()
/
scaleFactor
;
result
+=
newWidgetHeight
;
result
+=
newWidgetHeight
;
eachWidget
->
setMinimumHeight
(
newWidgetHeight
-
1
);
eachWidget
->
setMaximumHeight
(
newWidgetHeight
);
}
}
else
{
else
{
if
(
eWidgetListOrientation_Vertical
==
mOrientation
){
scaleFactor
=
(
float
)
mWidgetInfo
[
eachWidget
].
height
()
/
(
float
)
pSize
.
height
();
result
+=
mWidgetInfo
[
eachWidget
].
height
();
newWidgetWidth
=
mWidgetInfo
[
eachWidget
].
width
()
/
scaleFactor
;
eachWidget
->
setMinimumHeight
(
mWidgetInfo
[
eachWidget
].
height
());
result
+=
newWidgetWidth
;
eachWidget
->
setMaximumHeight
(
mWidgetInfo
[
eachWidget
].
height
()
+
1
);
eachWidget
->
setMinimumWidth
(
newWidgetWidth
-
1
);
}
eachWidget
->
setMaximumWidth
(
newWidgetWidth
);
else
{
result
+=
mWidgetInfo
[
eachWidget
].
width
();
eachWidget
->
setMinimumWidth
(
mWidgetInfo
[
eachWidget
].
width
());
eachWidget
->
setMaximumWidth
(
mWidgetInfo
[
eachWidget
].
width
()
+
1
);
}
}
}
//Adding a vertical/horizontal space between each element of the list
//Adding a vertical/horizontal space between each element of the list
result
+=
mListElementsSpacing
;
result
+=
mListElementsSpacing
;
...
...
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