Changeset 149 in tspsg-svn for trunk/src/globals.cpp
- Timestamp:
- Dec 20, 2010, 9:53:45 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/globals.cpp
r141 r149 27 27 void toggleStyle(QWidget *widget, bool enable) 28 28 { 29 30 31 32 33 29 if (enable) { 30 widget->setStyleSheet(QString("%1 {background-color: %2; border-color: %3; border-width: 1px; border-style: solid; border-radius: 3px;}").arg(widget->metaObject()->className(), widget->palette().window().color().name(), widget->palette().shadow().color().name())); 31 } else { 32 widget->setStyleSheet(QString()); 33 } 34 34 } 35 35 #endif // Q_WS_WIN32
Note: See TracChangeset
for help on using the changeset viewer.