Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma Mobile
KRecorder
Commits
7e0d64df
Commit
7e0d64df
authored
Feb 27, 2021
by
Devin Lin
🎨
Browse files
Fix overlaysheet widths
parent
81bbe637
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/contents/ui/RecordPage.qml
View file @
7e0d64df
...
...
@@ -67,6 +67,7 @@ Kirigami.Page {
id
:
saveDialog
header
:
Kirigami.Heading
{
level
:
2
text
:
i18n
(
"
Save recording
"
)
}
...
...
@@ -78,6 +79,7 @@ Kirigami.Page {
Controls.Button
{
flat
:
false
text
:
i18nc
(
"
@action:button
"
,
"
Delete
"
)
icon.name
:
"
delete
"
Layout.alignment
:
Qt
.
AlignRight
onClicked
:
{
AudioRecorder
.
reset
()
...
...
@@ -88,6 +90,7 @@ Kirigami.Page {
Controls.Button
{
flat
:
false
text
:
i18nc
(
"
@action:button
"
,
"
Save
"
)
icon.name
:
"
dialog-ok-apply
"
Layout.alignment
:
Qt
.
AlignRight
onClicked
:
{
AudioRecorder
.
setRecordingName
(
recordingName
.
text
);
...
...
@@ -99,13 +102,17 @@ Kirigami.Page {
}
}
}
RowLayout
{
implicitWidth
:
Kirigami
.
Units
.
gridUnit
*
12
Controls.Label
{
id
:
nameLabel
Layout.alignment
:
Qt
.
AlignVCenter
text
:
i18n
(
"
Name
"
)
text
:
i18n
(
"
Name
:
"
)
}
Controls.TextField
{
id
:
recordingName
Layout.fillWidth
:
true
placeholderText
:
i18n
(
"
Name (optional)
"
)
}
}
...
...
src/contents/ui/RecordingListPage.qml
View file @
7e0d64df
...
...
@@ -32,6 +32,9 @@ Kirigami.ScrollablePage {
ListView
{
anchors.fill
:
parent
model
:
RecordingModel
// prevent default highlight
currentIndex
:
-
1
Kirigami.PlaceholderMessage
{
anchors.centerIn
:
parent
...
...
@@ -106,6 +109,7 @@ Kirigami.ScrollablePage {
Controls.Button
{
flat
:
false
text
:
i18nc
(
"
@action:button
"
,
"
Cancel
"
)
icon.name
:
"
dialog-cancel
"
Layout.alignment
:
Qt
.
AlignRight
onClicked
:
editNameDialog
.
close
();
}
...
...
@@ -113,6 +117,7 @@ Kirigami.ScrollablePage {
Controls.Button
{
flat
:
false
text
:
i18nc
(
"
@action:button
"
,
"
Done
"
)
icon.name
:
"
dialog-ok
"
Layout.alignment
:
Qt
.
AlignRight
onClicked
:
{
...
...
@@ -124,22 +129,25 @@ Kirigami.ScrollablePage {
GridLayout
{
columns
:
2
rowSpacing
:
Kirigami
.
Units
.
largeSpacing
rowSpacing
:
Kirigami
.
Units
.
largeSpacing
*
2
Kirigami.Heading
{
text
:
i18n
(
"
Name
"
)
text
:
i18n
(
"
Name
:
"
)
level
:
4
}
Controls.TextField
{
id
:
editDialogName
Layout.fillWidth
:
true
}
Kirigami.Heading
{
text
:
i18n
(
"
Location
"
)
text
:
i18n
(
"
Location
:
"
)
level
:
4
}
Controls.Label
{
id
:
editDialogLocation
Layout.fillWidth
:
true
wrapMode
:
Text
.
Wrap
}
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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