Commit graph

10 commits

Author SHA1 Message Date
Alexey Bogomolov
e917d2b91f
Qt UI: Multiselection combobox PySide6 compatibility (#5314)
* convert state to value for pyside compatibility
use ItemIsUserTristate for keyboard event

* use whole field length to select item

* process keyboard tristate correctly

* get initial check state data as value

* try get state value for backwards compatibility

* formatting

* revert MouseButtonRelease event checks

* added new utils constant for tristate constant

* fixed both multiselection comboboxes

* fixed sorting of projects in project manager

* forgotten conversion of enum to int

---------

Co-authored-by: Jakub Trllo <jakub.trllo@gmail.com>
2023-07-18 16:00:36 +02:00
Jakub Trllo
679becc3a8 fix work with checkstate constants 2023-01-06 18:51:51 +01:00
Jakub Trllo
3468a285c1 use qtpy in remaining qt utils 2022-12-21 13:52:52 +01:00
iLLiCiTiT
3ac669d9a5 moved task roles to tasks_widget as it's only place where are used 2021-11-24 21:10:14 +01:00
iLLiCiTiT
b2a7424338 fixed TASK_ORDER_ROLE 2021-11-15 17:53:50 +01:00
Petr Kalis
05983fc1eb OP-1906 - refactor - simplified roles
Removed FullItemRole, replaced with more primitive returning roles
2021-11-09 13:43:17 +01:00
Petr Kalis
93514721da OP-1906 - refactor - roles in Site Sync Queue
Used new role wrere possible. RepresentationModel stuck with old roles, much more complicated refactor needed in the future.
2021-11-09 11:40:19 +01:00
Petr Kalis
a3a6fbe8ac OP-1906 - refactor - returned data structure simplified
Data returned should be simple values, not arrays/dictionaries etc.

Do not import from sync_server if not necessary (because of Python2)
2021-11-08 18:27:47 +01:00
iLLiCiTiT
45ea46ddf6 added copy of project model into utils 2021-10-29 18:43:27 +02:00
iLLiCiTiT
52801768d8 moved task model into tools/utils/models.py 2021-10-29 18:32:39 +02:00