From f370642c81f895b7750cb123b95ad72f85520414 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Thu, 30 Jun 2022 23:57:39 +0200 Subject: [PATCH] Fixed android GUI layout issues --- src/GUI/gui.cpp | 8 +++----- src/GUI/optionsdialog.cpp | 2 ++ 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/GUI/gui.cpp b/src/GUI/gui.cpp index b8669a72..46572bba 100644 --- a/src/GUI/gui.cpp +++ b/src/GUI/gui.cpp @@ -1325,16 +1325,14 @@ void GUI::statistics() + l.toString(_areaCount) + "
"); if (_dateRange.first.isValid()) { - if (_dateRange.first == _dateRange.second) { - QString format = l.dateFormat(QLocale::LongFormat); + QString format = l.dateFormat(QLocale::ShortFormat); + if (_dateRange.first == _dateRange.second) text.append("" + tr("Date") + ": " + _dateRange.first.toString(format) + "
"); - } else { - QString format = l.dateFormat(QLocale::ShortFormat); + else text.append("" + tr("Date") + ": " + QString("%1 - %2").arg(_dateRange.first.toString(format), _dateRange.second.toString(format)) + "
"); - } } if (distance() > 0) diff --git a/src/GUI/optionsdialog.cpp b/src/GUI/optionsdialog.cpp index 02f51a79..49ac4f07 100644 --- a/src/GUI/optionsdialog.cpp +++ b/src/GUI/optionsdialog.cpp @@ -559,7 +559,9 @@ QWidget *OptionsDialog::createPOIPage() QWidget *OptionsDialog::createDEMPage() { _demURL = new QLineEdit(); +#ifndef Q_OS_ANDROID _demURL->setMinimumWidth(300); +#endif // Q_OS_ANDROID _demURL->setText(_options.demURL); _demAuth = new AuthenticationWidget(); _demAuth->setUsername(_options.demUsername);