NotificationArea: Preferences - width

This commit is contained in:
Abdullah Tahiri
2023-03-16 19:30:00 +01:00
committed by abdullahtahiriyo
parent f00e6d93dc
commit 24eb601fb0
2 changed files with 32 additions and 1 deletions

View File

@@ -78,6 +78,7 @@ void DlgSettingsNotificationArea::saveSettings()
ui->maxNotifications->onSave();
ui->maxWidgetMessages->onSave();
ui->autoRemoveUserNotifications->onSave();
ui->notificationWidth->onSave();
}
void DlgSettingsNotificationArea::loadSettings()
@@ -89,6 +90,7 @@ void DlgSettingsNotificationArea::loadSettings()
ui->maxNotifications->onRestore();
ui->maxWidgetMessages->onRestore();
ui->autoRemoveUserNotifications->onRestore();
ui->notificationWidth->onRestore();
}
void DlgSettingsNotificationArea::changeEvent(QEvent *e)

View File

@@ -7,7 +7,7 @@
<x>0</x>
<y>0</y>
<width>654</width>
<height>356</height>
<height>375</height>
</rect>
</property>
<property name="windowTitle">
@@ -104,6 +104,35 @@
</property>
</widget>
</item>
<item row="3" column="0">
<widget class="QLabel" name="label_width">
<property name="text">
<string>Notification width:</string>
</property>
</widget>
</item>
<item row="3" column="1">
<widget class="Gui::PrefSpinBox" name="notificationWidth">
<property name="toolTip">
<string>Width of the notification in pixels</string>
</property>
<property name="minimum">
<number>300</number>
</property>
<property name="maximum">
<number>10000</number>
</property>
<property name="value">
<number>800</number>
</property>
<property name="prefEntry" stdset="0">
<cstring>NotificiationWidth</cstring>
</property>
<property name="prefPath" stdset="0">
<cstring>NotificationArea</cstring>
</property>
</widget>
</item>
</layout>
</widget>
</item>