Utils: Markdown: Use existing icons for code copy buttons

Change-Id: I6b6f6791b6b0acba56bb1e978876a65a1756e391
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
Marcus Tillmanns
2025-02-27 08:46:30 +01:00
parent 6ff359580d
commit d5b8132de6
6 changed files with 2 additions and 8 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 749 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 353 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 556 B

View File

@@ -110,8 +110,8 @@ public:
}
static QIcon icon(bool isCopied)
{
static QIcon clickedIcon(":/markdownbrowser/images/checkmark.png");
static QIcon unclickedIcon(":/markdownbrowser/images/code_copy_square.png");
static QIcon clickedIcon = Utils::Icons::OK.icon();
static QIcon unclickedIcon = Utils::Icons::COPY.icon();
if (isCopied)
return clickedIcon;
return unclickedIcon;

View File

@@ -303,10 +303,4 @@
<file>images/classrelationbackground.png</file>
<file>images/classrelationbackground@2x.png</file>
</qresource>
<qresource prefix="/markdownbrowser">
<file>images/code_copy_square.png</file>
<file>images/code_copy_square@2x.png</file>
<file>images/checkmark.png</file>
<file>images/checkmark@2x.png</file>
</qresource>
</RCC>