Core: New "Replace" icon

HighDPI capable and themable.

Change-Id: I12b598a081f2ed30dd31b138fd605e71b6f28c20
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
Alessandro Portale
2016-06-10 16:35:53 +02:00
committed by Alessandro Portale
parent 4d1918c93f
commit 4cb94be1b5
10 changed files with 57 additions and 2 deletions

View File

@@ -26,6 +26,8 @@
#include "variablechooser.h"
#include "coreconstants.h"
#include <coreplugin/coreicons.h>
#include <utils/fancylineedit.h> // IconButton
#include <utils/headerviewstretcher.h> // IconButton
#include <utils/macroexpander.h>
@@ -87,7 +89,7 @@ public:
void createIconButton()
{
m_iconButton = new IconButton;
m_iconButton->setPixmap(QPixmap(QLatin1String(":/core/images/replace.png")));
m_iconButton->setPixmap(Core::Icons::REPLACE.pixmap());
m_iconButton->setToolTip(VariableChooser::tr("Insert Variable"));
m_iconButton->hide();
connect(m_iconButton.data(), static_cast<void(QAbstractButton::*)(bool)>(&QAbstractButton::clicked),