rendered paste bodyIndex: libs/libmythui/mythmainwindow.cpp
===================================================================
--- libs/libmythui/mythmainwindow.cpp (revision 16637)
+++ libs/libmythui/mythmainwindow.cpp (working copy)
@@ -380,9 +380,9 @@
//#ifdef USE_OPENGL_PAINTER
// connect(d->drawTimer, SIGNAL(timeout()), this, SLOT(updateGL()));
//#else
- connect(d->drawTimer, SIGNAL(timeout()), this, SLOT(update()));
+// connect(d->drawTimer, SIGNAL(timeout()), this, SLOT(update()));
//#endif
- d->drawTimer->start(1000 / 70);
+// d->drawTimer->start(1000 / 70);
d->AllowInput = true;
@@ -635,19 +635,18 @@
d->does_fill_screen = true;
// Set window border based on fullscreen attribute
- Qt::WFlags flags = 0;
+ Qt::WindowFlags flags = Qt::Window;
if (d->does_fill_screen)
- flags = Qt::WStyle_Customize |
- Qt::WStyle_NoBorder;
- else
- flags = Qt::WStyle_Customize | Qt::WStyle_NormalBorder;
+ {
+ setWindowState(Qt::WindowFullScreen);
+ }
// Workarounds for Qt/Mac bugs
#ifdef Q_WS_MACX
if (d->does_fill_screen)
{
- flags = Qt::WStyle_Customize | Qt::WStyle_Splash;
+ flags = Qt::SplashScreen;
}
#endif
@@ -655,7 +654,8 @@
flags |= Qt::MSWindowsOwnDC;
#endif
- reparent(parentWidget(), flags, pos());
+ setWindowFlags(flags);
+ setAttribute(Qt::WA_OpaquePaintEvent, true);
/* FIXME these two lines should go away */
setFont(gContext->GetMediumFont());