fix background color

This commit is contained in:
2015-02-06 21:18:27 +00:00
parent a8d79701f9
commit fb4adda644
3 changed files with 8 additions and 1 deletions
+1
View File
@@ -37,6 +37,7 @@ public:
QMdiArea( parent ),
m_pixmapLogo( ":/images/playuver-backgroud-logo.png" )
{
setBackgroundRole( QPalette::Background );
}
protected:
void paintEvent( QPaintEvent *event )
+6 -1
View File
@@ -34,7 +34,12 @@ SubWindowHandle::SubWindowHandle( QWidget * parent, UInt category ) :
setParent( parent );
setFocusPolicy( Qt::WheelFocus );
setAttribute( Qt::WA_DeleteOnClose );
setBackgroundRole( QPalette::Light );
setBackgroundRole( QPalette::Background );
QPalette Pal(palette());
// set black background
//Pal.setColor(QPalette::Background, Qt::white);
//setPalette(Pal);
setAutoFillBackground( true );
setWindowIcon( QIcon( ":/images/playuver.png" ) );
// Create a new scroll area inside the sub-window
+1
View File
@@ -70,6 +70,7 @@ plaYUVerApp::plaYUVerApp()
setUnifiedTitleAndToolBarOnMac( true );
setCentralWidget( m_pcWindowHandle );
setAcceptDrops( true );
setBackgroundRole( QPalette::Background );
connect( m_pcWindowHandle, SIGNAL( windowActivated() ), this, SLOT( update() ) );
connect( m_pcWindowHandle, SIGNAL( changed() ), this, SLOT( update() ) );