better size behavior of notification editor

This commit is contained in:
Martin Rotter 2021-06-21 10:10:05 +02:00
parent 5f339db411
commit 1cecd1c324
2 changed files with 2 additions and 6 deletions

View File

@ -22,6 +22,8 @@ SingleNotificationEditor::SingleNotificationEditor(const Notification& notificat
connect(m_ui.m_btnClearSound, &QPushButton::clicked, m_ui.m_txtSound, &QLineEdit::clear);
connect(m_ui.m_txtSound, &QLineEdit::textChanged, this, &SingleNotificationEditor::notificationChanged);
connect(m_ui.m_cbBalloon, &QCheckBox::toggled, this, &SingleNotificationEditor::notificationChanged);
setFixedHeight(sizeHint().height());
}
Notification SingleNotificationEditor::notification() const {

View File

@ -10,12 +10,6 @@
<height>65</height>
</rect>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Maximum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<layout class="QFormLayout" name="formLayout">
<property name="leftMargin">
<number>6</number>