Commit 576dca64 authored by Eike Ziller's avatar Eike Ziller

TargetSelector: Fix position of "change kit" menu

It didn't handle high resolution button pixmaps well.

Task-number: QTCREATORBUG-16080
Change-Id: I1258c30a0fcd9916708ad348f90b06c0185a2c53
Reviewed-by: default avatarAlessandro Portale <alessandro.portale@theqtcompany.com>
parent 78e105c9
......@@ -46,7 +46,7 @@ public:
QPixmapButton(QWidget *parent, const QPixmap &first, const QPixmap &second)
: QPushButton(parent), m_showFirst(true), m_first(first), m_second(second)
{
setFixedSize(m_first.size());
setFixedSize(m_first.size()/m_first.devicePixelRatio());
}
void paintEvent(QPaintEvent *)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment