Mon, 07 Nov 2022 17:19:58 +0100
Corrected/acknowledged some bad import style and removed some obsolete code.
<?xml version="1.0" encoding="UTF-8"?> <ui version="4.0"> <class>NotificationsPage</class> <widget class="QWidget" name="NotificationsPage"> <property name="geometry"> <rect> <x>0</x> <y>0</y> <width>550</width> <height>615</height> </rect> </property> <property name="windowTitle"> <string/> </property> <layout class="QVBoxLayout" name="verticalLayout_3"> <item> <widget class="QLabel" name="headerLabel"> <property name="text"> <string><b>Configure notification settings</b></string> </property> </widget> </item> <item> <widget class="Line" name="line11"> <property name="frameShape"> <enum>QFrame::HLine</enum> </property> <property name="frameShadow"> <enum>QFrame::Sunken</enum> </property> <property name="orientation"> <enum>Qt::Horizontal</enum> </property> </widget> </item> <item> <layout class="QGridLayout" name="gridLayout_2"> <item row="0" column="0"> <widget class="QLabel" name="label"> <property name="text"> <string>Auto Close Timeout:</string> </property> </widget> </item> <item row="0" column="1"> <widget class="QSpinBox" name="timeoutSpinBox"> <property name="toolTip"> <string>Enter the timeout for closing the notification</string> </property> <property name="alignment"> <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> </property> <property name="suffix"> <string> s</string> </property> <property name="minimum"> <number>1</number> </property> <property name="maximum"> <number>10</number> </property> </widget> </item> <item row="0" column="2"> <spacer name="horizontalSpacer"> <property name="orientation"> <enum>Qt::Horizontal</enum> </property> <property name="sizeHint" stdset="0"> <size> <width>40</width> <height>20</height> </size> </property> </spacer> </item> <item row="1" column="0" colspan="2"> <widget class="QGroupBox" name="groupBox"> <property name="title"> <string>Position</string> </property> <layout class="QGridLayout" name="gridLayout"> <item row="0" column="0"> <widget class="QLabel" name="label_2"> <property name="text"> <string>X:</string> </property> </widget> </item> <item row="0" column="1"> <widget class="QSpinBox" name="xSpinBox"> <property name="toolTip"> <string>Enter the X-position the notification should be shown at</string> </property> <property name="alignment"> <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> </property> <property name="minimum"> <number>-10000</number> </property> <property name="maximum"> <number>10000</number> </property> </widget> </item> <item row="0" column="2"> <widget class="QLabel" name="label_3"> <property name="text"> <string>Y:</string> </property> </widget> </item> <item row="0" column="3"> <widget class="QSpinBox" name="ySpinBox"> <property name="toolTip"> <string>Enter the Y-position the notification should be shown at</string> </property> <property name="alignment"> <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> </property> <property name="minimum"> <number>-10000</number> </property> <property name="maximum"> <number>10000</number> </property> </widget> </item> <item row="1" column="0" colspan="4"> <widget class="QPushButton" name="visualButton"> <property name="toolTip"> <string>Press to select the position visually, release to get it</string> </property> <property name="text"> <string>Visual Selection</string> </property> <property name="checkable"> <bool>true</bool> </property> </widget> </item> </layout> </widget> </item> </layout> </item> <item> <widget class="QGroupBox" name="groupBox_2"> <property name="title"> <string>Warning Notification</string> </property> <layout class="QGridLayout" name="gridLayout_3"> <item row="0" column="0"> <widget class="QPushButton" name="warningFgButton"> <property name="toolTip"> <string>Press to select the foreground color</string> </property> <property name="text"> <string>Foreground</string> </property> </widget> </item> <item row="0" column="1"> <widget class="QPushButton" name="warningBgButton"> <property name="toolTip"> <string>Press to select the background color</string> </property> <property name="text"> <string>Background</string> </property> </widget> </item> <item row="0" column="2"> <widget class="QPushButton" name="warningResetButton"> <property name="toolTip"> <string>Press to reset the colors to the current values</string> </property> <property name="text"> <string>Reset</string> </property> </widget> </item> <item row="0" column="3"> <widget class="QPushButton" name="warningDefaultButton"> <property name="toolTip"> <string>Press to reset the colors to default values</string> </property> <property name="text"> <string>Default</string> </property> </widget> </item> <item row="1" column="0" colspan="4"> <widget class="QFrame" name="warningFrame"> <property name="frameShape"> <enum>QFrame::StyledPanel</enum> </property> <property name="frameShadow"> <enum>QFrame::Raised</enum> </property> <layout class="QHBoxLayout" name="horizontalLayout"> <item> <widget class="QLabel" name="warningIcon"> <property name="maximumSize"> <size> <width>48</width> <height>48</height> </size> </property> <property name="text"> <string/> </property> </widget> </item> <item> <layout class="QVBoxLayout" name="warningLayout"> <item> <widget class="QLabel" name="warningHeading"> <property name="sizePolicy"> <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> <property name="minimumSize"> <size> <width>335</width> <height>0</height> </size> </property> <property name="font"> <font> <weight>75</weight> <bold>true</bold> </font> </property> <property name="text"> <string>Warning</string> </property> </widget> </item> <item> <widget class="QLabel" name="warningMessage"> <property name="sizePolicy"> <sizepolicy hsizetype="Preferred" vsizetype="Preferred"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> <property name="minimumSize"> <size> <width>335</width> <height>0</height> </size> </property> <property name="text"> <string>This is a message to notify about a warning.</string> </property> <property name="alignment"> <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set> </property> <property name="wordWrap"> <bool>true</bool> </property> </widget> </item> </layout> </item> </layout> </widget> </item> </layout> </widget> </item> <item> <widget class="QGroupBox" name="groupBox_3"> <property name="title"> <string>Critical Notification</string> </property> <layout class="QGridLayout" name="gridLayout_4"> <item row="0" column="0"> <widget class="QPushButton" name="criticalFgButton"> <property name="toolTip"> <string>Press to select the foreground color</string> </property> <property name="text"> <string>Foreground</string> </property> </widget> </item> <item row="0" column="1"> <widget class="QPushButton" name="criticalBgButton"> <property name="toolTip"> <string>Press to select the background color</string> </property> <property name="text"> <string>Background</string> </property> </widget> </item> <item row="0" column="2"> <widget class="QPushButton" name="criticalResetButton"> <property name="toolTip"> <string>Press to reset the colors to the current values</string> </property> <property name="text"> <string>Reset</string> </property> </widget> </item> <item row="0" column="3"> <widget class="QPushButton" name="criticalDefaultButton"> <property name="toolTip"> <string>Press to reset the colors to default values</string> </property> <property name="text"> <string>Default</string> </property> </widget> </item> <item row="1" column="0" colspan="4"> <widget class="QFrame" name="criticalFrame"> <property name="frameShape"> <enum>QFrame::StyledPanel</enum> </property> <property name="frameShadow"> <enum>QFrame::Raised</enum> </property> <layout class="QHBoxLayout" name="horizontalLayout_2"> <item> <widget class="QLabel" name="criticalIcon"> <property name="maximumSize"> <size> <width>48</width> <height>48</height> </size> </property> <property name="text"> <string/> </property> </widget> </item> <item> <layout class="QVBoxLayout" name="criticalLayout"> <item> <widget class="QLabel" name="criticalHeading"> <property name="sizePolicy"> <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> <property name="minimumSize"> <size> <width>335</width> <height>0</height> </size> </property> <property name="font"> <font> <weight>75</weight> <bold>true</bold> </font> </property> <property name="text"> <string>Critical</string> </property> </widget> </item> <item> <widget class="QLabel" name="criticalMessage"> <property name="sizePolicy"> <sizepolicy hsizetype="Preferred" vsizetype="Preferred"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> <property name="minimumSize"> <size> <width>335</width> <height>0</height> </size> </property> <property name="text"> <string>This is a message to notify about a critical event.</string> </property> <property name="alignment"> <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set> </property> <property name="wordWrap"> <bool>true</bool> </property> </widget> </item> </layout> </item> </layout> </widget> </item> </layout> </widget> </item> <item> <spacer name="verticalSpacer"> <property name="orientation"> <enum>Qt::Vertical</enum> </property> <property name="sizeHint" stdset="0"> <size> <width>20</width> <height>142</height> </size> </property> </spacer> </item> </layout> </widget> <tabstops> <tabstop>timeoutSpinBox</tabstop> <tabstop>xSpinBox</tabstop> <tabstop>ySpinBox</tabstop> <tabstop>visualButton</tabstop> <tabstop>warningFgButton</tabstop> <tabstop>warningBgButton</tabstop> <tabstop>warningResetButton</tabstop> <tabstop>warningDefaultButton</tabstop> <tabstop>criticalFgButton</tabstop> <tabstop>criticalBgButton</tabstop> <tabstop>criticalResetButton</tabstop> <tabstop>criticalDefaultButton</tabstop> </tabstops> <resources/> <connections/> </ui>