/
waterstone
/
TaskList_Demo
Обзор
Документация
Войти
/
waterstone
/
TaskList_Demo
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
QPixmapCache
src/tasklist_main_view.ui
335 строк
9 KB
Peter Sakhno
Sort with table header
20 янв 2026, 22:22
20 янв 2026, 22:22
4ee091e
Код
Авторство
О чём код?
<?xml version="1.0" encoding="UTF-8"?> <ui version="4.0"> <class>TaskListMainView</class> <widget class="QWidget" name="TaskListMainView"> <property name="geometry"> <rect> <x>0</x> <y>0</y> <width>800</width> <height>600</height> </rect> </property> <layout class="QHBoxLayout" name="mainViewLayout" stretch="1,0"> <item> <widget class="QTableView" name="tableTaskList"> <property name="selectionBehavior"> <enum>QAbstractItemView::SelectionBehavior::SelectRows</enum> </property> <property name="sortingEnabled"> <bool>true</bool> </property> <attribute name="horizontalHeaderHighlightSections"> <bool>false</bool> </attribute> <attribute name="verticalHeaderVisible"> <bool>false</bool> </attribute> </widget> </item> <item> <layout class="QVBoxLayout" name="westLayout"> <item> <widget class="QGroupBox" name="groupBoxTasks"> <property name="title"> <string>Tasks</string> </property> <layout class="QVBoxLayout" name="groupBoxTasksLayout"> <item> <widget class="QPushButton" name="buttonAddNewTask"> <property name="text"> <string>Add new task</string> </property> </widget> </item> <item> <widget class="QPushButton" name="buttonDeleteAll"> <property name="text"> <string>Delete all</string> </property> </widget> </item> <item> <widget class="QPushButton" name="buttonDeleteSelectedTasks"> <property name="text"> <string>Delete selected</string> </property> </widget> </item> <item> <widget class="QPushButton" name="buttonStartSelectedTasks"> <property name="text"> <string>Start selected</string> </property> </widget> </item> <item> <widget class="QPushButton" name="buttonStopSelectedTasks"> <property name="text"> <string>Stop selected</string> </property> </widget> </item> </layout> </widget> </item> <item> <widget class="QGroupBox" name="groupBoxFilter"> <property name="title"> <string>Filtering</string> </property> <layout class="QVBoxLayout" name="groupBoxFilterLayout"> <item> <widget class="QComboBox" name="selectFilterMode"> <item> <property name="text"> <string>All</string> </property> </item> <item> <property name="text"> <string>Running</string> </property> </item> <item> <property name="text"> <string>Stopped</string> </property> </item> </widget> </item> </layout> </widget> </item> <item> <widget class="QGroupBox" name="groupBoxSelection"> <property name="title"> <string>Selection</string> </property> <layout class="QVBoxLayout" name="groupBoxSelectionLayout"> <item> <widget class="QPushButton" name="buttonSelectAll"> <property name="text"> <string>Select all</string> </property> </widget> </item> <item> <widget class="QPushButton" name="buttonUnselectAll"> <property name="text"> <string>Clear selection</string> </property> </widget> </item> </layout> </widget> </item> <item> <widget class="QGroupBox" name="groupBoxStyle"> <property name="title"> <string>Style</string> </property> <layout class="QVBoxLayout" name="groupBoxStyleLayout"> <item> <widget class="QComboBox" name="selectStyle"> <property name="sizeAdjustPolicy"> <enum>QComboBox::SizeAdjustPolicy::AdjustToContents</enum> </property> </widget> </item> </layout> </widget> </item> <item> <spacer name="verticalSpacer"> <property name="orientation"> <enum>Qt::Orientation::Vertical</enum> </property> <property name="sizeHint" stdset="0"> <size> <width>20</width> <height>0</height> </size> </property> </spacer> </item> </layout> </item> </layout> </widget> <resources/> <connections> <connection> <sender>buttonAddNewTask</sender> <signal>clicked()</signal> <receiver>TaskListMainView</receiver> <slot>OnAddNewTask()</slot> <hints> <hint type="sourcelabel"> <x>735</x> <y>48</y> </hint> <hint type="destinationlabel"> <x>399</x> <y>300</y> </hint> </hints> </connection> <connection> <sender>tableTaskList</sender> <signal>clicked(QModelIndex)</signal> <receiver>TaskListMainView</receiver> <slot>OnTableCellClicked(QModelIndex)</slot> <hints> <hint type="sourcelabel"> <x>341</x> <y>300</y> </hint> <hint type="destinationlabel"> <x>399</x> <y>300</y> </hint> </hints> </connection> <connection> <sender>buttonDeleteAll</sender> <signal>clicked()</signal> <receiver>TaskListMainView</receiver> <slot>OnDeleteAllTasks()</slot> <hints> <hint type="sourcelabel"> <x>735</x> <y>108</y> </hint> <hint type="destinationlabel"> <x>399</x> <y>300</y> </hint> </hints> </connection> <connection> <sender>buttonDeleteSelectedTasks</sender> <signal>clicked()</signal> <receiver>TaskListMainView</receiver> <slot>OnDeleteSelectedTasks()</slot> <hints> <hint type="sourcelabel"> <x>735</x> <y>78</y> </hint> <hint type="destinationlabel"> <x>399</x> <y>300</y> </hint> </hints> </connection> <connection> <sender>selectFilterMode</sender> <signal>currentIndexChanged(int)</signal> <receiver>TaskListMainView</receiver> <slot>OnFilterChanged()</slot> <hints> <hint type="sourcelabel"> <x>735</x> <y>263</y> </hint> <hint type="destinationlabel"> <x>399</x> <y>300</y> </hint> </hints> </connection> <connection> <sender>buttonSelectAll</sender> <signal>clicked()</signal> <receiver>TaskListMainView</receiver> <slot>OnSelectAll()</slot> <hints> <hint type="sourcelabel"> <x>735</x> <y>327</y> </hint> <hint type="destinationlabel"> <x>399</x> <y>300</y> </hint> </hints> </connection> <connection> <sender>buttonUnselectAll</sender> <signal>clicked()</signal> <receiver>TaskListMainView</receiver> <slot>OnClearSelection()</slot> <hints> <hint type="sourcelabel"> <x>735</x> <y>357</y> </hint> <hint type="destinationlabel"> <x>399</x> <y>300</y> </hint> </hints> </connection> <connection> <sender>selectStyle</sender> <signal>currentTextChanged(QString)</signal> <receiver>TaskListMainView</receiver> <slot>OnSelectStyle(QString)</slot> <hints> <hint type="sourcelabel"> <x>735</x> <y>422</y> </hint> <hint type="destinationlabel"> <x>399</x> <y>300</y> </hint> </hints> </connection> <connection> <sender>buttonStartSelectedTasks</sender> <signal>clicked()</signal> <receiver>TaskListMainView</receiver> <slot>OnStartSelectedTasks()</slot> <hints> <hint type="sourcelabel"> <x>735</x> <y>138</y> </hint> <hint type="destinationlabel"> <x>399</x> <y>300</y> </hint> </hints> </connection> <connection> <sender>buttonStopSelectedTasks</sender> <signal>clicked()</signal> <receiver>TaskListMainView</receiver> <slot>OnStopSelectedTasks()</slot> <hints> <hint type="sourcelabel"> <x>735</x> <y>168</y> </hint> <hint type="destinationlabel"> <x>399</x> <y>300</y> </hint> </hints> </connection> </connections> <slots> <slot>OnAddNewTask()</slot> <slot>OnTableCellClicked(QModelIndex)</slot> <slot>OnDeleteSelectedTasks()</slot> <slot>OnDeleteAllTasks()</slot> <slot>OnFilterChanged()</slot> <slot>OnSelectAll()</slot> <slot>OnClearSelection()</slot> <slot>OnSelectStyle(QString)</slot> <slot>OnStartSelectedTasks()</slot> <slot>OnStopSelectedTasks()</slot> </slots> </ui>