Improve NagScreen
This commit is contained in:
parent
e6d3d92241
commit
7f6d036852
8 changed files with 89 additions and 2 deletions
10
qml/components/Clipper.qml
Normal file
10
qml/components/Clipper.qml
Normal 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"))
|
||||||
|
}
|
||||||
|
}
|
|
@ -36,7 +36,7 @@ Page {
|
||||||
selectAll()
|
selectAll()
|
||||||
copy()
|
copy()
|
||||||
deselect()
|
deselect()
|
||||||
notifier.notify("Copied to clipboard")
|
notifier.notify(qsTr("Copied to clipboard"))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in a new issue