From 5402cd127333b0d993ed4cbf53deeabec8bdc58d Mon Sep 17 00:00:00 2001 From: Jay Sorg Date: Tue, 19 Nov 2013 16:16:51 -0800 Subject: [PATCH] vrplayer: some minor fixes --- vrplayer/dlgabout.ui | 2 +- vrplayer/main.cpp | 2 +- vrplayer/mainwindow.cpp | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/vrplayer/dlgabout.ui b/vrplayer/dlgabout.ui index 74c7aa99..beb5d837 100644 --- a/vrplayer/dlgabout.ui +++ b/vrplayer/dlgabout.ui @@ -23,7 +23,7 @@ - VRPlayer v1.3 + VRPlayer v1.4 diff --git a/vrplayer/main.cpp b/vrplayer/main.cpp index c9343cea..5e4821ab 100644 --- a/vrplayer/main.cpp +++ b/vrplayer/main.cpp @@ -4,9 +4,9 @@ int main(int argc, char *argv[]) { + QApplication::setGraphicsSystem(QLatin1String("native")); QApplication a(argc, argv); MainWindow w; w.show(); - return a.exec(); } diff --git a/vrplayer/mainwindow.cpp b/vrplayer/mainwindow.cpp index 65bff0f0..0ce04674 100644 --- a/vrplayer/mainwindow.cpp +++ b/vrplayer/mainwindow.cpp @@ -135,7 +135,7 @@ void MainWindow::moveEvent(QMoveEvent *) void MainWindow::onVolSliderValueChanged(int value) { int volume; - + volume = (value * 0xffff) / 100; if (interface != 0) { @@ -153,8 +153,8 @@ void MainWindow::setupUI() lblVideo->setMinimumWidth(320); lblVideo->setMinimumHeight(200); QPalette palette = lblVideo->palette(); - palette.setColor(lblVideo->backgroundRole(), Qt::black); - palette.setColor(lblVideo->foregroundRole(), Qt::black); + palette.setColor(lblVideo->backgroundRole(), QColor(0x00, 0x00, 0x01, 0xff)); + palette.setColor(lblVideo->foregroundRole(), QColor(0x00, 0x00, 0x01, 0xff)); lblVideo->setAutoFillBackground(true); lblVideo->setPalette(palette); hboxLayoutTop = new QHBoxLayout;