[Pkg-privacy-commits] [tails-installer] 78/210: Change QApplication to QGuiApplication to get rid of Widgets dependency

Intrigeri intrigeri at moszumanska.debian.org
Wed May 24 15:26:30 UTC 2017


This is an automated email from the git hooks/post-receive script.

intrigeri pushed a commit to tag 3.90.0
in repository tails-installer.

commit 9c97bc63701240c55c0d1f6223c50ba6acfe5766
Author: Martin Briza <mbriza at redhat.com>
Date:   Thu Apr 16 12:33:01 2015 +0200

    Change QApplication to QGuiApplication to get rid of Widgets dependency
---
 liveusb/gui.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/liveusb/gui.py b/liveusb/gui.py
index 2252eae..770a55d 100755
--- a/liveusb/gui.py
+++ b/liveusb/gui.py
@@ -33,7 +33,7 @@ import urlparse
 from time import sleep
 from datetime import datetime
 from PyQt5.QtCore import pyqtProperty, pyqtSlot, QObject, QUrl, QDateTime, pyqtSignal, QThread, QAbstractListModel, QSortFilterProxyModel, QModelIndex, Qt
-from PyQt5.QtWidgets import QApplication
+from PyQt5.QtGui import QGuiApplication
 from PyQt5.QtQml import qmlRegisterType, qmlRegisterUncreatableType, QQmlComponent, QQmlApplicationEngine, QQmlListProperty
 from PyQt5.QtQuick import QQuickView
 
@@ -919,10 +919,10 @@ class LiveUSBData(QObject):
         return self._optionValues[index]
 
 
-class LiveUSBApp(QApplication):
+class LiveUSBApp(QGuiApplication):
     """ Main application class """
     def __init__(self, opts, args):
-        QApplication.__init__(self, args)
+        QGuiApplication.__init__(self, args)
         qmlRegisterUncreatableType(ReleaseDownload, 'LiveUSB', 1, 0, 'Download', 'Not creatable directly, use the liveUSBData instance instead')
         qmlRegisterUncreatableType(ReleaseWriter, 'LiveUSB', 1, 0, 'Writer', 'Not creatable directly, use the liveUSBData instance instead')
         qmlRegisterUncreatableType(ReleaseListModel, 'LiveUSB', 1, 0, 'ReleaseModel', 'Not creatable directly, use the liveUSBData instance instead')

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/tails-installer.git



More information about the Pkg-privacy-commits mailing list