mirror of
https://github.com/JS8Call-improved/JS8Call-improved
synced 2026-08-13 17:47:36 -04:00
Refine notification button layout
This commit is contained in:
parent
85517ca16a
commit
cd9f3cb9ce
1 changed files with 5 additions and 7 deletions
|
|
@ -1733,12 +1733,12 @@ void Configuration::impl::initialize_models ()
|
|||
QHBoxLayout *buttonLayout = new QHBoxLayout(buttonWidget);
|
||||
buttonLayout->setStretch(0, 0);
|
||||
buttonLayout->setStretch(1, 0);
|
||||
buttonLayout->setContentsMargins(9,1,1,1);
|
||||
buttonLayout->setSpacing(3);
|
||||
buttonLayout->setContentsMargins(3, 1, 3, 1);
|
||||
buttonWidget->setLayout(buttonLayout);
|
||||
|
||||
QPushButton *selectFilePushButton = new QPushButton(this);
|
||||
QPushButton *selectFilePushButton = new QPushButton("Select", this);
|
||||
selectFilePushButton->setSizePolicy(minimumPolicy);
|
||||
selectFilePushButton->setText("Select");
|
||||
buttonLayout->addWidget(selectFilePushButton);
|
||||
|
||||
connect(selectFilePushButton, &QPushButton::pressed, this, [this, pathLabel](){
|
||||
|
|
@ -1749,9 +1749,8 @@ void Configuration::impl::initialize_models ()
|
|||
}
|
||||
});
|
||||
|
||||
QPushButton *testPushButton = new QPushButton(this);
|
||||
QPushButton *testPushButton = new QPushButton("Test", this);
|
||||
testPushButton->setSizePolicy(minimumPolicy);
|
||||
testPushButton->setText("Test");
|
||||
buttonLayout->addWidget(testPushButton);
|
||||
|
||||
connect(testPushButton, &QPushButton::pressed, this, [this, key, pathLabel](){
|
||||
|
|
@ -1761,9 +1760,8 @@ void Configuration::impl::initialize_models ()
|
|||
emit this->self_->test_notify(key);
|
||||
});
|
||||
|
||||
QPushButton *clearPushButton = new QPushButton(this);
|
||||
QPushButton *clearPushButton = new QPushButton("Clear", this);
|
||||
clearPushButton->setSizePolicy(minimumPolicy);
|
||||
clearPushButton->setText("Clear");
|
||||
buttonLayout->addWidget(clearPushButton);
|
||||
|
||||
connect(clearPushButton, &QPushButton::pressed, this, [pathLabel, enabledCheckbox](){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue