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,17 +1325,15 @@ void GUI::statistics()
+ l.toString(_areaCount) + "<br>");
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("<b>" + tr("Date") + ":</b> "
+ _dateRange.first.toString(format) + "<br>");
} else {
QString format = l.dateFormat(QLocale::ShortFormat);
else
text.append("<b>" + tr("Date") + ":</b> "
+ QString("%1 - %2").arg(_dateRange.first.toString(format),
_dateRange.second.toString(format)) + "<br>");
}
}
if (distance() > 0)
text.append("<b>" + tr("Distance") + ":</b> "

View File

@ -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);