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/codemodelerror@2x.png</file>
|
||||||
<file>images/codemodelwarning.png</file>
|
<file>images/codemodelwarning.png</file>
|
||||||
<file>images/codemodelwarning@2x.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>
|
</qresource>
|
||||||
</RCC>
|
</RCC>
|
||||||
|
@@ -250,10 +250,9 @@ const Icon CODEMODEL_DISABLED_ERROR({
|
|||||||
{":/utils/images/codemodelerror.png", Theme::IconsDisabledColor}}, Icon::Tint);
|
{":/utils/images/codemodelerror.png", Theme::IconsDisabledColor}}, Icon::Tint);
|
||||||
const Icon CODEMODEL_DISABLED_WARNING({
|
const Icon CODEMODEL_DISABLED_WARNING({
|
||||||
{":/utils/images/codemodelwarning.png", Theme::IconsDisabledColor}}, Icon::Tint);
|
{":/utils/images/codemodelwarning.png", Theme::IconsDisabledColor}}, Icon::Tint);
|
||||||
const Icon CODEMODEL_FIXIT({{QLatin1String(":/texteditor/images/lightbulbcap.png"),
|
const Icon CODEMODEL_FIXIT({
|
||||||
Utils::Theme::PanelTextColorMid},
|
{":/utils/images/lightbulbcap.png", Theme::PanelTextColorMid},
|
||||||
{QLatin1String(":/texteditor/images/lightbulb.png"),
|
{":/utils/images/lightbulb.png", Theme::IconsWarningColor}}, Icon::Tint);
|
||||||
Utils::Theme::IconsWarningColor}},
|
|
||||||
Utils::Icon::Tint);
|
|
||||||
} // namespace Icons
|
} // namespace Icons
|
||||||
} // namespace Utils
|
} // namespace Utils
|
||||||
|
@@ -27,7 +27,7 @@
|
|||||||
#include "textdocumentlayout.h"
|
#include "textdocumentlayout.h"
|
||||||
#include "texteditor.h"
|
#include "texteditor.h"
|
||||||
|
|
||||||
#include <utils/icon.h>
|
#include <utils/utilsicons.h>
|
||||||
|
|
||||||
#include <QPainter>
|
#include <QPainter>
|
||||||
|
|
||||||
@@ -39,9 +39,7 @@ RefactorOverlay::RefactorOverlay(TextEditor::TextEditorWidget *editor) :
|
|||||||
QObject(editor),
|
QObject(editor),
|
||||||
m_editor(editor),
|
m_editor(editor),
|
||||||
m_maxWidth(0),
|
m_maxWidth(0),
|
||||||
m_icon(Utils::Icon({
|
m_icon(Utils::Icons::CODEMODEL_FIXIT.icon())
|
||||||
{QLatin1String(":/texteditor/images/lightbulbcap.png"), Utils::Theme::PanelTextColorMid},
|
|
||||||
{QLatin1String(":/texteditor/images/lightbulb.png"), Utils::Theme::IconsWarningColor}}, Utils::Icon::Tint).icon())
|
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -1,10 +1,6 @@
|
|||||||
<RCC>
|
<RCC>
|
||||||
<qresource prefix="/texteditor">
|
<qresource prefix="/texteditor">
|
||||||
<file>images/finddocuments.png</file>
|
<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>
|
<file>images/snippet.png</file>
|
||||||
</qresource>
|
</qresource>
|
||||||
</RCC>
|
</RCC>
|
||||||
|
@@ -4599,7 +4599,7 @@
|
|||||||
</g>
|
</g>
|
||||||
<g
|
<g
|
||||||
style="display:inline"
|
style="display:inline"
|
||||||
id="src/plugins/texteditor/images/lightbulbcap"
|
id="src/libs/utils/images/lightbulbcap"
|
||||||
transform="translate(28,2)">
|
transform="translate(28,2)">
|
||||||
<rect
|
<rect
|
||||||
style="fill:#ffffff"
|
style="fill:#ffffff"
|
||||||
@@ -4623,7 +4623,7 @@
|
|||||||
</g>
|
</g>
|
||||||
<g
|
<g
|
||||||
style="display:inline"
|
style="display:inline"
|
||||||
id="src/plugins/texteditor/images/lightbulb"
|
id="src/libs/utils/images/lightbulb"
|
||||||
transform="translate(38,2)">
|
transform="translate(38,2)">
|
||||||
<rect
|
<rect
|
||||||
style="fill:#ffffff"
|
style="fill:#ffffff"
|
||||||
|
Before Width: | Height: | Size: 337 KiB After Width: | Height: | Size: 337 KiB |