Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-client-qt
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
savoirfairelinux
jami-client-qt
Commits
8f7891d0
Commit
8f7891d0
authored
2 years ago
by
Andreas Traczyk
Committed by
Sébastien Blin
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
debug: fix tag and constraints for Scaffold components
Change-Id: Ic83ec55631e9a914a53869f112032f3459b2e1c7
parent
4245c13a
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
src/app/commoncomponents/Scaffold.qml
+11
-3
11 additions, 3 deletions
src/app/commoncomponents/Scaffold.qml
with
11 additions
and
3 deletions
src/app/commoncomponents/Scaffold.qml
+
11
−
3
View file @
8f7891d0
...
@@ -18,12 +18,13 @@
...
@@ -18,12 +18,13 @@
import
QtQuick
import
QtQuick
import
QtQuick
.
Controls
import
QtQuick
.
Controls
import
QtQuick
.
Layouts
// UI dev tool to visualize components/layouts
// UI dev tool to visualize components/layouts
Rectangle
{
Rectangle
{
property
alias
name
:
label
.
text
property
alias
name
:
label
.
text
property
bool
stretchParent
:
false
property
bool
stretchParent
:
false
property
string
tag
:
this
.
toString
()
property
string
tag
:
parent
.
toString
()
signal
moveX
(
real
dx
)
signal
moveX
(
real
dx
)
signal
moveY
(
real
dy
)
signal
moveY
(
real
dy
)
property
real
ox
:
0
property
real
ox
:
0
...
@@ -37,7 +38,9 @@ Rectangle {
...
@@ -37,7 +38,9 @@ Rectangle {
var
b
=
Math
.
random
()
*
0.5
+
0.5
;
var
b
=
Math
.
random
()
*
0.5
+
0.5
;
Qt
.
rgba
(
r
,
g
,
b
,
0.5
);
Qt
.
rgba
(
r
,
g
,
b
,
0.5
);
}
}
anchors.fill
:
parent
anchors.fill
:
parent
instanceof
Layout
?
undefined
:
parent
focus
:
false
focus
:
false
Keys.onPressed
:
{
Keys.onPressed
:
{
if
(
event
.
key
===
Qt
.
Key_Left
)
if
(
event
.
key
===
Qt
.
Key_Left
)
...
@@ -53,9 +56,14 @@ Rectangle {
...
@@ -53,9 +56,14 @@ Rectangle {
}
}
Component.onCompleted
:
{
Component.onCompleted
:
{
if
(
parent
instanceof
Layout
)
{
width
=
Qt
.
binding
(()
=>
{
return
parent
.
width
})
height
=
Qt
.
binding
(()
=>
{
return
parent
.
height
})
}
// fallback to some description of the object
// fallback to some description of the object
if
(
label
.
text
===
""
)
if
(
label
.
text
===
""
)
label
.
text
=
t
his
.
toString
()
;
label
.
text
=
t
ag
;
// force the parent to be at least the dimensions of children
// force the parent to be at least the dimensions of children
if
(
stretchParent
)
{
if
(
stretchParent
)
{
...
...
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