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
89f37041
Commit
89f37041
authored
3 years ago
by
Sébastien Blin
Committed by
Kateryna Kostiuk
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
pluginview: use ToggleSwitch to homogeneize style
Change-Id: I9c3a0e146173c16414e000080086c805cbbd6c95 GitLab:
#601
parent
d82e3820
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/commoncomponents/PreferenceItemDelegate.qml
+3
-2
3 additions, 2 deletions
src/commoncomponents/PreferenceItemDelegate.qml
src/settingsview/components/PluginItemDelegate.qml
+2
-21
2 additions, 21 deletions
src/settingsview/components/PluginItemDelegate.qml
with
5 additions
and
23 deletions
src/commoncomponents/PreferenceItemDelegate.qml
+
3
−
2
View file @
89f37041
...
...
@@ -25,6 +25,7 @@ import net.jami.Adapters 1.1
import
net
.
jami
.
Constants
1.1
import
"
../commoncomponents
"
import
"
../settingsview/components
"
ItemDelegate
{
id
:
root
...
...
@@ -130,7 +131,7 @@ ItemDelegate {
opacity
:
enabled
?
1.0
:
0.5
}
Switch
{
Toggle
Switch
{
id
:
btnPreferenceSwitch
visible
:
preferenceType
===
PreferenceItemDelegate
.
SWITCH
...
...
@@ -140,7 +141,7 @@ ItemDelegate {
Layout.preferredWidth
:
30
checked
:
preferenceCurrentValue
===
"
1
"
onToggled
:
getNewPreferenceValueSlot
(
checked
)
on
Switch
Toggled
:
getNewPreferenceValueSlot
(
checked
)
opacity
:
enabled
?
1.0
:
0.5
}
...
...
This diff is collapsed.
Click to expand it.
src/settingsview/components/PluginItemDelegate.qml
+
2
−
21
View file @
89f37041
...
...
@@ -94,7 +94,7 @@ ItemDelegate {
verticalAlignment
:
Text
.
AlignVCenter
}
Switch
{
Toggle
Switch
{
id
:
loadSwitch
Layout.fillHeight
:
true
property
bool
isHovering
:
false
...
...
@@ -106,29 +106,10 @@ ItemDelegate {
ToolTip.text
:
qsTr
(
"
Load/Unload
"
)
checked
:
isLoaded
on
Click
ed
:
{
on
SwitchToggl
ed
:
{
btnLoadPluginToggled
()
pluginListPreferencesView
.
isLoaded
=
root
.
isLoaded
}
background
:
Rectangle
{
id
:
switchBackground
color
:
"
transparent
"
MouseArea
{
id
:
btnMouseArea
hoverEnabled
:
true
onReleased
:
{
loadSwitch
.
clicked
()
}
onEntered
:
{
loadSwitch
.
isHovering
=
true
}
onExited
:
{
loadSwitch
.
isHovering
=
false
}
}
}
}
PushButton
{
...
...
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