mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -04:00
transparency doesn't work with OpenGL when legacy QGLWidget
is used
This commit is contained in:
parent
fff2f82955
commit
d4d13da9ff
@ -136,6 +136,7 @@ HEADERS += ../common/comic.h \
|
|||||||
!CONFIG(no_opengl) {
|
!CONFIG(no_opengl) {
|
||||||
CONFIG(legacy_gl_widget) {
|
CONFIG(legacy_gl_widget) {
|
||||||
message("using legacy YACReaderFlowGL (QGLWidget) header")
|
message("using legacy YACReaderFlowGL (QGLWidget) header")
|
||||||
|
DEFINES += YACREADER_LEGACY_FLOW_GL
|
||||||
HEADERS += ../common/gl_legacy/yacreader_flow_gl.h
|
HEADERS += ../common/gl_legacy/yacreader_flow_gl.h
|
||||||
} else {
|
} else {
|
||||||
HEADERS += ../common/gl/yacreader_flow_gl.h
|
HEADERS += ../common/gl/yacreader_flow_gl.h
|
||||||
|
@ -68,7 +68,11 @@ void GoToFlowToolBar::paintEvent(QPaintEvent *)
|
|||||||
{
|
{
|
||||||
QPainter painter(this);
|
QPainter painter(this);
|
||||||
|
|
||||||
|
#ifdef YACREADER_LEGACY_FLOW_GL
|
||||||
|
painter.fillRect(0,0,width(),height(),QColor("#FF000000"));
|
||||||
|
#else
|
||||||
painter.fillRect(0,0,width(),height(),QColor("#99000000"));
|
painter.fillRect(0,0,width(),height(),QColor("#99000000"));
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void GoToFlowToolBar::setPage(int pageNumber)
|
void GoToFlowToolBar::setPage(int pageNumber)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user