TextEditor: Move the fixit light bulb to Utils

Change-Id: I3128c0363737980a77fa780601f0b245d01540ad
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
This commit is contained in:
Alessandro Portale
2018-04-13 14:43:59 +02:00
parent 5c8844d8f7
commit f748a5b593
9 changed files with 12 additions and 15 deletions

View File

@@ -27,7 +27,7 @@
#include "textdocumentlayout.h"
#include "texteditor.h"
#include <utils/icon.h>
#include <utils/utilsicons.h>
#include <QPainter>
@@ -39,9 +39,7 @@ RefactorOverlay::RefactorOverlay(TextEditor::TextEditorWidget *editor) :
QObject(editor),
m_editor(editor),
m_maxWidth(0),
m_icon(Utils::Icon({
{QLatin1String(":/texteditor/images/lightbulbcap.png"), Utils::Theme::PanelTextColorMid},
{QLatin1String(":/texteditor/images/lightbulb.png"), Utils::Theme::IconsWarningColor}}, Utils::Icon::Tint).icon())
m_icon(Utils::Icons::CODEMODEL_FIXIT.icon())
{
}