1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-02-19 09:54:15 +01:00

OP-1182 attempt at fixing telemetry monitor widget size too small on Mac

This commit is contained in:
Philippe Renon 2014-01-21 02:40:15 +01:00
parent 98d061d647
commit ff6c5e80a0
2 changed files with 3 additions and 3 deletions

View File

@ -60,9 +60,9 @@ ConnectionManager::ConnectionManager(Internal::MainWindow *mainWindow) :
// put everything together
QHBoxLayout *layout = new QHBoxLayout;
layout->setSpacing(5);
layout->setSpacing(6);
// cheat a bit with the margin to "nicely" center things vertically
layout->setContentsMargins(5, 0, 5, 4);
layout->setContentsMargins(6, 0, 4, 2);
setLayout(layout);
layout->addWidget(new QLabel(tr("Connections:")), 0, Qt::AlignVCenter);

View File

@ -104,7 +104,7 @@ MonitorWidget::MonitorWidget(QWidget *parent) :
setScene(scene);
setSizePolicy(QSizePolicy::Preferred, QSizePolicy::MinimumExpanding);
setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Preferred);
// no scroll bars
setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);