From b089aa1852dd529f4701e0b0c8091c217cc30570 Mon Sep 17 00:00:00 2001 From: Nodir Temirkhodjaev Date: Sat, 28 Oct 2017 09:57:49 +0500 Subject: [PATCH] UI: TextContextMenu: Add icons. --- src/ui/fort_images.qrc | 4 ++++ src/ui/images/cut.png | Bin 0 -> 648 bytes src/ui/images/page_copy.png | Bin 0 -> 663 bytes src/ui/images/page_paste.png | Bin 0 -> 703 bytes src/ui/images/page_white.png | Bin 0 -> 294 bytes src/ui/qml/controls/TextContextMenu.qml | 4 ++++ 6 files changed, 8 insertions(+) create mode 100644 src/ui/images/cut.png create mode 100644 src/ui/images/page_copy.png create mode 100644 src/ui/images/page_paste.png create mode 100644 src/ui/images/page_white.png diff --git a/src/ui/fort_images.qrc b/src/ui/fort_images.qrc index af967d44..992eff39 100644 --- a/src/ui/fort_images.qrc +++ b/src/ui/fort_images.qrc @@ -6,7 +6,11 @@ images/clock.png images/cog.png images/cross.png + images/cut.png images/link.png + images/page_copy.png + images/page_paste.png + images/page_white.png images/run.png images/shield.png images/zoom.png diff --git a/src/ui/images/cut.png b/src/ui/images/cut.png new file mode 100644 index 0000000000000000000000000000000000000000..f215d6f6b7c81ab344a3e53e0e5e756c58c82d90 GIT binary patch literal 648 zcmV;30(bq1P)Sxb0Y6MkDSd{nPwTp^L>b`TxVmKBiF^NLQ>My+_!0?|)hBPe_#}P$?rlUF;M20U z`oNWE|K(DrsR+gN%g)?+`OfqmmmiA8O_U(YfPnV(E$8mN{jZQVJ-L7LxzmTQJ^!PS zHqDyoKn&^H)Oq>Q$Nzns&wsn~^6P)|vPC&W#R9Kw95|FC`?q!91!~-K_R;^uDLWSs zj7A}sG%2IZxvQP(HeS-nn71T-`ku2F9(?#8KXKbp!Qe&~yaot4r%3=c-cDF`=YPn& z3!hUrzxqFO*Ny)VU;p?Y-nniMuVuI+UIUD>=B$ZZdhM^2Z-JeJcbDl-H)3?9>AG_?ve_7A86r2Wlb?y7)ShoTkzeah}rl)Oq{=a0=sekDkpZ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2R1|&J z0VPEwJ9?!n`o5PKAjc->P1Gi8BY*%!5&FVp=#)$mMJYul1Jton}gujiUf??eOy!x&!tsjxy;=Q3_DdcXx=a^OBhW0N~`A@4xB0a*%F? l+@c^sQA%W+?pa#c`9H5UNfS6T{e=Jk002ovPDHLkV1grvM=byV literal 0 HcmV?d00001 diff --git a/src/ui/images/page_white.png b/src/ui/images/page_white.png new file mode 100644 index 0000000000000000000000000000000000000000..8b8b1ca0000bc8fa8d0379926736029f8fabe364 GIT binary patch literal 294 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!60wlNoGJgf6SkfJR9T^zbpD<_bdI{u9mbgZg z1m~xflqVLYGB~E>C#5QQ<|d}62BjvZR2H60wE-&H;pyTSqH(@-Vl>|&1p(LP>kg~E zYiz5X^`c$+%8#zC{u)yfe-5 zmgid={Z3k(ERKCKrE7DF;=x4^O+ pzO8rLO8p|Ip=x)jHOtWj`bJBmKdh_V<`47(gQu&X%Q~loCIFbEay|e6 literal 0 HcmV?d00001 diff --git a/src/ui/qml/controls/TextContextMenu.qml b/src/ui/qml/controls/TextContextMenu.qml index 79f98eb7..ab40ca92 100644 --- a/src/ui/qml/controls/TextContextMenu.qml +++ b/src/ui/qml/controls/TextContextMenu.qml @@ -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