Fix 'approuve' button, add warning when break is not between day start and day end

This commit is contained in:
Aurélie Delhaie
2022-04-09 13:59:48 +02:00
parent 9bb56fe174
commit deb49909d1
11 changed files with 425 additions and 9 deletions

View File

@@ -56,7 +56,7 @@
<rect>
<x>249</x>
<y>19</y>
<width>155</width>
<width>164</width>
<height>62</height>
</rect>
</property>
@@ -118,7 +118,7 @@ color: white;</string>
<rect>
<x>13</x>
<y>19</y>
<width>210</width>
<width>227</width>
<height>62</height>
</rect>
</property>
@@ -180,7 +180,7 @@ color: white;</string>
<rect>
<x>440</x>
<y>20</y>
<width>161</width>
<width>168</width>
<height>62</height>
</rect>
</property>
@@ -355,6 +355,31 @@ color: white;</string>
</property>
</widget>
</item>
<item>
<widget class="QFrame" name="mondayWarning">
<property name="minimumSize">
<size>
<width>16</width>
<height>16</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16</width>
<height>16</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">border-image: url(:/clock/pictures/warning.png) 0 0 0 0 stretch stretch;</string>
</property>
<property name="frameShape">
<enum>QFrame::StyledPanel</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Raised</enum>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_4">
<property name="orientation">
@@ -608,6 +633,31 @@ color: white;</string>
</property>
</widget>
</item>
<item>
<widget class="QFrame" name="tuesdayWarning">
<property name="minimumSize">
<size>
<width>16</width>
<height>16</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16</width>
<height>16</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">border-image: url(:/clock/pictures/warning.png) 0 0 0 0 stretch stretch;</string>
</property>
<property name="frameShape">
<enum>QFrame::StyledPanel</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Raised</enum>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_6">
<property name="orientation">
@@ -861,6 +911,31 @@ color: white;</string>
</property>
</widget>
</item>
<item>
<widget class="QFrame" name="wednesdayWarning">
<property name="minimumSize">
<size>
<width>16</width>
<height>16</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16</width>
<height>16</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">border-image: url(:/clock/pictures/warning.png) 0 0 0 0 stretch stretch;</string>
</property>
<property name="frameShape">
<enum>QFrame::StyledPanel</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Raised</enum>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_8">
<property name="orientation">
@@ -1114,6 +1189,31 @@ color: white;</string>
</property>
</widget>
</item>
<item>
<widget class="QFrame" name="thurdayWarning">
<property name="minimumSize">
<size>
<width>16</width>
<height>16</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16</width>
<height>16</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">border-image: url(:/clock/pictures/warning.png) 0 0 0 0 stretch stretch;</string>
</property>
<property name="frameShape">
<enum>QFrame::StyledPanel</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Raised</enum>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_10">
<property name="orientation">
@@ -1367,6 +1467,31 @@ color: white;</string>
</property>
</widget>
</item>
<item>
<widget class="QFrame" name="fridayWarning">
<property name="minimumSize">
<size>
<width>16</width>
<height>16</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16</width>
<height>16</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">border-image: url(:/clock/pictures/warning.png) 0 0 0 0 stretch stretch;</string>
</property>
<property name="frameShape">
<enum>QFrame::StyledPanel</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Raised</enum>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_2">
<property name="orientation">