Dialog.ui 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <ui version="4.0">
  3. <class>Dialog</class>
  4. <widget class="QDialog" name="Dialog">
  5. <property name="geometry">
  6. <rect>
  7. <x>0</x>
  8. <y>0</y>
  9. <width>276</width>
  10. <height>162</height>
  11. </rect>
  12. </property>
  13. <property name="windowTitle">
  14. <string notr="true">Dialog</string>
  15. </property>
  16. <property name="modal">
  17. <bool>true</bool>
  18. </property>
  19. <layout class="QVBoxLayout" name="layout">
  20. <property name="margin">
  21. <number>0</number>
  22. </property>
  23. <item>
  24. <widget class="QLabel" name="header">
  25. <property name="styleSheet">
  26. <string notr="true">background-color: rgb(255, 255, 255);</string>
  27. </property>
  28. <property name="frameShape">
  29. <enum>QFrame::Box</enum>
  30. </property>
  31. <property name="frameShadow">
  32. <enum>QFrame::Sunken</enum>
  33. </property>
  34. <property name="text">
  35. <string notr="true">&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;
  36. &lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
  37. p, li { white-space: pre-wrap; }
  38. &lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;&quot;&gt;
  39. &lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-weight:600;&quot;&gt;%1&lt;/span&gt;&lt;/p&gt;
  40. &lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:20px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;%2&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
  41. </property>
  42. <property name="textFormat">
  43. <enum>Qt::RichText</enum>
  44. </property>
  45. <property name="wordWrap">
  46. <bool>true</bool>
  47. </property>
  48. <property name="margin">
  49. <number>6</number>
  50. </property>
  51. <property name="indent">
  52. <number>20</number>
  53. </property>
  54. </widget>
  55. </item>
  56. <item>
  57. <widget class="QWidget" name="inner" native="true">
  58. <property name="sizePolicy">
  59. <sizepolicy hsizetype="Preferred" vsizetype="Expanding">
  60. <horstretch>0</horstretch>
  61. <verstretch>0</verstretch>
  62. </sizepolicy>
  63. </property>
  64. </widget>
  65. </item>
  66. <item>
  67. <widget class="Line" name="line">
  68. <property name="orientation">
  69. <enum>Qt::Horizontal</enum>
  70. </property>
  71. </widget>
  72. </item>
  73. <item>
  74. <layout class="QHBoxLayout" name="layout2">
  75. <property name="margin">
  76. <number>6</number>
  77. </property>
  78. <item>
  79. <spacer name="horizontalSpacer">
  80. <property name="orientation">
  81. <enum>Qt::Horizontal</enum>
  82. </property>
  83. <property name="sizeHint" stdset="0">
  84. <size>
  85. <width>40</width>
  86. <height>20</height>
  87. </size>
  88. </property>
  89. </spacer>
  90. </item>
  91. <item>
  92. <widget class="QPushButton" name="OK">
  93. <property name="text">
  94. <string>OK</string>
  95. </property>
  96. </widget>
  97. </item>
  98. <item>
  99. <widget class="QPushButton" name="Cancel">
  100. <property name="text">
  101. <string>Cancel</string>
  102. </property>
  103. </widget>
  104. </item>
  105. </layout>
  106. </item>
  107. </layout>
  108. </widget>
  109. <resources/>
  110. <connections>
  111. <connection>
  112. <sender>OK</sender>
  113. <signal>clicked()</signal>
  114. <receiver>Dialog</receiver>
  115. <slot>accept()</slot>
  116. <hints>
  117. <hint type="sourcelabel">
  118. <x>143</x>
  119. <y>138</y>
  120. </hint>
  121. <hint type="destinationlabel">
  122. <x>137</x>
  123. <y>80</y>
  124. </hint>
  125. </hints>
  126. </connection>
  127. <connection>
  128. <sender>Cancel</sender>
  129. <signal>clicked()</signal>
  130. <receiver>Dialog</receiver>
  131. <slot>reject()</slot>
  132. <hints>
  133. <hint type="sourcelabel">
  134. <x>228</x>
  135. <y>138</y>
  136. </hint>
  137. <hint type="destinationlabel">
  138. <x>137</x>
  139. <y>80</y>
  140. </hint>
  141. </hints>
  142. </connection>
  143. </connections>
  144. </ui>