Improve NagScreen

This commit is contained in:
Anton Thomasson 2020-08-09 19:25:54 +02:00
parent e6d3d92241
commit 7f6d036852
8 changed files with 89 additions and 2 deletions

View file

@ -0,0 +1,10 @@
import QtQuick 2.0
import Sailfish.Silica 1.0
MouseArea {
anchors.fill: parent
onPressAndHold: {
Clipboard.text = parent.text
notifier.notify(qsTr("Copied to clipboard"))
}
}

View file

@ -36,7 +36,7 @@ Page {
selectAll() selectAll()
copy() copy()
deselect() deselect()
notifier.notify("Copied to clipboard") notifier.notify(qsTr("Copied to clipboard"))
} }
} }
} }

View file

@ -1,5 +1,6 @@
import QtQuick 2.0 import QtQuick 2.0
import Sailfish.Silica 1.0 import Sailfish.Silica 1.0
import "../components"
Page { Page {
backNavigation: false backNavigation: false
@ -44,6 +45,8 @@ Page {
font.family: "monospace" font.family: "monospace"
text: "devel-su" text: "devel-su"
Clipper {}
} }
Label { Label {
@ -59,9 +62,13 @@ Page {
font.family: "monospace" font.family: "monospace"
text: "pkcon install poppler-utils" text: "pkcon install poppler-utils"
Clipper {}
} }
Item{} Item{
width: parent.width
height: Theme.itemSizeMedium
}
Button { Button {
anchors.horizontalCenter: parent.horizontalCenter anchors.horizontalCenter: parent.horizontalCenter

View file

@ -122,6 +122,13 @@
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
</context> </context>
<context>
<name>Clipper</name>
<message>
<source>Copied to clipboard</source>
<translation type="unfinished"></translation>
</message>
</context>
<context> <context>
<name>ConvertWorker</name> <name>ConvertWorker</name>
<message> <message>
@ -160,6 +167,13 @@
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
</context> </context>
<context>
<name>DebugPage</name>
<message>
<source>Copied to clipboard</source>
<translation type="unfinished"></translation>
</message>
</context>
<context> <context>
<name>FirstPage</name> <name>FirstPage</name>
<message> <message>

View file

@ -122,6 +122,13 @@
<translation>Desconocido</translation> <translation>Desconocido</translation>
</message> </message>
</context> </context>
<context>
<name>Clipper</name>
<message>
<source>Copied to clipboard</source>
<translation type="unfinished"></translation>
</message>
</context>
<context> <context>
<name>ConvertWorker</name> <name>ConvertWorker</name>
<message> <message>
@ -160,6 +167,13 @@
<translation>SeaPrint</translation> <translation>SeaPrint</translation>
</message> </message>
</context> </context>
<context>
<name>DebugPage</name>
<message>
<source>Copied to clipboard</source>
<translation type="unfinished"></translation>
</message>
</context>
<context> <context>
<name>FirstPage</name> <name>FirstPage</name>
<message> <message>

View file

@ -122,6 +122,13 @@
<translation type="unfinished">Inconnu</translation> <translation type="unfinished">Inconnu</translation>
</message> </message>
</context> </context>
<context>
<name>Clipper</name>
<message>
<source>Copied to clipboard</source>
<translation type="unfinished"></translation>
</message>
</context>
<context> <context>
<name>ConvertWorker</name> <name>ConvertWorker</name>
<message> <message>
@ -160,6 +167,13 @@
<translation>SeaPrint</translation> <translation>SeaPrint</translation>
</message> </message>
</context> </context>
<context>
<name>DebugPage</name>
<message>
<source>Copied to clipboard</source>
<translation type="unfinished"></translation>
</message>
</context>
<context> <context>
<name>FirstPage</name> <name>FirstPage</name>
<message> <message>

View file

@ -122,6 +122,13 @@
<translation></translation> <translation></translation>
</message> </message>
</context> </context>
<context>
<name>Clipper</name>
<message>
<source>Copied to clipboard</source>
<translation type="unfinished"></translation>
</message>
</context>
<context> <context>
<name>ConvertWorker</name> <name>ConvertWorker</name>
<message> <message>
@ -160,6 +167,13 @@
<translation>SeaPrint</translation> <translation>SeaPrint</translation>
</message> </message>
</context> </context>
<context>
<name>DebugPage</name>
<message>
<source>Copied to clipboard</source>
<translation type="unfinished"></translation>
</message>
</context>
<context> <context>
<name>FirstPage</name> <name>FirstPage</name>
<message> <message>

View file

@ -122,6 +122,13 @@
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
</context> </context>
<context>
<name>Clipper</name>
<message>
<source>Copied to clipboard</source>
<translation type="unfinished"></translation>
</message>
</context>
<context> <context>
<name>ConvertWorker</name> <name>ConvertWorker</name>
<message> <message>
@ -160,6 +167,13 @@
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
</context> </context>
<context>
<name>DebugPage</name>
<message>
<source>Copied to clipboard</source>
<translation type="unfinished"></translation>
</message>
</context>
<context> <context>
<name>FirstPage</name> <name>FirstPage</name>
<message> <message>