Mercurial > hg > svgui
comparison widgets/PropertyStack.cpp @ 1203:ff042979331b 3.0-integration
Merge from branch svg, and thus (in some subrepos) from levelpanwidget
author | Chris Cannam |
---|---|
date | Mon, 19 Dec 2016 16:34:38 +0000 |
parents | 3f5c82034f9b |
children | a34a2a25907c |
comparison
equal
deleted
inserted
replaced
1185:f32828ea63d9 | 1203:ff042979331b |
---|---|
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))); |