transparency doesn't work with OpenGL when legacy QGLWidget is used

This commit is contained in:
Luis Ángel San Martín 2016-03-20 13:14:43 +01:00
parent fff2f82955
commit d4d13da9ff
2 changed files with 5 additions and 0 deletions

View File

@ -136,6 +136,7 @@ HEADERS += ../common/comic.h \
!CONFIG(no_opengl) {
CONFIG(legacy_gl_widget) {
message("using legacy YACReaderFlowGL (QGLWidget) header")
DEFINES += YACREADER_LEGACY_FLOW_GL
HEADERS += ../common/gl_legacy/yacreader_flow_gl.h
} else {
HEADERS += ../common/gl/yacreader_flow_gl.h

View File

@ -68,7 +68,11 @@ void GoToFlowToolBar::paintEvent(QPaintEvent *)
{
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"));
#endif
}
void GoToFlowToolBar::setPage(int pageNumber)