Changeset 9eb63a1598 in tspsg for src/globals.cpp
- Timestamp:
- Dec 20, 2010, 9:53:45 PM (13 years ago)
- Branches:
- 0.1.4.170-beta2-bb10, appveyor, imgbot, master, readme
- Children:
- b8a2a118c4
- Parents:
- b59e2ea0b1
- git-author:
- Oleksii Serdiuk <contacts@…> (12/20/10 21:53:45)
- git-committer:
- Oleksii Serdiuk <contacts@…> (06/29/12 19:45:58)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/globals.cpp
rb59e2ea0b1 r9eb63a1598 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.