comparison view/PaneStack.cpp @ 1446:1ed6d666ec9e single-point

Shrink alignment panes to sensible size on non-hi-dpi screens
author Chris Cannam
date Tue, 30 Apr 2019 14:02:32 +0100
parents 8e6a24110996
children 8afea53332f3
comparison
equal deleted inserted replaced
1445:ad86aa712d11 1446:1ed6d666ec9e
123 } 123 }
124 layout->addWidget(pane, 0, 1, 2, 1); 124 layout->addWidget(pane, 0, 1, 2, 1);
125 layout->setColumnStretch(1, 20); 125 layout->setColumnStretch(1, 20);
126 126
127 AlignmentView *av = new AlignmentView(frame); 127 AlignmentView *av = new AlignmentView(frame);
128 av->setFixedHeight(40);//!!! 128 av->setFixedHeight(ViewManager::scalePixelSize(20));
129 av->setViewManager(m_viewManager); 129 av->setViewManager(m_viewManager);
130 av->setVisible(false); // for now 130 av->setVisible(false); // for now
131 layout->addWidget(av, 2, 1); 131 layout->addWidget(av, 2, 1);
132 132
133 QWidget *properties = nullptr; 133 QWidget *properties = nullptr;