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:
parent
98d061d647
commit
ff6c5e80a0
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user