2
0
forked from Ivasoft/DSView

Set the content margin of math and lissajous option dialog

This commit is contained in:
dreamsourcelabTAI
2024-04-07 20:56:25 +08:00
parent 1028a01cd8
commit 9ba8c2c013
2 changed files with 7 additions and 0 deletions

View File

@@ -75,6 +75,9 @@ LissajousOptions::LissajousOptions(SigSession *session, QWidget *parent) :
QHBoxLayout *xlayout = new QHBoxLayout();
QHBoxLayout *ylayout = new QHBoxLayout();
xlayout->setContentsMargins(5, 15, 5, 5);
ylayout->setContentsMargins(5, 15, 5, 5);
for(auto s : _session->get_signals()) {
if (s->signal_type() == SR_CHANNEL_DSO) {
view::DsoSignal *dsoSig = (view::DsoSignal*)s;

View File

@@ -79,6 +79,10 @@ MathOptions::MathOptions(SigSession *session, QWidget *parent) :
QHBoxLayout *src1_layout = new QHBoxLayout();
QHBoxLayout *src2_layout = new QHBoxLayout();
src1_layout->setContentsMargins(5, 15, 5, 5);
src2_layout->setContentsMargins(5, 15, 5, 5);
type_layout->setContentsMargins(5, 15, 5, 5);
for(auto s : _session->get_signals()) {
if (s->signal_type() == SR_CHANNEL_DSO) {
view::DsoSignal *dsoSig = (view::DsoSignal*)s;