TextEditor: Move the fixit light bulb to Utils
Change-Id: I3128c0363737980a77fa780601f0b245d01540ad Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
Before Width: | Height: | Size: 124 B After Width: | Height: | Size: 124 B |
Before Width: | Height: | Size: 175 B After Width: | Height: | Size: 175 B |
Before Width: | Height: | Size: 119 B After Width: | Height: | Size: 119 B |
Before Width: | Height: | Size: 138 B After Width: | Height: | Size: 138 B |
@@ -203,5 +203,9 @@
|
||||
<file>images/codemodelerror@2x.png</file>
|
||||
<file>images/codemodelwarning.png</file>
|
||||
<file>images/codemodelwarning@2x.png</file>
|
||||
<file>images/lightbulb.png</file>
|
||||
<file>images/lightbulb@2x.png</file>
|
||||
<file>images/lightbulbcap.png</file>
|
||||
<file>images/lightbulbcap@2x.png</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
|
@@ -250,10 +250,9 @@ const Icon CODEMODEL_DISABLED_ERROR({
|
||||
{":/utils/images/codemodelerror.png", Theme::IconsDisabledColor}}, Icon::Tint);
|
||||
const Icon CODEMODEL_DISABLED_WARNING({
|
||||
{":/utils/images/codemodelwarning.png", Theme::IconsDisabledColor}}, Icon::Tint);
|
||||
const Icon CODEMODEL_FIXIT({{QLatin1String(":/texteditor/images/lightbulbcap.png"),
|
||||
Utils::Theme::PanelTextColorMid},
|
||||
{QLatin1String(":/texteditor/images/lightbulb.png"),
|
||||
Utils::Theme::IconsWarningColor}},
|
||||
Utils::Icon::Tint);
|
||||
const Icon CODEMODEL_FIXIT({
|
||||
{":/utils/images/lightbulbcap.png", Theme::PanelTextColorMid},
|
||||
{":/utils/images/lightbulb.png", Theme::IconsWarningColor}}, Icon::Tint);
|
||||
|
||||
} // namespace Icons
|
||||
} // namespace Utils
|
||||
|
@@ -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())
|
||||
{
|
||||
}
|
||||
|
||||
|
@@ -1,10 +1,6 @@
|
||||
<RCC>
|
||||
<qresource prefix="/texteditor">
|
||||
<file>images/finddocuments.png</file>
|
||||
<file>images/lightbulb.png</file>
|
||||
<file>images/lightbulb@2x.png</file>
|
||||
<file>images/lightbulbcap.png</file>
|
||||
<file>images/lightbulbcap@2x.png</file>
|
||||
<file>images/snippet.png</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
|
@@ -4599,7 +4599,7 @@
|
||||
</g>
|
||||
<g
|
||||
style="display:inline"
|
||||
id="src/plugins/texteditor/images/lightbulbcap"
|
||||
id="src/libs/utils/images/lightbulbcap"
|
||||
transform="translate(28,2)">
|
||||
<rect
|
||||
style="fill:#ffffff"
|
||||
@@ -4623,7 +4623,7 @@
|
||||
</g>
|
||||
<g
|
||||
style="display:inline"
|
||||
id="src/plugins/texteditor/images/lightbulb"
|
||||
id="src/libs/utils/images/lightbulb"
|
||||
transform="translate(38,2)">
|
||||
<rect
|
||||
style="fill:#ffffff"
|
||||
|
Before Width: | Height: | Size: 337 KiB After Width: | Height: | Size: 337 KiB |