forked from qt-creator/qt-creator
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:
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 |
@@ -110,8 +110,8 @@ public:
|
|||||||
}
|
}
|
||||||
static QIcon icon(bool isCopied)
|
static QIcon icon(bool isCopied)
|
||||||
{
|
{
|
||||||
static QIcon clickedIcon(":/markdownbrowser/images/checkmark.png");
|
static QIcon clickedIcon = Utils::Icons::OK.icon();
|
||||||
static QIcon unclickedIcon(":/markdownbrowser/images/code_copy_square.png");
|
static QIcon unclickedIcon = Utils::Icons::COPY.icon();
|
||||||
if (isCopied)
|
if (isCopied)
|
||||||
return clickedIcon;
|
return clickedIcon;
|
||||||
return unclickedIcon;
|
return unclickedIcon;
|
||||||
|
@@ -303,10 +303,4 @@
|
|||||||
<file>images/classrelationbackground.png</file>
|
<file>images/classrelationbackground.png</file>
|
||||||
<file>images/classrelationbackground@2x.png</file>
|
<file>images/classrelationbackground@2x.png</file>
|
||||||
</qresource>
|
</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>
|
</RCC>
|
||||||
|
Reference in New Issue
Block a user