summaryrefslogtreecommitdiffstats
path: root/rbutil
diff options
context:
space:
mode:
authorTomer Shalev <shalev.tomer@gmail.com>2009-10-31 17:16:34 +0000
committerTomer Shalev <shalev.tomer@gmail.com>2009-10-31 17:16:34 +0000
commitd011eecad4b894e4829e8fc75836cb69f81452c0 (patch)
tree605bbbf4e7dd16b5a9ef4483c8b3dd8637dda9f8 /rbutil
parentd25baecc0bb15308ff430340da8c461a43ed235a (diff)
downloadrockbox-d011eecad4b894e4829e8fc75836cb69f81452c0.tar.gz
rockbox-d011eecad4b894e4829e8fc75836cb69f81452c0.tar.bz2
rockbox-d011eecad4b894e4829e8fc75836cb69f81452c0.zip
FS#10748 - rbutil: Explicitly override GUI layout direction setting for some widgets
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23441 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil')
-rw-r--r--rbutil/rbutilqt/configure.cpp11
-rw-r--r--rbutil/rbutilqt/rbutilqt.cpp2
-rw-r--r--rbutil/rbutilqt/systrace.cpp1
-rw-r--r--rbutil/rbutilqt/themesinstallwindow.cpp1
4 files changed, 15 insertions, 0 deletions
diff --git a/rbutil/rbutilqt/configure.cpp b/rbutil/rbutilqt/configure.cpp
index 3e7b5f729e..7d427a66f7 100644
--- a/rbutil/rbutilqt/configure.cpp
+++ b/rbutil/rbutilqt/configure.cpp
@@ -71,6 +71,17 @@ Config::Config(QWidget *parent,int index) : QDialog(parent)
ui.treeDevices->setAlternatingRowColors(true);
ui.listLanguages->setAlternatingRowColors(true);
+ /* Explicitly set some widgets to have left-to-right layout */
+ ui.treeDevices->setLayoutDirection(Qt::LeftToRight);
+ ui.treeDevices->setLayoutDirection(Qt::LeftToRight);
+ ui.mountPoint->setLayoutDirection(Qt::LeftToRight);
+ ui.proxyHost->setLayoutDirection(Qt::LeftToRight);
+ ui.proxyPort->setLayoutDirection(Qt::LeftToRight);
+ ui.proxyUser->setLayoutDirection(Qt::LeftToRight);
+ ui.proxyPass->setLayoutDirection(Qt::LeftToRight);
+ ui.listLanguages->setLayoutDirection(Qt::LeftToRight);
+ ui.cachePath->setLayoutDirection(Qt::LeftToRight);
+
this->setModal(true);
connect(ui.buttonOk, SIGNAL(clicked()), this, SLOT(accept()));
diff --git a/rbutil/rbutilqt/rbutilqt.cpp b/rbutil/rbutilqt/rbutilqt.cpp
index fd5983306d..aa81513d88 100644
--- a/rbutil/rbutilqt/rbutilqt.cpp
+++ b/rbutil/rbutilqt/rbutilqt.cpp
@@ -89,6 +89,7 @@ RbUtilQt::RbUtilQt(QWidget *parent) : QMainWindow(parent)
ui.treeInfo->setHeaderLabels(QStringList() << tr("File") << tr("Version"));
ui.treeInfo->expandAll();
ui.treeInfo->setColumnCount(2);
+ ui.treeInfo->setLayoutDirection(Qt::LeftToRight);
// disable quick install until version info is available
ui.buttonSmall->setEnabled(false);
ui.buttonComplete->setEnabled(false);
@@ -281,6 +282,7 @@ void RbUtilQt::about()
QDialog *window = new QDialog(this);
Ui::aboutBox about;
about.setupUi(window);
+ window->setLayoutDirection(Qt::LeftToRight);
window->setModal(true);
QFile licence(":/docs/gpl-2.0.html");
diff --git a/rbutil/rbutilqt/systrace.cpp b/rbutil/rbutilqt/systrace.cpp
index 21b4a1f93b..1aed5c05b5 100644
--- a/rbutil/rbutilqt/systrace.cpp
+++ b/rbutil/rbutilqt/systrace.cpp
@@ -28,6 +28,7 @@ SysTrace::SysTrace(QWidget *parent) : QDialog(parent)
{
ui.setupUi(this);
ui.textTrace->setReadOnly(true);
+ ui.textTrace->setLayoutDirection(Qt::LeftToRight);
refresh();
connect(ui.buttonClose, SIGNAL(clicked()), this, SLOT(close()));
diff --git a/rbutil/rbutilqt/themesinstallwindow.cpp b/rbutil/rbutilqt/themesinstallwindow.cpp
index 9a9d5957ba..c36560a47b 100644
--- a/rbutil/rbutilqt/themesinstallwindow.cpp
+++ b/rbutil/rbutilqt/themesinstallwindow.cpp
@@ -35,6 +35,7 @@ ThemesInstallWindow::ThemesInstallWindow(QWidget *parent) : QDialog(parent)
ui.themePreview->clear();
ui.themePreview->setText(tr("no theme selected"));
ui.labelSize->setText(tr("no selection"));
+ ui.themeDescription->setLayoutDirection(Qt::LeftToRight);
connect(ui.buttonCancel, SIGNAL(clicked()), this, SLOT(close()));
connect(ui.buttonOk, SIGNAL(clicked()), this, SLOT(accept()));