UI: TextContextMenu: Add icons.

This commit is contained in:
Nodir Temirkhodjaev 2017-10-28 09:57:49 +05:00
parent 6bbefafef5
commit b089aa1852
6 changed files with 8 additions and 0 deletions

View File

@ -6,7 +6,11 @@
<file>images/clock.png</file>
<file>images/cog.png</file>
<file>images/cross.png</file>
<file>images/cut.png</file>
<file>images/link.png</file>
<file>images/page_copy.png</file>
<file>images/page_paste.png</file>
<file>images/page_white.png</file>
<file>images/run.png</file>
<file>images/shield.png</file>
<file>images/zoom.png</file>

BIN
src/ui/images/cut.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 648 B

BIN
src/ui/images/page_copy.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 663 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 703 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 294 B

View File

@ -26,18 +26,21 @@ Menu {
}
MenuItem {
icon.source: "qrc:/images/page_copy.png"
text: translationManager.dummyBool
&& qsTranslate("qml", "Copy")
enabled: textField && textField.selectedText
onTriggered: textField.copy()
}
MenuItem {
icon.source: "qrc:/images/cut.png"
text: translationManager.dummyBool
&& qsTranslate("qml", "Cut")
enabled: textField && textField.selectedText
onTriggered: textField.cut()
}
MenuItem {
icon.source: "qrc:/images/page_paste.png"
text: translationManager.dummyBool
&& qsTranslate("qml", "Paste")
enabled: textField && textField.canPaste
@ -47,6 +50,7 @@ Menu {
MenuSeparator {}
MenuItem {
icon.source: "qrc:/images/page_white.png"
text: translationManager.dummyBool
&& qsTranslate("qml", "Clear")
enabled: textField && textField.text