Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Qt UI Viewer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Jira
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
Design Studio
QML Viewer Projects
Qt UI Viewer
Commits
d7bbed05
Commit
d7bbed05
authored
1 year ago
by
Burak Hançerli
Browse files
Options
Downloads
Patches
Plain Diff
QDS-11655
Implement drawer menu
parent
9ed7ee34
No related branches found
No related tags found
1 merge request
!31
QDS-11655 Implement drawer menu
Pipeline
#66270
passed
1 year ago
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ui/main.qml
+122
-122
122 additions, 122 deletions
ui/main.qml
with
122 additions
and
122 deletions
ui/main.qml
+
122
−
122
View file @
d7bbed05
...
@@ -82,14 +82,13 @@ Rectangle {
...
@@ -82,14 +82,13 @@ Rectangle {
id
:
stackLayout
id
:
stackLayout
anchors.left
:
parent
.
left
anchors.left
:
parent
.
left
anchors.right
:
parent
.
right
anchors.right
:
parent
.
right
anchors.bottom
:
navFooter
.
top
anchors.bottomMargin
:
10
anchors.bottomMargin
:
10
anchors.top
:
qdsicon1
.
bottom
anchors.top
:
qdsicon1
.
bottom
anchors.bottom
:
root
.
bottom
anchors.rightMargin
:
20
anchors.rightMargin
:
20
anchors.leftMargin
:
20
anchors.leftMargin
:
20
anchors.topMargin
:
10
anchors.topMargin
:
10
HomePage
{
HomePage
{
id
:
homePage
id
:
homePage
Layout.fillWidth
:
true
Layout.fillWidth
:
true
...
@@ -120,128 +119,8 @@ Rectangle {
...
@@ -120,128 +119,8 @@ Rectangle {
id
:
headerPage
id
:
headerPage
Layout.fillWidth
:
true
Layout.fillWidth
:
true
}
}
}
}
Item
{
id
:
navFooter
y
:
703
height
:
97
anchors.left
:
parent
.
left
anchors.right
:
parent
.
right
anchors.bottom
:
parent
.
bottom
anchors.rightMargin
:
0
anchors.leftMargin
:
0
anchors.bottomMargin
:
0
Layout.fillHeight
:
true
Layout.fillWidth
:
true
Rectangle
{
id
:
rectangle
color
:
"
#cecece
"
anchors.fill
:
parent
RowLayout
{
id
:
row
anchors.fill
:
parent
anchors.bottomMargin
:
31
anchors.rightMargin
:
10
anchors.leftMargin
:
10
spacing
:
5
TabButton
{
id
:
home
text
:
qsTr
(
"
Home
"
)
Layout.fillWidth
:
true
checked
:
true
checkable
:
true
autoExclusive
:
true
Connections
{
target
:
home
function
onClicked
(){
stackLayout
.
currentIndex
=
0
}
}
}
TabButton
{
id
:
examples
text
:
qsTr
(
"
Examples
"
)
Layout.fillWidth
:
true
checkable
:
true
autoExclusive
:
true
Connections
{
target
:
examples
function
onClicked
(){
stackLayout
.
currentIndex
=
1
}
}
}
TabButton
{
id
:
logs
text
:
qsTr
(
"
Logs
"
)
Layout.fillWidth
:
true
checkable
:
true
autoExclusive
:
true
Connections
{
target
:
logs
function
onClicked
(){
stackLayout
.
currentIndex
=
2
}
}
}
TabButton
{
id
:
network
text
:
qsTr
(
"
Network
"
)
Layout.fillWidth
:
true
checkable
:
true
autoExclusive
:
true
visible
:
true
;
Connections
{
target
:
network
function
onClicked
(){
stackLayout
.
currentIndex
=
3
}
}
}
TabButton
{
id
:
settings
text
:
qsTr
(
"
Settings
"
)
Layout.fillWidth
:
true
checkable
:
true
autoExclusive
:
true
Connections
{
target
:
settings
function
onClicked
(){
stackLayout
.
currentIndex
=
4
}
}
}
TabButton
{
id
:
about
text
:
qsTr
(
"
About
"
)
Layout.fillWidth
:
true
checkable
:
true
autoExclusive
:
true
Connections
{
target
:
about
function
onClicked
(){
stackLayout
.
currentIndex
=
5
}
}
}
}
}
}
states
:
[
states
:
[
State
{
State
{
name
:
"
vertical
"
name
:
"
vertical
"
...
@@ -271,8 +150,129 @@ Rectangle {
...
@@ -271,8 +150,129 @@ Rectangle {
]
]
Drawer
{
id
:
drawer
width
:
150
height
:
root
.
height
ColumnLayout
{
id
:
column
anchors.fill
:
parent
anchors.bottomMargin
:
31
anchors.rightMargin
:
10
anchors.leftMargin
:
10
spacing
:
5
Image
{
id
:
qdsicon2
source
:
"
content/images/appicon.png
"
sourceSize.width
:
drawer
.
width
/
2
anchors.horizontalCenter
:
parent
.
horizontalCenter
}
TabButton
{
id
:
home
text
:
qsTr
(
"
Home
"
)
Layout.fillWidth
:
true
checked
:
true
checkable
:
true
autoExclusive
:
true
Connections
{
target
:
home
function
onClicked
(){
stackLayout
.
currentIndex
=
0
}
}
}
TabButton
{
id
:
examples
text
:
qsTr
(
"
Examples
"
)
Layout.fillWidth
:
true
checkable
:
true
autoExclusive
:
true
Connections
{
target
:
examples
function
onClicked
(){
stackLayout
.
currentIndex
=
1
}
}
}
TabButton
{
id
:
logs
text
:
qsTr
(
"
Logs
"
)
Layout.fillWidth
:
true
checkable
:
true
autoExclusive
:
true
Connections
{
target
:
logs
function
onClicked
(){
stackLayout
.
currentIndex
=
2
}
}
}
TabButton
{
id
:
network
text
:
qsTr
(
"
Network
"
)
Layout.fillWidth
:
true
checkable
:
true
autoExclusive
:
true
visible
:
true
;
Connections
{
target
:
network
function
onClicked
(){
stackLayout
.
currentIndex
=
3
}
}
}
TabButton
{
id
:
settings
text
:
qsTr
(
"
Settings
"
)
Layout.fillWidth
:
true
checkable
:
true
autoExclusive
:
true
Connections
{
target
:
settings
function
onClicked
(){
stackLayout
.
currentIndex
=
4
}
}
}
TabButton
{
id
:
about
text
:
qsTr
(
"
About
"
)
Layout.fillWidth
:
true
checkable
:
true
autoExclusive
:
true
Connections
{
target
:
about
function
onClicked
(){
stackLayout
.
currentIndex
=
5
}
}
}
}
}
Button
{
id
:
menuButon
x
:
8
y
:
8
text
:
qsTr
(
"
Menu
"
)
Connections
{
target
:
menuButon
function
onClicked
(){
drawer
.
open
();
}
}
}
}
}
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