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
a179a9ae
Commit
a179a9ae
authored
1 year ago
by
Andreas Traczyk
Browse files
Options
Downloads
Patches
Plain Diff
settings: fix item item visibility
Gitlab:
#1127
Change-Id: I447adb4b9d62eae4d21b6d886dba86f05dbc3fde
parent
193b125c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/app/settingsview/SettingsSidePanel.qml
+24
-13
24 additions, 13 deletions
src/app/settingsview/SettingsSidePanel.qml
with
24 additions
and
13 deletions
src/app/settingsview/SettingsSidePanel.qml
+
24
−
13
View file @
a179a9ae
...
...
@@ -114,8 +114,16 @@ SidePanelBase {
function
updateModel
()
{
if
(
visible
)
{
listView
.
model
=
{}
listView
.
model
=
getHeaders
()
listView
.
model
=
{};
listView
.
model
=
getHeaders
();
}
}
Connections
{
target
:
CurrentAccount
function
onTypeChanged
()
{
updateModel
();
}
}
...
...
@@ -123,7 +131,7 @@ SidePanelBase {
target
:
UtilsAdapter
function
onChangeLanguage
()
{
updateModel
()
updateModel
()
;
}
}
...
...
@@ -131,20 +139,20 @@ SidePanelBase {
Connections
{
target
:
JamiQmlUtils
function
onSettingsPageRequested
(
index
)
{
viewCoordinator
.
present
(
"
SettingsView
"
)
root
.
indexSelected
(
index
)
root
.
currentIndex
=
index
viewCoordinator
.
present
(
"
SettingsView
"
)
;
root
.
indexSelected
(
index
)
;
root
.
currentIndex
=
index
;
}
}
onIsSinglePaneChanged
:
{
if
(
visible
&&
!
isSinglePane
)
select
(
root
.
currentIndex
)
select
(
root
.
currentIndex
)
;
}
function
open
(
index
)
{
indexSelected
(
index
)
root
.
currentIndex
=
index
indexSelected
(
index
)
;
root
.
currentIndex
=
index
;
}
function
deselect
()
{
...
...
@@ -154,8 +162,8 @@ SidePanelBase {
function
select
(
index
)
{
if
(
!
root
.
isSinglePane
)
indexSelected
(
index
)
root
.
currentIndex
=
index
indexSelected
(
index
)
;
root
.
currentIndex
=
index
;
}
Page
{
...
...
@@ -179,9 +187,11 @@ SidePanelBase {
delegate
:
ColumnLayout
{
id
:
col
width
:
page
.
width
spacing
:
0
property
bool
isChildSelected
:
root
.
currentIndex
>=
modelData
.
first
&&
root
.
currentIndex
<=
modelData
.
last
PushButton
{
id
:
sectionHeader
buttonText
:
modelData
.
title
circled
:
false
radius
:
0
...
...
@@ -225,12 +235,13 @@ SidePanelBase {
delegate
:
ColumnLayout
{
id
:
childCol
width
:
childListView
.
width
property
bool
isSelected
:
root
.
currentIndex
==
modelData
.
id
spacing
:
0
property
bool
isSelected
:
root
.
currentIndex
===
modelData
.
id
PushButton
{
visible
:
modelData
.
visible
!==
undefined
?
modelData
.
visible
:
true
buttonText
:
modelData
.
title
circled
:
false
radius
:
0
visible
:
modelData
.
visible
?
modelData
.
visible
:
true
alignement
:
Text
.
AlignLeft
Layout.preferredWidth
:
parent
.
width
-
28
...
...
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