diff options
author | Friedemann Kleint <Friedemann.Kleint@theqtcompany.com> | 2016-02-16 12:41:11 +0100 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@theqtcompany.com> | 2016-03-22 09:25:00 +0000 |
commit | b657496a0ba326af0688e9935069139c002849cf (patch) | |
tree | 68cd9298778771e43955125720dddaf395a783d5 /src/widgets/styles/qstyle.qrc | |
parent | a125b2c4c744b8f5b9136170db66840eeaf1f278 (diff) |
QLineEdit: Use High DPI pixmap for clear button.
Add a 32x32-pixmap to the style and factor out a function from
QStyle::standardIcon() to assemble the icon. The 32x32 pixmap may also be used
for the 16x16 case with devicePixelRatio=2.
Change QLineEditIconButton to use QStyle::standardIcon() instead of
QStyle::standardPixmap passing the QWindow to obtain the correct pixmap
from the icon.
Task-number: QTBUG-49374
Change-Id: I9895230f66911752cc13b7212609141610df0977
Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
Diffstat (limited to 'src/widgets/styles/qstyle.qrc')
-rw-r--r-- | src/widgets/styles/qstyle.qrc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/widgets/styles/qstyle.qrc b/src/widgets/styles/qstyle.qrc index c063ec5036..d8c73dd6fa 100644 --- a/src/widgets/styles/qstyle.qrc +++ b/src/widgets/styles/qstyle.qrc @@ -1,6 +1,7 @@ <RCC> <qresource prefix="/qt-project.org/styles/commonstyle"> <file>images/cleartext-16.png</file> + <file>images/cleartext-32.png</file> <file>images/filelink-16.png</file> <file>images/filelink-32.png</file> <file>images/filelink-128.png</file> |