forked from qt-creator/qt-creator
Utils: StyleHelper::dpiSpecificPixmap > ::dpiSpecificImageFile
Letting that helper function return a file name is more flexible than returning a QPixmap. Change-Id: I4634e4e795eec029608c8e65c1a0e8afff870a91 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com> Reviewed-by: Alessandro Portale <alessandro.portale@digia.com>
This commit is contained in:
@@ -569,7 +569,7 @@ void FindToolBar::updateIcons()
|
||||
bool preserveCase = effectiveFlags & FindPreserveCase;
|
||||
if (!casesensitive && !wholewords && !regexp && !preserveCase) {
|
||||
m_ui.findEdit->setButtonPixmap(Utils::FancyLineEdit::Left,
|
||||
Utils::StyleHelper::dpiSpecificPixmap(QLatin1Literal(Core::Constants::ICON_MAGNIFIER)));
|
||||
Utils::StyleHelper::dpiSpecificImageFile(QLatin1Literal(Core::Constants::ICON_MAGNIFIER)));
|
||||
} else {
|
||||
m_ui.findEdit->setButtonPixmap(Utils::FancyLineEdit::Left,
|
||||
IFindFilter::pixmapForFindFlags(effectiveFlags));
|
||||
|
||||
@@ -248,7 +248,7 @@ LocatorWidget::LocatorWidget(Locator *qop) :
|
||||
layout->addWidget(m_fileLineEdit);
|
||||
|
||||
setWindowIcon(QIcon(QLatin1String(":/locator/images/locator.png")));
|
||||
const QPixmap image = Utils::StyleHelper::dpiSpecificPixmap(QLatin1String(Core::Constants::ICON_MAGNIFIER));
|
||||
const QPixmap image = Utils::StyleHelper::dpiSpecificImageFile(QLatin1String(Core::Constants::ICON_MAGNIFIER));
|
||||
m_fileLineEdit->setFiltering(true);
|
||||
m_fileLineEdit->setButtonPixmap(Utils::FancyLineEdit::Left, image);
|
||||
m_fileLineEdit->setButtonToolTip(Utils::FancyLineEdit::Left, tr("Options"));
|
||||
|
||||
@@ -130,8 +130,8 @@ public:
|
||||
};
|
||||
|
||||
ManhattanStylePrivate::ManhattanStylePrivate() :
|
||||
lineeditImage(Utils::StyleHelper::dpiSpecificPixmap(QStringLiteral(":/core/images/inputfield.png")).toImage()),
|
||||
lineeditImage_disabled(Utils::StyleHelper::dpiSpecificPixmap(QStringLiteral(":/core/images/inputfield_disabled.png")).toImage()),
|
||||
lineeditImage(Utils::StyleHelper::dpiSpecificImageFile(QStringLiteral(":/core/images/inputfield.png"))),
|
||||
lineeditImage_disabled(Utils::StyleHelper::dpiSpecificImageFile(QStringLiteral(":/core/images/inputfield_disabled.png"))),
|
||||
extButtonPixmap(QLatin1String(":/core/images/extension.png")),
|
||||
closeButtonPixmap(QLatin1String(Core::Constants::ICON_CLOSE))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user