summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorPaul Olav Tvete <paul.tvete@nokia.com>2009-05-05 12:50:22 (GMT)
committerPaul Olav Tvete <paul.tvete@nokia.com>2009-05-05 12:52:51 (GMT)
commita5c9793ea6b5590f1033546856c34eaee6352d58 (patch)
treef2fda0e823e81f98983202f4265d398cf3d85aae /tools
parentccb2ac0353c6560d0ee3ce64da583b2ff6a66a06 (diff)
downloadQt-a5c9793ea6b5590f1033546856c34eaee6352d58.zip
Qt-a5c9793ea6b5590f1033546856c34eaee6352d58.tar.gz
Qt-a5c9793ea6b5590f1033546856c34eaee6352d58.tar.bz2
Show the BGR mode in the titlebar of the qvfb window.
Slightly hacky, but isolated change. Reviewed-by: Tom
Diffstat (limited to 'tools')
-rw-r--r--tools/qvfb/qvfb.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/tools/qvfb/qvfb.cpp b/tools/qvfb/qvfb.cpp
index 8de638f..510f0eb 100644
--- a/tools/qvfb/qvfb.cpp
+++ b/tools/qvfb/qvfb.cpp
@@ -711,7 +711,16 @@ void QVFb::configure()
}
view->setViewFormat(displayFormat);
view->setTouchscreenEmulation( config->touchScreen->isChecked() );
- view->setRgbSwapped(config->rgbSwapped->isChecked());
+ if (view->rgbSwapped() != config->rgbSwapped->isChecked()) {
+ //### the windowTitle logic is inside init(), and init isn't always invoked
+ QString caption = windowTitle();
+ if (!config->rgbSwapped->isChecked())
+ caption.replace(QLatin1String(" BGR"), QString());
+ else
+ caption.append(QLatin1String(" BGR"));
+ setWindowTitle(caption);
+ view->setRgbSwapped(config->rgbSwapped->isChecked());
+ }
bool lcdEmulation = config->lcdScreen->isChecked();
view->setLcdScreenEmulation( lcdEmulation );
if ( lcdEmulation )