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
Merge requests
!31
QDS-11655
Implement drawer menu
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
QDS-11655
Implement drawer menu
QDS-11655/implement-drawer-menu
into
master
Overview
0
Commits
1
Pipelines
2
Changes
1
Merged
Burak Hançerli
requested to merge
QDS-11655/implement-drawer-menu
into
master
1 year ago
Overview
0
Commits
1
Pipelines
2
Changes
1
Expand
This MR brings the following features;
Move the bottom menu to a new drawer menu on the left.
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
546e1e39
1 commit,
1 year ago
1 file
+
122
−
122
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
ui/main.qml
+
122
−
122
Options
@@ -82,14 +82,13 @@ Rectangle {
id
:
stackLayout
anchors.left
:
parent
.
left
anchors.right
:
parent
.
right
anchors.bottom
:
navFooter
.
top
anchors.bottomMargin
:
10
anchors.top
:
qdsicon1
.
bottom
anchors.bottom
:
root
.
bottom
anchors.rightMargin
:
20
anchors.leftMargin
:
20
anchors.topMargin
:
10
HomePage
{
id
:
homePage
Layout.fillWidth
:
true
@@ -120,128 +119,8 @@ Rectangle {
id
:
headerPage
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
:
[
State
{
name
:
"
vertical
"
@@ -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
();
}
}
}
}
Loading