forked from qt-creator/qt-creator
Move icons to Utils
This way we can use them from libraries, not only from plugins. Change-Id: Ic35cfd5f04d638d87606bf272b2c00ded1267c1b Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
@@ -45,7 +45,6 @@
|
||||
|
||||
#include <coreplugin/icore.h>
|
||||
#include <coreplugin/coreconstants.h>
|
||||
#include <coreplugin/coreicons.h>
|
||||
#include <coreplugin/documentmanager.h>
|
||||
#include <coreplugin/actionmanager/actionmanager.h>
|
||||
#include <coreplugin/actionmanager/actioncontainer.h>
|
||||
@@ -63,6 +62,7 @@
|
||||
#include <utils/qtcassert.h>
|
||||
#include <utils/parameteraction.h>
|
||||
#include <utils/pathchooser.h>
|
||||
#include <utils/utilsicons.h>
|
||||
#include <texteditor/texteditor.h>
|
||||
|
||||
#include <vcsbase/basevcseditorfactory.h>
|
||||
@@ -743,7 +743,7 @@ class RebaseItemDelegate : public IconItemDelegate
|
||||
{
|
||||
public:
|
||||
RebaseItemDelegate(LogChangeWidget *widget)
|
||||
: IconItemDelegate(widget, Core::Icons::UNDO.imageFileName())
|
||||
: IconItemDelegate(widget, Utils::Icons::UNDO.imageFileName())
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -29,8 +29,8 @@
|
||||
#include "logchangedialog.h"
|
||||
|
||||
#include <coreplugin/coreconstants.h>
|
||||
#include <coreplugin/coreicons.h>
|
||||
#include <utils/completingtextedit.h>
|
||||
#include <utils/utilsicons.h>
|
||||
|
||||
#include <QRegExpValidator>
|
||||
#include <QTextEdit>
|
||||
@@ -52,7 +52,7 @@ GitSubmitEditorWidget::GitSubmitEditorWidget() :
|
||||
new GitSubmitHighlighter(descriptionEdit());
|
||||
|
||||
m_emailValidator = new QRegExpValidator(QRegExp("[^@ ]+@[^@ ]+\\.[a-zA-Z]+"), this);
|
||||
const QPixmap error = Core::Icons::ERROR.pixmap();
|
||||
const QPixmap error = Utils::Icons::ERROR.pixmap();
|
||||
m_gitSubmitPanelUi.invalidAuthorLabel->setPixmap(error);
|
||||
m_gitSubmitPanelUi.invalidEmailLabel->setToolTip(tr("Provide a valid email to commit."));
|
||||
m_gitSubmitPanelUi.invalidEmailLabel->setPixmap(error);
|
||||
|
||||
Reference in New Issue
Block a user