aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/modeleditor/modeleditor.cpp
diff options
context:
space:
mode:
authorJochen Becher <jochen_becher@gmx.de>2017-12-28 22:04:45 +0100
committerJochen Becher <jochen_becher@gmx.de>2018-01-09 14:23:03 +0000
commitb567a080e27abd589d44d323fe9c1fa9a2d68028 (patch)
tree003cc4273234eeedec4f282f30c76b1d9296a6a8 /src/plugins/modeleditor/modeleditor.cpp
parent09bdb4f8cdf822ec25f0546f378fd139f742bb14 (diff)
ModelEditor: Fix toolbar icon rendering on HDPI screens
Some high DPI icons are still missing. But icons rendered from stereotype definitions get the correct size and look much better. Change-Id: Iabd8283e9bd0ae7e074471a065d009ac5c5836cc Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Diffstat (limited to 'src/plugins/modeleditor/modeleditor.cpp')
-rw-r--r--src/plugins/modeleditor/modeleditor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/modeleditor/modeleditor.cpp b/src/plugins/modeleditor/modeleditor.cpp
index 1f906927d4e..aadfa1c6705 100644
--- a/src/plugins/modeleditor/modeleditor.cpp
+++ b/src/plugins/modeleditor/modeleditor.cpp
@@ -1063,7 +1063,7 @@ void ModelEditor::initToolbars()
const qmt::Style *style = documentController->styleController()->adaptStyle(styleEngineElementType);
icon = stereotypeController->createIcon(
stereotypeIconElement, QStringList() << tool.m_stereotype,
- QString(), style, QSize(48, 48), QMarginsF(3.0, 2.0, 3.0, 4.0));
+ QString(), style, QSize(256, 256), QMarginsF(12.0, 8.0, 12.0, 16.0), 16.0);
if (!icon.isNull()) {
QString stereotypeIconId = stereotypeController->findStereotypeIconId(
stereotypeIconElement, QStringList() << tool.m_stereotype);