diff options
author | Remco Burema <r.burema@ultimaker.com> | 2021-12-28 16:59:25 +0300 |
---|---|---|
committer | Remco Burema <r.burema@ultimaker.com> | 2021-12-28 16:59:25 +0300 |
commit | 7021ff0b6777dd25f60f4a16280cc40a4a1086a7 (patch) | |
tree | 6c7bc7b449a7f1aece166f821db5c65941d41bca /cura/API | |
parent | 32b52c6166d90898759177d8fac198d96bc83c8c (diff) |
Qt5->Qt6: Replace QT_ENUMS with pyqtEnum.
part of CURA-8591
Diffstat (limited to 'cura/API')
-rw-r--r-- | cura/API/Account.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cura/API/Account.py b/cura/API/Account.py index ca4bfe1c32..993e53e539 100644 --- a/cura/API/Account.py +++ b/cura/API/Account.py @@ -1,8 +1,8 @@ # Copyright (c) 2021 Ultimaker B.V. # Cura is released under the terms of the LGPLv3 or higher. - +import enum from datetime import datetime -from PyQt6.QtCore import QObject, pyqtSignal, pyqtSlot, pyqtProperty, QTimer, Q_ENUMS +from PyQt6.QtCore import QObject, pyqtSignal, pyqtSlot, pyqtProperty, QTimer, pyqtEnum from typing import Any, Optional, Dict, TYPE_CHECKING, Callable from UM.Logger import Logger @@ -18,7 +18,7 @@ if TYPE_CHECKING: i18n_catalog = i18nCatalog("cura") -class SyncState: +class SyncState(enum.IntEnum): """QML: Cura.AccountSyncState""" SYNCING = 0 SUCCESS = 1 @@ -41,7 +41,7 @@ class Account(QObject): # The interval in which sync services are automatically triggered SYNC_INTERVAL = 60.0 # seconds - Q_ENUMS(SyncState) + pyqtEnum(SyncState) loginStateChanged = pyqtSignal(bool) """Signal emitted when user logged in or out""" |