Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
Kalendar
Commits
1f07c493
Commit
1f07c493
authored
Sep 19, 2022
by
Claudio Cambra
Browse files
Fix indentation
Signed-off-by:
Claudio Cambra
<
claudio.cambra@gmail.com
>
parent
b06d5126
Pipeline
#234248
passed with stage
in 2 minutes
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/contents/ui/Settings/SourceSettingsPage.qml
View file @
1f07c493
...
...
@@ -14,30 +14,30 @@ Kirigami.ScrollablePage {
title
:
i18n
(
"
Accounts
"
)
ColumnLayout
{
AgentConfigurationForm
{
AgentConfigurationForm
{
mimetypes
:
[
MimeTypes
.
calendar
,
MimeTypes
.
todo
]
title
:
i18n
(
"
Calendars
"
)
addPageTitle
:
i18n
(
"
Add New Calendar Source…
"
)
Layout.fillWidth
:
true
Layout.topMargin
:
Kirigami
.
Units
.
largeSpacing
}
}
AgentConfigurationForm
{
AgentConfigurationForm
{
mimetypes
:
[
MimeTypes
.
contactGroup
,
MimeTypes
.
address
]
title
:
i18n
(
"
Contact Books
"
)
addPageTitle
:
i18n
(
"
Add New Address Book Source…
"
)
Layout.fillWidth
:
true
Layout.topMargin
:
Kirigami
.
Units
.
largeSpacing
}
}
// TODO actually we should show identity instead as an identity contains a receiving and sending account
AgentConfigurationForm
{
// TODO actually we should show identity instead as an identity contains a receiving and sending account
AgentConfigurationForm
{
visible
:
Config
.
enableMailIntegration
mimetypes
:
[
MimeTypes
.
mail
]
title
:
i18n
(
"
Mail Accounts
"
)
addPageTitle
:
i18n
(
"
Add New mail account…
"
)
Layout.fillWidth
:
true
Layout.topMargin
:
Kirigami
.
Units
.
largeSpacing
}
}
}
}
src/quick/qml/AgentConfigurationForm.qml
View file @
1f07c493
...
...
@@ -16,99 +16,99 @@ MobileForm.FormCard {
required
property
string
addPageTitle
readonly
property
AgentConfiguration
_configuration
:
AgentConfiguration
{
mimetypes
:
root
.
mimetypes
mimetypes
:
root
.
mimetypes
}
contentItem
:
ColumnLayout
{
spacing
:
0
MobileForm.FormCardHeader
{
title
:
root
.
title
}
Repeater
{
model
:
root
.
_configuration
.
runningAgents
delegate
:
MobileForm.FormButtonDelegate
{
Loader
{
id
:
dialogLoader
sourceComponent
:
Kirigami.PromptDialog
{
id
:
dialog
title
:
i18n
(
"
Configure %1
"
,
model
.
display
)
subtitle
:
i18n
(
"
Modify or delete this account agent.
"
)
standardButtons
:
Kirigami
.
Dialog
.
NoButton
customFooterActions
:
[
Kirigami.Action
{
text
:
i18n
(
"
Modify
"
)
iconName
:
"
edit-entry
"
onTriggered
:
{
root
.
_configuration
.
edit
(
model
.
index
);
dialog
.
close
();
}
},
Kirigami.Action
{
text
:
i18n
(
"
Delete
"
)
iconName
:
"
delete
"
onTriggered
:
{
root
.
_configuration
.
remove
(
model
.
index
);
dialog
.
close
();
}
}
]
}
}
onClicked
:
{
dialogLoader
.
active
=
true
;
dialogLoader
.
item
.
open
();
}
contentItem
:
RowLayout
{
Kirigami.Icon
{
source
:
model
.
decoration
Layout.rightMargin
:
Kirigami
.
Units
.
largeSpacing
implicitWidth
:
Kirigami
.
Units
.
iconSizes
.
medium
implicitHeight
:
Kirigami
.
Units
.
iconSizes
.
medium
}
ColumnLayout
{
Layout.fillWidth
:
true
spacing
:
Kirigami
.
Units
.
smallSpacing
QQC2.Label
{
Layout.fillWidth
:
true
text
:
model
.
display
elide
:
Text
.
ElideRight
wrapMode
:
Text
.
Wrap
maximumLineCount
:
2
color
:
Kirigami
.
Theme
.
textColor
}
QQC2.Label
{
Layout.fillWidth
:
true
text
:
model
.
statusMessage
color
:
Kirigami
.
Theme
.
disabledTextColor
font
:
Kirigami
.
Theme
.
smallFont
elide
:
Text
.
ElideRight
}
}
MobileForm.FormArrow
{
Layout.alignment
:
Qt
.
AlignRight
|
Qt
.
AlignVCenter
direction
:
MobileForm
.
FormArrow
.
Right
}
}
}
}
MobileForm.FormDelegateSeparator
{
below
:
addAccountDelegate
}
MobileForm.FormButtonDelegate
{
id
:
addAccountDelegate
text
:
i18n
(
"
Add Account
"
)
icon.name
:
"
list-add
"
onClicked
:
pageStack
.
pushDialogLayer
(
addAccountPage
)
}
spacing
:
0
MobileForm.FormCardHeader
{
title
:
root
.
title
}
Repeater
{
model
:
root
.
_configuration
.
runningAgents
delegate
:
MobileForm.FormButtonDelegate
{
Loader
{
id
:
dialogLoader
sourceComponent
:
Kirigami.PromptDialog
{
id
:
dialog
title
:
i18n
(
"
Configure %1
"
,
model
.
display
)
subtitle
:
i18n
(
"
Modify or delete this account agent.
"
)
standardButtons
:
Kirigami
.
Dialog
.
NoButton
customFooterActions
:
[
Kirigami.Action
{
text
:
i18n
(
"
Modify
"
)
iconName
:
"
edit-entry
"
onTriggered
:
{
root
.
_configuration
.
edit
(
model
.
index
);
dialog
.
close
();
}
},
Kirigami.Action
{
text
:
i18n
(
"
Delete
"
)
iconName
:
"
delete
"
onTriggered
:
{
root
.
_configuration
.
remove
(
model
.
index
);
dialog
.
close
();
}
}
]
}
}
onClicked
:
{
dialogLoader
.
active
=
true
;
dialogLoader
.
item
.
open
();
}
contentItem
:
RowLayout
{
Kirigami.Icon
{
source
:
model
.
decoration
Layout.rightMargin
:
Kirigami
.
Units
.
largeSpacing
implicitWidth
:
Kirigami
.
Units
.
iconSizes
.
medium
implicitHeight
:
Kirigami
.
Units
.
iconSizes
.
medium
}
ColumnLayout
{
Layout.fillWidth
:
true
spacing
:
Kirigami
.
Units
.
smallSpacing
QQC2.Label
{
Layout.fillWidth
:
true
text
:
model
.
display
elide
:
Text
.
ElideRight
wrapMode
:
Text
.
Wrap
maximumLineCount
:
2
color
:
Kirigami
.
Theme
.
textColor
}
QQC2.Label
{
Layout.fillWidth
:
true
text
:
model
.
statusMessage
color
:
Kirigami
.
Theme
.
disabledTextColor
font
:
Kirigami
.
Theme
.
smallFont
elide
:
Text
.
ElideRight
}
}
MobileForm.FormArrow
{
Layout.alignment
:
Qt
.
AlignRight
|
Qt
.
AlignVCenter
direction
:
MobileForm
.
FormArrow
.
Right
}
}
}
}
MobileForm.FormDelegateSeparator
{
below
:
addAccountDelegate
}
MobileForm.FormButtonDelegate
{
id
:
addAccountDelegate
text
:
i18n
(
"
Add Account
"
)
icon.name
:
"
list-add
"
onClicked
:
pageStack
.
pushDialogLayer
(
addAccountPage
)
}
}
Component
{
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment