Mercurial > hg > svgui
comparison widgets/PropertyStack.cpp @ 373:0895517bb2d1 1.2-stable
* merge from trunk (1.2 ended up being tracked from trunk, but we may want
this branch for fixes later)
author | Chris Cannam |
---|---|
date | Wed, 27 Feb 2008 10:32:45 +0000 |
parents | 226cb289bdf4 |
children |
comparison
equal
deleted
inserted
replaced
337:813170c57b13 | 373:0895517bb2d1 |
---|---|
112 (LayerFactory::getInstance()->getLayerType(layer)); | 112 (LayerFactory::getInstance()->getLayerType(layer)); |
113 } | 113 } |
114 | 114 |
115 shortName = QString("&%1 %2").arg(i + 1).arg(shortName); | 115 shortName = QString("&%1 %2").arg(i + 1).arg(shortName); |
116 | 116 |
117 #ifdef Q_WS_MAC | |
118 | |
119 // Qt 4.2 on OS/X doesn't show the icons in the tab bar, and | |
120 // I'm not sure why -- use labels instead | |
121 | |
122 addTab(box, shortName); | |
123 | |
124 #else | |
125 | |
126 // Icons on other platforms | |
127 | |
128 QString iconName = container->getPropertyContainerIconName(); | 117 QString iconName = container->getPropertyContainerIconName(); |
129 | 118 |
130 QIcon icon(IconLoader().load(iconName)); | 119 QIcon icon(IconLoader().load(iconName)); |
131 if (icon.isNull()) { | 120 if (icon.isNull()) { |
132 addTab(box, shortName); | 121 addTab(box, shortName); |
133 } else { | 122 } else { |
134 addTab(box, icon, QString("&%1").arg(i + 1)); | 123 addTab(box, icon, QString("&%1").arg(i + 1)); |
135 setTabToolTip(i, name); | 124 setTabToolTip(i, name); |
136 } | 125 } |
137 | |
138 #endif | |
139 | 126 |
140 m_boxes.push_back(box); | 127 m_boxes.push_back(box); |
141 } | 128 } |
142 | 129 |
143 blockSignals(false); | 130 blockSignals(false); |