Changeset 545591d1a9 in tspsg for src
- Timestamp:
- Sep 12, 2012, 7:15:25 PM (12 years ago)
- Branches:
- appveyor, imgbot, master, readme
- Children:
- 0e473fbe88
- Parents:
- 197f54a2b9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/qtwin.cpp
r197f54a2b9 r545591d1a9 148 148 #endif 149 149 widget->setAttribute(Qt::WA_TranslucentBackground, enable); 150 widget->setAttribute(Qt::WA_NoSystemBackground, enable); 150 #ifdef Q_WS_X11 151 widget->setAttribute(Qt::WA_NoSystemBackground, false); 152 QPalette p = widget->palette(); 153 QColor c = p.color(QPalette::Window); 154 if (enable) 155 c.setAlpha(160); 156 else 157 c.setAlpha(255); 158 p.setColor(QPalette::Window, c); 159 widget->setPalette(p); 160 result = true; 161 #endif 151 162 #ifdef Q_OS_WIN32 152 163 hr = pDwmEnableBlurBehindWindow(HWND(widget->winId()), &bb);
Note: See TracChangeset
for help on using the changeset viewer.