Mercurial > hg > svgui
comparison widgets/PropertyStack.cpp @ 360:d58701996fae
* Update remaining editable layers to support proper realignment on copy/paste
* Permit pasting when no suitable layer is current: create a new layer on paste
* Add preference for showing the splash screen or not
* Rename spectrogram smoothing prefs (partly following Craig's suggestions)
author | Chris Cannam |
---|---|
date | Wed, 06 Feb 2008 14:15:09 +0000 |
parents | 25e72328a897 |
children | 0bcb449d15f4 |
comparison
equal
deleted
inserted
replaced
359:020c485aa7e0 | 360:d58701996fae |
---|---|
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 //!!! We'll comment this out until it's been tested with Qt 4.3.3 | |
118 #ifdef Q_WS_MAC___NOT_DEFINED | |
119 | |
120 // Qt 4.2 on OS/X doesn't show the icons in the tab bar, and | |
121 // I'm not sure why -- use labels instead | |
122 | |
123 addTab(box, shortName); | |
124 | |
125 #else | |
126 | |
127 // Icons on other platforms | |
128 | |
129 QString iconName = container->getPropertyContainerIconName(); | 117 QString iconName = container->getPropertyContainerIconName(); |
130 | 118 |
131 QIcon icon(IconLoader().load(iconName)); | 119 QIcon icon(IconLoader().load(iconName)); |
132 if (icon.isNull()) { | 120 if (icon.isNull()) { |
133 addTab(box, shortName); | 121 addTab(box, shortName); |
134 } else { | 122 } else { |
135 addTab(box, icon, QString("&%1").arg(i + 1)); | 123 addTab(box, icon, QString("&%1").arg(i + 1)); |
136 setTabToolTip(i, name); | 124 setTabToolTip(i, name); |
137 } | 125 } |
138 | |
139 #endif | |
140 | 126 |
141 m_boxes.push_back(box); | 127 m_boxes.push_back(box); |
142 } | 128 } |
143 | 129 |
144 blockSignals(false); | 130 blockSignals(false); |