Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Q
qtquickcontrols-nemo
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
NemoMobile
qtquickcontrols-nemo
Commits
2862bfd7
Commit
2862bfd7
authored
Apr 03, 2017
by
Aleksi Suomalainen
Committed by
eekkelund
Jun 12, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hacks to toolbar size in mainwindow
parent
3858cd52
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
HeaderToolsLayout.qml
src/controls/HeaderToolsLayout.qml
+3
-3
No files found.
src/controls/HeaderToolsLayout.qml
View file @
2862bfd7
...
@@ -22,7 +22,8 @@ Item {
...
@@ -22,7 +22,8 @@ Item {
property
bool
isUiPortrait
:
header
&&
header
.
appWindow
.
isUiPortrait
property
bool
isUiPortrait
:
header
&&
header
.
appWindow
.
isUiPortrait
property
bool
showBackButton
:
false
property
bool
showBackButton
:
false
property
int
toolMeasure
:
parent
.
width
/
10
height
:
toolMeasure
Rectangle
{
Rectangle
{
id
:
backButton
id
:
backButton
width
:
opacity
?
size
.
dp
(
60
)
:
0
width
:
opacity
?
size
.
dp
(
60
)
:
0
...
@@ -84,13 +85,12 @@ Item {
...
@@ -84,13 +85,12 @@ Item {
anchors.rightMargin
:
size
.
dp
(
20
)
anchors.rightMargin
:
size
.
dp
(
20
)
anchors.verticalCenter
:
parent
.
verticalCenter
anchors.verticalCenter
:
parent
.
verticalCenter
width
:
tools
?
(
size
.
dp
(
50
)
*
Math
.
min
(
maxNumberOfToolButtons
,
tools
.
length
))
:
0
width
:
tools
?
(
size
.
dp
(
50
)
*
Math
.
min
(
maxNumberOfToolButtons
,
tools
.
length
))
:
0
property
int
maxNumberOfToolButtons
:
3
property
int
maxNumberOfToolButtons
:
3
RowLayout
{
RowLayout
{
id
:
toolsRow
id
:
toolsRow
anchors.centerIn
:
parent
anchors.centerIn
:
parent
height
:
toolMeasure
function
assignRotationBindings
()
{
function
assignRotationBindings
()
{
for
(
var
i
=
0
;
i
<
children
.
length
;
++
i
)
{
for
(
var
i
=
0
;
i
<
children
.
length
;
++
i
)
{
children
[
i
].
rotation
=
Qt
.
binding
(
function
()
{
return
isUiPortrait
?
0
:
90
})
children
[
i
].
rotation
=
Qt
.
binding
(
function
()
{
return
isUiPortrait
?
0
:
90
})
...
...
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