@@ -204,7 +204,7 @@ def _execute_deferred(self, callback):
204
204
unreal .log ("{0} _execute_deferred called with {1}" .format (self , callback .__str__ ()))
205
205
self ._callback = callback
206
206
207
- from sgtk .platform .qt5 import QtCore
207
+ from sgtk .platform .qt import QtCore
208
208
QtCore .QTimer .singleShot (0 , self ._execute_within_exception_trap )
209
209
210
210
def _execute_within_exception_trap (self ):
@@ -224,16 +224,16 @@ def _execute_within_exception_trap(self):
224
224
225
225
@unreal .ufunction (override = True )
226
226
def shutdown (self ):
227
- from sgtk .platform .qt5 import QtWidgets
227
+ from sgtk .platform .qt import QtGui
228
228
229
229
engine = sgtk .platform .current_engine ()
230
230
if engine is not None :
231
231
unreal .log ("Shutting down %s" % self .__class__ .__name__ )
232
232
233
233
# destroy_engine of tk-unreal will take care of closing all dialogs that are still opened
234
234
engine .destroy ()
235
- QtWidgets .QApplication .instance ().quit ()
236
- QtWidgets .QApplication .processEvents ()
235
+ QtGui .QApplication .instance ().quit ()
236
+ QtGui .QApplication .processEvents ()
237
237
238
238
@staticmethod
239
239
def object_path (asset_data ):
@@ -366,7 +366,7 @@ def _jump_to_sg(self):
366
366
"""
367
367
Callback to Jump to SG from context.
368
368
"""
369
- from sgtk .platform .qt5 import QtGui , QtCore
369
+ from sgtk .platform .qt import QtGui , QtCore
370
370
url = self ._get_context_url (sgtk .platform .current_engine ())
371
371
QtGui .QDesktopServices .openUrl (QtCore .QUrl (url ))
372
372
0 commit comments