1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-27 21:24:47 +01:00

Fixed android GUI layout issues

This commit is contained in:
Martin Tůma 2022-06-30 23:57:39 +02:00
parent 24584c44c3
commit f370642c81
2 changed files with 5 additions and 5 deletions

View File

@ -1325,16 +1325,14 @@ void GUI::statistics()
+ l.toString(_areaCount) + "<br>"); + l.toString(_areaCount) + "<br>");
if (_dateRange.first.isValid()) { if (_dateRange.first.isValid()) {
if (_dateRange.first == _dateRange.second) { QString format = l.dateFormat(QLocale::ShortFormat);
QString format = l.dateFormat(QLocale::LongFormat); if (_dateRange.first == _dateRange.second)
text.append("<b>" + tr("Date") + ":</b> " text.append("<b>" + tr("Date") + ":</b> "
+ _dateRange.first.toString(format) + "<br>"); + _dateRange.first.toString(format) + "<br>");
} else { else
QString format = l.dateFormat(QLocale::ShortFormat);
text.append("<b>" + tr("Date") + ":</b> " text.append("<b>" + tr("Date") + ":</b> "
+ QString("%1 - %2").arg(_dateRange.first.toString(format), + QString("%1 - %2").arg(_dateRange.first.toString(format),
_dateRange.second.toString(format)) + "<br>"); _dateRange.second.toString(format)) + "<br>");
}
} }
if (distance() > 0) if (distance() > 0)

View File

@ -559,7 +559,9 @@ QWidget *OptionsDialog::createPOIPage()
QWidget *OptionsDialog::createDEMPage() QWidget *OptionsDialog::createDEMPage()
{ {
_demURL = new QLineEdit(); _demURL = new QLineEdit();
#ifndef Q_OS_ANDROID
_demURL->setMinimumWidth(300); _demURL->setMinimumWidth(300);
#endif // Q_OS_ANDROID
_demURL->setText(_options.demURL); _demURL->setText(_options.demURL);
_demAuth = new AuthenticationWidget(); _demAuth = new AuthenticationWidget();
_demAuth->setUsername(_options.demUsername); _demAuth->setUsername(_options.demUsername);