Mercurial > hg > svgui
comparison widgets/PropertyBox.cpp @ 1309:13e17e61f898
Tool button on Mac (something has gone very wrong with the appearance of the push button in latest builds)
author | Chris Cannam <cannam@all-day-breakfast.com> |
---|---|
date | Tue, 26 Jun 2018 14:37:36 +0100 |
parents | fc9d9f1103fa |
children | 47f35694d603 d18ca558049e |
comparison
equal
deleted
inserted
replaced
1308:e7c9650e74a7 | 1309:13e17e61f898 |
---|---|
304 if (!(button = qobject_cast<QAbstractButton *>(existing))) { | 304 if (!(button = qobject_cast<QAbstractButton *>(existing))) { |
305 #ifdef DEBUG_PROPERTY_BOX | 305 #ifdef DEBUG_PROPERTY_BOX |
306 cerr << "PropertyBox: creating new checkbox" << endl; | 306 cerr << "PropertyBox: creating new checkbox" << endl; |
307 #endif | 307 #endif |
308 if (iconName != "") { | 308 if (iconName != "") { |
309 #ifdef Q_OS_MAC | |
310 button = new NotifyingToolButton(); | |
311 #else | |
309 button = new NotifyingPushButton(); | 312 button = new NotifyingPushButton(); |
313 #endif | |
310 button->setCheckable(true); | 314 button->setCheckable(true); |
311 QIcon icon(IconLoader().load(iconName)); | 315 QIcon icon(IconLoader().load(iconName)); |
312 button->setIcon(icon); | 316 button->setIcon(icon); |
313 button->setObjectName(name); | 317 button->setObjectName(name); |
314 button->setFixedSize(WidgetScale::scaleQSize(QSize(18, 18))); | 318 button->setFixedSize(WidgetScale::scaleQSize(QSize(18, 18))); |