Mercurial > hg > svgui
comparison widgets/PropertyStack.cpp @ 1174:3f5c82034f9b more-hidpi
Scale the sizes of a few more UI elements
author | Chris Cannam |
---|---|
date | Mon, 05 Dec 2016 12:04:23 +0000 |
parents | 66da6f009edd |
children | a34a2a25907c |
comparison
equal
deleted
inserted
replaced
1173:db90fee630bc | 1174:3f5c82034f9b |
---|---|
23 #include "widgets/IconLoader.h" | 23 #include "widgets/IconLoader.h" |
24 #include "base/Command.h" | 24 #include "base/Command.h" |
25 #include "widgets/CommandHistory.h" | 25 #include "widgets/CommandHistory.h" |
26 #include "layer/ShowLayerCommand.h" | 26 #include "layer/ShowLayerCommand.h" |
27 | 27 |
28 #include "WidgetScale.h" | |
29 | |
28 #include <QIcon> | 30 #include <QIcon> |
29 #include <QTabWidget> | 31 #include <QTabWidget> |
30 | 32 |
31 #include <iostream> | 33 #include <iostream> |
32 | 34 |
43 connect(bar, SIGNAL(mouseLeft()), this, SLOT(mouseLeftTabBar())); | 45 connect(bar, SIGNAL(mouseLeft()), this, SLOT(mouseLeftTabBar())); |
44 connect(bar, SIGNAL(activeTabClicked()), this, SLOT(activeTabClicked())); | 46 connect(bar, SIGNAL(activeTabClicked()), this, SLOT(activeTabClicked())); |
45 | 47 |
46 setTabBar(bar); | 48 setTabBar(bar); |
47 | 49 |
48 #if (QT_VERSION >= 0x0402) | |
49 setElideMode(Qt::ElideNone); | 50 setElideMode(Qt::ElideNone); |
50 tabBar()->setUsesScrollButtons(true); | 51 tabBar()->setUsesScrollButtons(true); |
51 tabBar()->setIconSize(QSize(16, 16)); | 52 tabBar()->setIconSize(WidgetScale::scaleQSize(QSize(16, 16))); |
52 #endif | |
53 | 53 |
54 repopulate(); | 54 repopulate(); |
55 | 55 |
56 connect(this, SIGNAL(currentChanged(int)), | 56 connect(this, SIGNAL(currentChanged(int)), |
57 this, SLOT(selectedContainerChanged(int))); | 57 this, SLOT(selectedContainerChanged(int))); |