Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Unmaintained
Oxygen Transparent
Commits
db5bac3c
Commit
db5bac3c
authored
Nov 25, 2013
by
Hugo Pereira Da Costa
Browse files
also ensured styled background is painted on Qt::sheet
CCBUG: 328060
parent
059583b8
Changes
1
Hide whitespace changes
Inline
Side-by-side
style/oxygenstyle.cpp
View file @
db5bac3c
...
...
@@ -268,6 +268,7 @@ namespace Oxygen
case
Qt
::
Window
:
case
Qt
::
Dialog
:
case
Qt
::
Sheet
:
// set background as styled
widget
->
setAttribute
(
Qt
::
WA_StyledBackground
);
...
...
@@ -513,6 +514,7 @@ namespace Oxygen
case
Qt
::
Window
:
case
Qt
::
Dialog
:
case
Qt
::
Sheet
:
widget
->
removeEventFilter
(
this
);
widget
->
setAttribute
(
Qt
::
WA_StyledBackground
,
false
);
break
;
...
...
@@ -1362,7 +1364,7 @@ namespace Oxygen
{
if
(
ev
->
type
()
!=
QEvent
::
Paint
)
return
false
;
if
(
!
(
(
widget
->
windowFlags
()
&
Qt
::
WindowType_Mask
)
&
(
Qt
::
Window
|
Qt
::
Dialog
)
)
)
return
false
;
if
(
!
(
(
widget
->
windowFlags
()
&
Qt
::
WindowType_Mask
)
&
(
Qt
::
Window
|
Qt
::
Dialog
|
Qt
::
Sheet
)
)
)
return
false
;
if
(
!
(
widget
->
isWindow
()
&&
widget
->
testAttribute
(
Qt
::
WA_TranslucentBackground
)
&&
...
...
@@ -4190,7 +4192,7 @@ namespace Oxygen
// check widget and attributes
if
(
!
widget
||
!
widget
->
testAttribute
(
Qt
::
WA_StyledBackground
)
||
widget
->
testAttribute
(
Qt
::
WA_NoSystemBackground
)
)
return
false
;
if
(
!
(
(
widget
->
windowFlags
()
&
Qt
::
WindowType_Mask
)
&
(
Qt
::
Window
|
Qt
::
Dialog
)
)
)
return
false
;
if
(
!
(
(
widget
->
windowFlags
()
&
Qt
::
WindowType_Mask
)
&
(
Qt
::
Window
|
Qt
::
Dialog
|
Qt
::
Sheet
)
)
)
return
false
;
if
(
!
widget
->
isWindow
()
)
return
false
;
// normal "window" background
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment