[Pkg-privacy-commits] [tails-installer] 02/08: Use QApplication instead of QGuiApplication
Intrigeri
intrigeri at moszumanska.debian.org
Wed May 24 15:27:36 UTC 2017
This is an automated email from the git hooks/post-receive script.
intrigeri pushed a commit to tag 3.93.1
in repository tails-installer.
commit 6e5704f6408bb9cc1101933e8cbe59880b41b1ab
Author: Martin Briza <mbriza at redhat.com>
Date: Thu Apr 21 11:27:17 2016 +0200
Use QApplication instead of QGuiApplication
Fixes issues with the ugly QML file dialog
---
liveusb/gui.py | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/liveusb/gui.py b/liveusb/gui.py
index 4f00692..2a8b204 100755
--- a/liveusb/gui.py
+++ b/liveusb/gui.py
@@ -43,6 +43,7 @@ from time import sleep
from datetime import datetime
from PyQt5.QtCore import pyqtProperty, pyqtSlot, QObject, QUrl, QDateTime, pyqtSignal, QThread, QAbstractListModel, QSortFilterProxyModel, QModelIndex, Qt, QTranslator, QLocale, QTimer
from PyQt5.QtGui import QGuiApplication
+from PyQt5.QtWidgets import QApplication
from PyQt5.QtQml import qmlRegisterType, qmlRegisterUncreatableType, QQmlComponent, QQmlApplicationEngine, QQmlListProperty, QQmlEngine
from PyQt5 import QtQuick
from setuptools.sandbox import save_pkg_resources_state
@@ -808,10 +809,10 @@ class LiveUSBData(QObject):
for r in self.releaseData:
r.download.finished = False
-class LiveUSBApp(QGuiApplication):
+class LiveUSBApp(QApplication):
""" Main application class """
def __init__(self, opts, args):
- QGuiApplication.__init__(self, args)
+ QApplication.__init__(self, args)
translator = QTranslator()
translator.load(QLocale.system().name(), "po")
self.installTranslator(translator)
--
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