This commit is contained in:
Martin Rotter 2023-09-18 14:49:33 +02:00
parent bff766ba93
commit d240c5b0ef
3 changed files with 102 additions and 6 deletions

View File

@ -6733,6 +6733,26 @@ Also, there are some built-in sounds. Just start typing ":" and they w
<source>Enable notifications</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/librssguard/gui/settings/settingsnotifications.ui" line="27"/>
<source>Notifications type</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/librssguard/gui/settings/settingsnotifications.ui" line="33"/>
<source>Native notifications (tray icon must be enabled)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/librssguard/gui/settings/settingsnotifications.ui" line="40"/>
<source>Custom notifications</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/librssguard/gui/settings/settingsnotifications.ui" line="53"/>
<source>Position</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/librssguard/gui/settings/settingsnotifications.h" line="27"/>
<source>Notifications</source>

View File

@ -13,8 +13,7 @@ SettingsNotifications::SettingsNotifications(Settings* settings, QWidget* parent
m_ui.setupUi(this);
m_ui.m_lblInfo
->setHelpText(tr("You must have \"tray icon\" activated to have balloon notifications working.\n\n"
"Also, there are some built-in sounds. Just start typing \":\" and they will show up."),
->setHelpText(tr("There are some built-in notification sounds. Just start typing \":\" and they will show up."),
true);
connect(m_ui.m_checkEnableNotifications, &QCheckBox::toggled, this, &SettingsNotifications::dirtifySettings);

View File

@ -18,10 +18,7 @@
</property>
</widget>
</item>
<item row="2" column="0" colspan="2">
<widget class="HelpSpoiler" name="m_lblInfo" native="true"/>
</item>
<item row="3" column="0" colspan="2">
<item row="4" column="0" colspan="2">
<widget class="NotificationsEditor" name="m_editor" native="true">
<property name="enabled">
<bool>false</bool>
@ -34,6 +31,54 @@
</property>
</widget>
</item>
<item row="3" column="0" colspan="2">
<widget class="HelpSpoiler" name="m_lblInfo" native="true"/>
</item>
<item row="2" column="0" colspan="2">
<widget class="QGroupBox" name="m_gbNotificationsType">
<property name="title">
<string>Notifications type</string>
</property>
<layout class="QFormLayout" name="formLayout_2">
<item row="0" column="0" colspan="2">
<widget class="QRadioButton" name="m_rbNativeNotifications">
<property name="text">
<string>Native notifications (tray icon must be enabled)</string>
</property>
</widget>
</item>
<item row="1" column="0" colspan="2">
<widget class="QRadioButton" name="m_rbCustomNotifications">
<property name="text">
<string>Custom notifications</string>
</property>
</widget>
</item>
<item row="2" column="0" colspan="2">
<widget class="QWidget" name="m_wdgCustomNotifications" native="true">
<layout class="QFormLayout" name="formLayout_3">
<property name="leftMargin">
<number>30</number>
</property>
<item row="0" column="0">
<widget class="QLabel" name="label">
<property name="text">
<string>Position</string>
</property>
<property name="buddy">
<cstring>m_cbCustomNotificationsPosition</cstring>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QComboBox" name="m_cbCustomNotificationsPosition"/>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
<customwidgets>
@ -71,5 +116,37 @@
</hint>
</hints>
</connection>
<connection>
<sender>m_checkEnableNotifications</sender>
<signal>toggled(bool)</signal>
<receiver>m_gbNotificationsType</receiver>
<slot>setEnabled(bool)</slot>
<hints>
<hint type="sourcelabel">
<x>183</x>
<y>24</y>
</hint>
<hint type="destinationlabel">
<x>183</x>
<y>107</y>
</hint>
</hints>
</connection>
<connection>
<sender>m_rbCustomNotifications</sender>
<signal>toggled(bool)</signal>
<receiver>m_wdgCustomNotifications</receiver>
<slot>setEnabled(bool)</slot>
<hints>
<hint type="sourcelabel">
<x>183</x>
<y>102</y>
</hint>
<hint type="destinationlabel">
<x>183</x>
<y>141</y>
</hint>
</hints>
</connection>
</connections>
</ui>