WIP: Add gotoPage

This commit is contained in:
Lipu Fei 2019-03-11 15:34:53 +01:00
parent 53ea944da1
commit cc35eb0195
5 changed files with 42 additions and 2 deletions

View file

@ -3,7 +3,7 @@
import os
from typing import TYPE_CHECKING, Optional
from PyQt5.QtCore import QUrl, Qt
from PyQt5.QtCore import QUrl, Qt, pyqtSlot
from UM.Qt.ListModel import ListModel
from UM.Resources import Resources
@ -11,6 +11,7 @@ from UM.Resources import Resources
if TYPE_CHECKING:
from PyQt5.QtCore import QObject
class WelcomePagesModel(ListModel):
IdRole = Qt.UserRole + 1 # Page ID