1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-28 05:34:47 +01:00

Improved projection settings layout

This commit is contained in:
Martin Tůma 2020-12-27 00:14:28 +01:00
parent 4f22c50510
commit 0ae55e1511

View File

@ -103,23 +103,36 @@ QWidget *OptionsDialog::createMapPage()
"The map is sharp but map objects are small/hard to read.")); "The map is sharp but map objects are small/hard to read."));
QLabel *llo = new QLabel(tr("Non-HiDPI maps are loaded such as they are. " QLabel *llo = new QLabel(tr("Non-HiDPI maps are loaded such as they are. "
"Map objects have the expected size but the map is blurry.")); "Map objects have the expected size but the map is blurry."));
f.setPointSize(f.pointSize() - 1);
lhi->setWordWrap(true); lhi->setWordWrap(true);
llo->setWordWrap(true); llo->setWordWrap(true);
lhi->setFont(f); lhi->setFont(f);
llo->setFont(f); llo->setFont(f);
QVBoxLayout *inLayout = new QVBoxLayout();
QFormLayout *projLayout = new QFormLayout(); inLayout->addWidget(_inputProjection);
projLayout->addRow(tr("Input:"), _inputProjection); inLayout->addWidget(inInfo);
projLayout->addWidget(inInfo); QVBoxLayout *outLayout = new QVBoxLayout();
projLayout->addItem(new QSpacerItem(10, 10)); outLayout->addWidget(_outputProjection);
projLayout->addRow(tr("Output:"), _outputProjection); outLayout->addWidget(outInfo);
projLayout->addWidget(outInfo); #ifndef Q_OS_MAC
QGroupBox *inBox = new QGroupBox(tr("Input"));
inBox->setLayout(inLayout);
QGroupBox *outBox = new QGroupBox(tr("Output"));
outBox->setLayout(outLayout);
#endif // Q_OS_MAC
QWidget *projectionTab = new QWidget(); QWidget *projectionTab = new QWidget();
QVBoxLayout *projectionTabLayout = new QVBoxLayout(); QVBoxLayout *projectionTabLayout = new QVBoxLayout();
projectionTabLayout->addLayout(projLayout); #ifdef Q_OS_MAC
filterTabLayout->addWidget(new QLabel(tr("Input:")));
filterTabLayout->addLayout(inLayout);
filterTabLayout->addWidget(line());
filterTabLayout->addWidget(new QLabel(tr("Output:")));
filterTabLayout->addLayout(outLayout);
#else // Q_OS_MAC
projectionTabLayout->addWidget(inBox);
projectionTabLayout->addWidget(outBox);
#endif // Q_OS_MAC
projectionTabLayout->addStretch(); projectionTabLayout->addStretch();
projectionTab->setLayout(projectionTabLayout); projectionTab->setLayout(projectionTabLayout);