123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246 |
- <?xml version="1.0" encoding="UTF-8"?>
- <ui version="4.0">
- <class>%1</class>
- <widget class="QWidget" name="%1">
- <property name="geometry">
- <rect>
- <x>0</x>
- <y>0</y>
- <width>745</width>
- <height>559</height>
- </rect>
- </property>
- <property name="windowTitle">
- <string>%1</string>
- </property>
- <layout class="QVBoxLayout" name="verticalLayout">
- <property name="leftMargin">
- <number>0</number>
- </property>
- <property name="topMargin">
- <number>0</number>
- </property>
- <property name="rightMargin">
- <number>0</number>
- </property>
- <property name="bottomMargin">
- <number>0</number>
- </property>
- <item>
- <widget class="QFrame" name="frame">
- <property name="styleSheet">
- <string notr="true">
- QFrame{
- border:1px solid #cccccc;
- border-radius: 2px;
- background-color: white;
- }
- QPushButton{
- min-width:45px;
- min-height:20px;
- }
- </string>
- </property>
- <property name="frameShape">
- <enum>QFrame::StyledPanel</enum>
- </property>
- <property name="frameShadow">
- <enum>QFrame::Raised</enum>
- </property>
- <layout class="QHBoxLayout" name="horizontalLayout">
- <item>
- <widget class="QLineEdit" name="leQName">
- <property name="placeholderText">
- <string>按名称关键字查询</string>
- </property>
- </widget>
- </item>
- <item>
- <widget class="QPushButton" name="pbQuery">
- <property name="text">
- <string>查询</string>
- </property>
- <property name="shortcut">
- <string>Enter</string>
- </property>
- <property name="default">
- <bool>true</bool>
- </property>
- </widget>
- </item>
- <item>
- <widget class="QPushButton" name="pbSet">
- <property name="text">
- <string>重置</string>
- </property>
- </widget>
- </item>
- <item>
- <spacer name="horizontalSpacer_2">
- <property name="orientation">
- <enum>Qt::Horizontal</enum>
- </property>
- <property name="sizeHint" stdset="0">
- <size>
- <width>40</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
- </item>
- </layout>
- </widget>
- </item>
- <item>
- <widget class="TableView" name="tvData"/>
- </item>
- <item>
- <widget class="Pagination" name="pagination" native="true"/>
- </item>
- <item>
- <layout class="QHBoxLayout" name="horizontalLayout_2">
- <property name="topMargin">
- <number>0</number>
- </property>
- <item>
- <widget class="QPushButton" name="pbAdd">
- <property name="text">
- <string>添加</string>
- </property>
- </widget>
- </item>
- <item>
- <widget class="QPushButton" name="pbEdit">
- <property name="text">
- <string>修改</string>
- </property>
- </widget>
- </item>
- <item>
- <widget class="QPushButton" name="pbRemove">
- <property name="text">
- <string>删除</string>
- </property>
- </widget>
- </item>
- <item>
- <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>
- </layout>
- </item>
- </layout>
- </widget>
- <layoutdefault spacing="6" margin="11"/>
- <customwidgets>
- <customwidget>
- <class>Pagination</class>
- <extends>QWidget</extends>
- <header>Pagination.h</header>
- </customwidget>
- <customwidget>
- <class>TableView</class>
- <extends>QTableView</extends>
- <header location="global">TableView.h</header>
- </customwidget>
- </customwidgets>
- <resources/>
- <connections>
- <connection>
- <sender>pbQuery</sender>
- <signal>clicked()</signal>
- <receiver>%1</receiver>
- <slot>onQuery()</slot>
- <hints>
- <hint type="sourcelabel">
- <x>338</x>
- <y>31</y>
- </hint>
- <hint type="destinationlabel">
- <x>328</x>
- <y>-22</y>
- </hint>
- </hints>
- </connection>
- <connection>
- <sender>pbSet</sender>
- <signal>clicked()</signal>
- <receiver>%1</receiver>
- <slot>onReset()</slot>
- <hints>
- <hint type="sourcelabel">
- <x>409</x>
- <y>38</y>
- </hint>
- <hint type="destinationlabel">
- <x>420</x>
- <y>-20</y>
- </hint>
- </hints>
- </connection>
- <connection>
- <sender>pbAdd</sender>
- <signal>clicked()</signal>
- <receiver>%1</receiver>
- <slot>onAdd()</slot>
- <hints>
- <hint type="sourcelabel">
- <x>38</x>
- <y>594</y>
- </hint>
- <hint type="destinationlabel">
- <x>4</x>
- <y>590</y>
- </hint>
- </hints>
- </connection>
- <connection>
- <sender>pbEdit</sender>
- <signal>clicked()</signal>
- <receiver>%1</receiver>
- <slot>onEdit()</slot>
- <hints>
- <hint type="sourcelabel">
- <x>123</x>
- <y>596</y>
- </hint>
- <hint type="destinationlabel">
- <x>130</x>
- <y>608</y>
- </hint>
- </hints>
- </connection>
- <connection>
- <sender>pbRemove</sender>
- <signal>clicked()</signal>
- <receiver>%1</receiver>
- <slot>onRemove()</slot>
- <hints>
- <hint type="sourcelabel">
- <x>222</x>
- <y>590</y>
- </hint>
- <hint type="destinationlabel">
- <x>284</x>
- <y>614</y>
- </hint>
- </hints>
- </connection>
- </connections>
- <slots>
- <slot>onQuery()</slot>
- <slot>onReset()</slot>
- <slot>onAdd()</slot>
- <slot>onEdit()</slot>
- <slot>onRemove()</slot>
- </slots>
- </ui>
|