aboutsummaryrefslogtreecommitdiffstats
path: root/examples/widgets/richtext/textedit
diff options
context:
space:
mode:
Diffstat (limited to 'examples/widgets/richtext/textedit')
-rw-r--r--examples/widgets/richtext/textedit/main.py45
-rw-r--r--examples/widgets/richtext/textedit/textedit.py105
-rw-r--r--examples/widgets/richtext/textedit/textedit_rc.py102
3 files changed, 92 insertions, 160 deletions
diff --git a/examples/widgets/richtext/textedit/main.py b/examples/widgets/richtext/textedit/main.py
index b8d582bb0..3bebace78 100644
--- a/examples/widgets/richtext/textedit/main.py
+++ b/examples/widgets/richtext/textedit/main.py
@@ -1,42 +1,6 @@
-#############################################################################
-##
-## Copyright (C) 2021 The Qt Company Ltd.
-## Contact: http://www.qt.io/licensing/
-##
-## This file is part of the Qt for Python examples of the Qt Toolkit.
-##
-## $QT_BEGIN_LICENSE:BSD$
-## You may use this file under the terms of the BSD license as follows:
-##
-## "Redistribution and use in source and binary forms, with or without
-## modification, are permitted provided that the following conditions are
-## met:
-## * Redistributions of source code must retain the above copyright
-## notice, this list of conditions and the following disclaimer.
-## * Redistributions in binary form must reproduce the above copyright
-## notice, this list of conditions and the following disclaimer in
-## the documentation and/or other materials provided with the
-## distribution.
-## * Neither the name of The Qt Company Ltd nor the names of its
-## contributors may be used to endorse or promote products derived
-## from this software without specific prior written permission.
-##
-##
-## THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-## "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-## LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-## A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-## OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-## DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-## THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-## (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-## OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-##
-## $QT_END_LICENSE$
-##
-#############################################################################
+# Copyright (C) 2022 The Qt Company Ltd.
+# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
+from __future__ import annotations
"""PySide6 port of the widgets/richtext/textedit example from Qt v6.x"""
@@ -44,12 +8,11 @@ import sys
from argparse import ArgumentParser, RawTextHelpFormatter
from PySide6.QtCore import QCoreApplication, qVersion
-from PySide6.QtGui import QScreen
from PySide6.QtWidgets import QApplication
from textedit import TextEdit
-import textedit_rc
+import textedit_rc # noqa: F401
if __name__ == '__main__':
diff --git a/examples/widgets/richtext/textedit/textedit.py b/examples/widgets/richtext/textedit/textedit.py
index 1bcec7ed4..428a5eae3 100644
--- a/examples/widgets/richtext/textedit/textedit.py
+++ b/examples/widgets/richtext/textedit/textedit.py
@@ -1,54 +1,18 @@
-#############################################################################
-##
-## Copyright (C) 2021 The Qt Company Ltd.
-## Contact: http://www.qt.io/licensing/
-##
-## This file is part of the Qt for Python examples of the Qt Toolkit.
-##
-## $QT_BEGIN_LICENSE:BSD$
-## You may use this file under the terms of the BSD license as follows:
-##
-## "Redistribution and use in source and binary forms, with or without
-## modification, are permitted provided that the following conditions are
-## met:
-## * Redistributions of source code must retain the above copyright
-## notice, this list of conditions and the following disclaimer.
-## * Redistributions in binary form must reproduce the above copyright
-## notice, this list of conditions and the following disclaimer in
-## the documentation and/or other materials provided with the
-## distribution.
-## * Neither the name of The Qt Company Ltd nor the names of its
-## contributors may be used to endorse or promote products derived
-## from this software without specific prior written permission.
-##
-##
-## THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-## "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-## LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-## A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-## OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-## DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-## THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-## (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-## OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-##
-## $QT_END_LICENSE$
-##
-#############################################################################
+# Copyright (C) 2022 The Qt Company Ltd.
+# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
+from __future__ import annotations
import sys
-from PySide6.QtCore import (QCoreApplication, QDir, QFile, QFileInfo, QMimeData,
+from PySide6.QtCore import (QCoreApplication, QDir, QFile, QFileInfo,
QMimeDatabase, QUrl, Qt, Slot)
-from PySide6.QtGui import (QAction, QActionGroup, QGuiApplication, QClipboard,
- QCloseEvent, QFont, QFontDatabase, QFontInfo, QIcon,
- QKeySequence, QPixmap, QTextBlockFormat,
+from PySide6.QtGui import (QAction, QActionGroup, QColor, QGuiApplication,
+ QFont, QFontDatabase, QFontInfo, QIcon,
+ QKeySequence, QPalette, QPixmap, QTextBlockFormat,
QTextCharFormat, QTextCursor, QTextDocumentWriter,
- QTextList, QTextListFormat)
+ QTextFormat, QTextListFormat)
from PySide6.QtWidgets import (QApplication, QMainWindow, QColorDialog, QComboBox,
- QDialog, QFileDialog, QFontComboBox, QStatusBar,
- QTextEdit, QToolBar, QMenu, QMenuBar, QMessageBox)
+ QDialog, QFileDialog, QFontComboBox,
+ QTextEdit, QMessageBox)
from PySide6.QtPrintSupport import (QAbstractPrintDialog, QPrinter,
QPrintDialog, QPrintPreviewDialog)
@@ -77,7 +41,7 @@ class TextEdit(QMainWindow):
def __init__(self, parent=None):
super().__init__(parent)
if sys.platform == 'darwin':
- setUnifiedTitleAndToolBarOnMac(True)
+ self.setUnifiedTitleAndToolBarOnMac(True)
self.setWindowTitle(QCoreApplication.applicationName())
self._text_edit = QTextEdit(self)
@@ -92,7 +56,7 @@ class TextEdit(QMainWindow):
help_menu = self.menuBar().addMenu("Help")
help_menu.addAction("About", self.about)
- help_menu.addAction("About &Qt", qApp.aboutQt)
+ help_menu.addAction("About &Qt", qApp.aboutQt) # noqa: F821
text_font = QFont("Helvetica")
text_font.setStyleHint(QFont.SansSerif)
@@ -138,13 +102,14 @@ class TextEdit(QMainWindow):
tb = self.addToolBar("File self.actions")
menu = self.menuBar().addMenu("&File")
- icon = QIcon.fromTheme("document-new", QIcon(RSRC_PATH + "/filenew.png"))
+ icon = QIcon.fromTheme(QIcon.ThemeIcon.DocumentNew,
+ QIcon(RSRC_PATH + "/filenew.png"))
a = menu.addAction(icon, "&New", self.file_new)
tb.addAction(a)
a.setPriority(QAction.LowPriority)
a.setShortcut(QKeySequence.New)
- icon = QIcon.fromTheme("document-open",
+ icon = QIcon.fromTheme(QIcon.ThemeIcon.DocumentOpen,
QIcon(RSRC_PATH + "/fileopen.png"))
a = menu.addAction(icon, "&Open...", self.file_open)
a.setShortcut(QKeySequence.Open)
@@ -152,7 +117,7 @@ class TextEdit(QMainWindow):
menu.addSeparator()
- icon = QIcon.fromTheme("document-save",
+ icon = QIcon.fromTheme(QIcon.ThemeIcon.DocumentSave,
QIcon(RSRC_PATH + "/filesave.png"))
self._action_save = menu.addAction(icon, "&Save", self.file_save)
self._action_save.setShortcut(QKeySequence.Save)
@@ -163,7 +128,7 @@ class TextEdit(QMainWindow):
a.setPriority(QAction.LowPriority)
menu.addSeparator()
- icon = QIcon.fromTheme("document-print",
+ icon = QIcon.fromTheme(QIcon.ThemeIcon.DocumentPrint,
QIcon(RSRC_PATH + "/fileprint.png"))
a = menu.addAction(icon, "&Print...", self.file_print)
a.setPriority(QAction.LowPriority)
@@ -188,32 +153,36 @@ class TextEdit(QMainWindow):
tb = self.addToolBar("Edit self.actions")
menu = self.menuBar().addMenu("&Edit")
- icon = QIcon.fromTheme("edit-undo",
+ icon = QIcon.fromTheme(QIcon.ThemeIcon.EditUndo,
QIcon(RSRC_PATH + "/editundo.png"))
self._action_undo = menu.addAction(icon, "&Undo", self._text_edit.undo)
self._action_undo.setShortcut(QKeySequence.Undo)
tb.addAction(self._action_undo)
- icon = QIcon.fromTheme("edit-redo", QIcon(RSRC_PATH + "/editredo.png"))
+ icon = QIcon.fromTheme(QIcon.ThemeIcon.EditRedo,
+ QIcon(RSRC_PATH + "/editredo.png"))
self._action_redo = menu.addAction(icon, "&Redo", self._text_edit.redo)
self._action_redo.setPriority(QAction.LowPriority)
self._action_redo.setShortcut(QKeySequence.Redo)
tb.addAction(self._action_redo)
menu.addSeparator()
- icon = QIcon.fromTheme("edit-cut", QIcon(RSRC_PATH + "/editcut.png"))
+ icon = QIcon.fromTheme(QIcon.ThemeIcon.EditCut,
+ QIcon(RSRC_PATH + "/editcut.png"))
self._action_cut = menu.addAction(icon, "Cu&t", self._text_edit.cut)
self._action_cut.setPriority(QAction.LowPriority)
self._action_cut.setShortcut(QKeySequence.Cut)
tb.addAction(self._action_cut)
- icon = QIcon.fromTheme("edit-copy", QIcon(RSRC_PATH + "/editcopy.png"))
+ icon = QIcon.fromTheme(QIcon.ThemeIcon.EditCopy,
+ QIcon(RSRC_PATH + "/editcopy.png"))
self._action_copy = menu.addAction(icon, "&Copy", self._text_edit.copy)
self._action_copy.setPriority(QAction.LowPriority)
self._action_copy.setShortcut(QKeySequence.Copy)
tb.addAction(self._action_copy)
- icon = QIcon.fromTheme("edit-paste", QIcon(RSRC_PATH + "/editpaste.png"))
+ icon = QIcon.fromTheme(QIcon.ThemeIcon.EditPaste,
+ QIcon(RSRC_PATH + "/editpaste.png"))
self._action_paste = menu.addAction(icon, "&Paste", self._text_edit.paste)
self._action_paste.setPriority(QAction.LowPriority)
self._action_paste.setShortcut(QKeySequence.Paste)
@@ -227,7 +196,7 @@ class TextEdit(QMainWindow):
tb = self.addToolBar("Format self.actions")
menu = self.menuBar().addMenu("F&ormat")
- icon = QIcon.fromTheme("format-text-bold",
+ icon = QIcon.fromTheme(QIcon.ThemeIcon.FormatTextBold,
QIcon(RSRC_PATH + "/textbold.png"))
self._action_text_bold = menu.addAction(icon, "&Bold", self.text_bold)
self._action_text_bold.setShortcut(Qt.CTRL | Qt.Key_B)
@@ -238,7 +207,7 @@ class TextEdit(QMainWindow):
tb.addAction(self._action_text_bold)
self._action_text_bold.setCheckable(True)
- icon = QIcon.fromTheme("format-text-italic",
+ icon = QIcon.fromTheme(QIcon.ThemeIcon.FormatTextItalic,
QIcon(RSRC_PATH + "/textitalic.png"))
self._action_text_italic = menu.addAction(icon, "&Italic", self.text_italic)
self._action_text_italic.setPriority(QAction.LowPriority)
@@ -249,7 +218,7 @@ class TextEdit(QMainWindow):
tb.addAction(self._action_text_italic)
self._action_text_italic.setCheckable(True)
- icon = QIcon.fromTheme("format-text-underline",
+ icon = QIcon.fromTheme(QIcon.ThemeIcon.FormatTextUnderline,
QIcon(RSRC_PATH + "/textunder.png"))
self._action_text_underline = menu.addAction(icon, "&Underline",
self.text_underline)
@@ -263,36 +232,36 @@ class TextEdit(QMainWindow):
menu.addSeparator()
- icon = QIcon.fromTheme("format-justify-left",
+ icon = QIcon.fromTheme(QIcon.ThemeIcon.FormatJustifyLeft,
QIcon(RSRC_PATH + "/textleft.png"))
self._action_align_left = QAction(icon, "&Left", self)
self._action_align_left.setShortcut(Qt.CTRL | Qt.Key_L)
self._action_align_left.setCheckable(True)
self._action_align_left.setPriority(QAction.LowPriority)
- icon = QIcon.fromTheme("format-justify-center",
+ icon = QIcon.fromTheme(QIcon.ThemeIcon.FormatJustifyCenter,
QIcon(RSRC_PATH + "/textcenter.png"))
self._action_align_center = QAction(icon, "C&enter", self)
self._action_align_center.setShortcut(Qt.CTRL | Qt.Key_E)
self._action_align_center.setCheckable(True)
self._action_align_center.setPriority(QAction.LowPriority)
- icon = QIcon.fromTheme("format-justify-right",
+ icon = QIcon.fromTheme(QIcon.ThemeIcon.FormatJustifyRight,
QIcon(RSRC_PATH + "/textright.png"))
self._action_align_right = QAction(icon, "&Right", self)
self._action_align_right.setShortcut(Qt.CTRL | Qt.Key_R)
self._action_align_right.setCheckable(True)
self._action_align_right.setPriority(QAction.LowPriority)
- icon = QIcon.fromTheme("format-justify-fill",
+ icon = QIcon.fromTheme(QIcon.ThemeIcon.FormatJustifyFill,
QIcon(RSRC_PATH + "/textjustify.png"))
self._action_align_justify = QAction(icon, "&Justify", self)
self._action_align_justify.setShortcut(Qt.CTRL | Qt.Key_J)
self._action_align_justify.setCheckable(True)
self._action_align_justify.setPriority(QAction.LowPriority)
- icon = QIcon.fromTheme("format-indent-more",
+ icon = QIcon.fromTheme(QIcon.ThemeIcon.FormatIndentMore,
QIcon(RSRC_PATH + "/format-indent-more.png"))
self._action_indent_more = menu.addAction(icon, "&Indent", self.indent)
self._action_indent_more.setShortcut(Qt.CTRL | Qt.Key_BracketRight)
self._action_indent_more.setPriority(QAction.LowPriority)
- icon = QIcon.fromTheme("format-indent-less",
+ icon = QIcon.fromTheme(QIcon.ThemeIcon.FormatIndentLess,
QIcon(RSRC_PATH + "/format-indent-less.png"))
self._action_indent_less = menu.addAction(icon, "&Unindent",
self.unindent)
@@ -443,7 +412,7 @@ class TextEdit(QMainWindow):
@Slot()
def file_save(self):
if not self._file_name or self._file_name.startswith(":/"):
- return fileSaveAs()
+ return self.file_save_as()
writer = QTextDocumentWriter(self._file_name)
document = self._text_edit.document()
@@ -658,7 +627,7 @@ class TextEdit(QMainWindow):
above = QTextCursor(cursor)
above.movePosition(QTextCursor.Up)
if (above.currentList()
- and list_fmt.indent() + amount == above.currentList().format().indent()):
+ and list_fmt.indent() + amount == above.currentList().format().indent()):
above.currentList().add(cursor.block())
else:
list_fmt.setIndent(list_fmt.indent() + amount)
diff --git a/examples/widgets/richtext/textedit/textedit_rc.py b/examples/widgets/richtext/textedit/textedit_rc.py
index 6d4ab531b..49c024529 100644
--- a/examples/widgets/richtext/textedit/textedit_rc.py
+++ b/examples/widgets/richtext/textedit/textedit_rc.py
@@ -1,6 +1,6 @@
# Resource object code (Python 3)
# Created by: object code
-# Created by: The Resource Compiler for Qt version 6.2.0
+# Created by: The Resource Compiler for Qt version 6.2.2
# WARNING! All changes made in this file will be lost!
from PySide6 import QtCore
@@ -5913,7 +5913,7 @@ qt_resource_struct = b"\
\x00\x00\x00\x00\x00\x02\x00\x00\x00\x02\x00\x00\x00\x01\
\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x12\x00\x01\x00\x00\x00\x01\x00\x00\x00\x00\
-\x00\x00\x01u\xf9\xcc\xb0+\
+\x00\x00\x01z\xe7\xee'\x0d\
\x00\x00\x00\x00\x00\x02\x00\x00\x00\x03\x00\x00\x00\x03\
\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00V\x00\x02\x00\x00\x00\x18\x00\x00\x00\x1e\
@@ -5921,103 +5921,103 @@ qt_resource_struct = b"\
\x00\x00\x000\x00\x02\x00\x00\x00\x18\x00\x00\x00\x06\
\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00<\x00\x00\x00\x00\x00\x01\x00\x00\x0a2\
-\x00\x00\x01u\xf9\xcc\xb0+\
+\x00\x00\x01z\xe7\xee'\x0d\
\x00\x00\x01\xde\x00\x00\x00\x00\x00\x01\x00\x01*\xfa\
-\x00\x00\x01u\xf9\xcc\xb0+\
+\x00\x00\x01z\xe7\xee'\x0d\
\x00\x00\x01\x16\x00\x00\x00\x00\x00\x01\x00\x00\xf9\xea\
-\x00\x00\x01u\xf9\xcc\xb0+\
+\x00\x00\x01z\xe7\xee'\x0d\
\x00\x00\x00\x9e\x00\x00\x00\x00\x00\x01\x00\x00\xe5\xe4\
-\x00\x00\x01u\xf9\xcc\xb0+\
+\x00\x00\x01z\xe7\xee'\x0d\
\x00\x00\x02z\x00\x00\x00\x00\x00\x01\x00\x01B:\
-\x00\x00\x01u\xf9\xcc\xb0+\
+\x00\x00\x01z\xe7\xee'\x0d\
\x00\x00\x01\xa0\x00\x00\x00\x00\x00\x01\x00\x01$\x1c\
-\x00\x00\x01u\xf9\xcc\xb0+\
+\x00\x00\x01z\xe7\xee'\x0d\
\x00\x00\x01v\x00\x00\x00\x00\x00\x01\x00\x01\x09\x14\
-\x00\x00\x01yH\x0a\x8c\xbe\
+\x00\x00\x01z\xe7\xee'\x0d\
\x00\x00\x02 \x00\x00\x00\x00\x00\x01\x00\x0147\
-\x00\x00\x01u\xf9\xcc\xb0+\
+\x00\x00\x01z\xe7\xee'\x0d\
\x00\x00\x00\xd8\x00\x00\x00\x00\x00\x01\x00\x00\xf0n\
-\x00\x00\x01u\xf9\xcc\xb0+\
+\x00\x00\x01z\xe7\xee'\x0d\
\x00\x00\x018\x00\x00\x00\x00\x00\x01\x00\x00\xfca\
-\x00\x00\x01u\xf9\xcc\xb0+\
+\x00\x00\x01z\xe7\xee'\x0d\
\x00\x00\x01X\x00\x00\x00\x00\x00\x01\x00\x01\x02\x15\
-\x00\x00\x01u\xf9\xcc\xb0+\
+\x00\x00\x01z\xe7\xee'\x0d\
\x00\x00\x03\x14\x00\x00\x00\x00\x00\x01\x00\x01R\xe7\
-\x00\x00\x01u\xf9\xcc\xb0+\
+\x00\x00\x01z\xe7\xee'\x0d\
\x00\x00\x00b\x00\x00\x00\x00\x00\x01\x00\x00\xdem\
-\x00\x00\x01u\xf9\xcc\xb0+\
+\x00\x00\x01z\xe7\xee'\x0d\
\x00\x00\x00~\x00\x00\x00\x00\x00\x01\x00\x00\xe3;\
-\x00\x00\x01u\xf9\xcc\xb0+\
+\x00\x00\x01z\xe7\xee'\x0d\
\x00\x00\x02>\x00\x00\x00\x00\x00\x01\x00\x016\xdc\
-\x00\x00\x01u\xf9\xcc\xb0+\
+\x00\x00\x01z\xe7\xee'\x0d\
\x00\x00\x03h\x00\x00\x00\x00\x00\x01\x00\x01Z\xdd\
-\x00\x00\x01u\xf9\xcc\xb0+\
+\x00\x00\x01z\xe7\xee'\x0d\
\x00\x00\x03F\x00\x00\x00\x00\x00\x01\x00\x01W\x9c\
-\x00\x00\x01u\xf9\xcc\xb0+\
+\x00\x00\x01z\xe7\xee'\x0d\
\x00\x00\x02\xf6\x00\x00\x00\x00\x00\x01\x00\x01M\xb6\
-\x00\x00\x01u\xf9\xcc\xb0+\
+\x00\x00\x01z\xe7\xee'\x0d\
\x00\x00\x02\x02\x00\x00\x00\x00\x00\x01\x00\x01-\xb5\
-\x00\x00\x01u\xf9\xcc\xb0+\
+\x00\x00\x01z\xe7\xee'\x0d\
\x00\x00\x02\xc4\x00\x00\x00\x00\x00\x01\x00\x01I\xd1\
-\x00\x00\x01u\xf9\xcc\xb0+\
+\x00\x00\x01z\xe7\xee'\x0d\
\x00\x00\x02\x96\x00\x00\x00\x00\x00\x01\x00\x01E>\
-\x00\x00\x01u\xf9\xcc\xb0+\
+\x00\x00\x01z\xe7\xee'\x0d\
\x00\x00\x02\x5c\x00\x00\x00\x00\x00\x01\x00\x01=\xc8\
-\x00\x00\x01u\xf9\xcc\xb0+\
+\x00\x00\x01z\xe7\xee'\x0d\
\x00\x00\x00\xb8\x00\x00\x00\x00\x00\x01\x00\x00\xea\xa0\
-\x00\x00\x01u\xf9\xcc\xb0+\
+\x00\x00\x01z\xe7\xee'\x0d\
\x00\x00\x00\xf6\x00\x00\x00\x00\x00\x01\x00\x00\xf5'\
-\x00\x00\x01u\xf9\xcc\xb0+\
+\x00\x00\x01z\xe7\xee'\x0d\
\x00\x00\x01\xbe\x00\x00\x00\x00\x00\x01\x00\x01'+\
-\x00\x00\x01u\xf9\xcc\xb0+\
+\x00\x00\x01z\xe7\xee'\x0d\
\x00\x00\x01\xde\x00\x00\x00\x00\x00\x01\x00\x00\x9d\x07\
-\x00\x00\x01u\xf9\xcc\xb0+\
+\x00\x00\x01z\xe7\xee'\x0d\
\x00\x00\x01\x16\x00\x00\x00\x00\x00\x01\x00\x00e\xc6\
-\x00\x00\x01u\xf9\xcc\xb0+\
+\x00\x00\x01z\xe7\xee'\x0d\
\x00\x00\x00\x9e\x00\x00\x00\x00\x00\x01\x00\x00\x1b\xbc\
-\x00\x00\x01u\xf9\xcc\xb0+\
+\x00\x00\x01z\xe7\xee'\x0d\
\x00\x00\x02z\x00\x00\x00\x00\x00\x01\x00\x00\xbcl\
-\x00\x00\x01u\xf9\xcc\xb0+\
+\x00\x00\x01z\xe7\xee'\x0d\
\x00\x00\x01\xa0\x00\x00\x00\x00\x00\x01\x00\x00\x95U\
-\x00\x00\x01u\xf9\xcc\xb0+\
+\x00\x00\x01z\xe7\xee'\x0d\
\x00\x00\x01v\x00\x00\x00\x00\x00\x01\x00\x00zM\
-\x00\x00\x01yH\x0a\x8c\xbe\
+\x00\x00\x01z\xe7\xee'\x0d\
\x00\x00\x02 \x00\x00\x00\x00\x00\x01\x00\x00\xaap\
-\x00\x00\x01u\xf9\xcc\xb0+\
+\x00\x00\x01z\xe7\xee'\x0d\
\x00\x00\x00\xd8\x00\x00\x00\x00\x00\x01\x00\x00)\xd6\
-\x00\x00\x01u\xf9\xcc\xb0+\
+\x00\x00\x01z\xe7\xee'\x0d\
\x00\x00\x018\x00\x00\x00\x00\x00\x01\x00\x00kF\
-\x00\x00\x01u\xf9\xcc\xb0+\
+\x00\x00\x01z\xe7\xee'\x0d\
\x00\x00\x01X\x00\x00\x00\x00\x00\x01\x00\x00sq\
-\x00\x00\x01u\xf9\xcc\xb0+\
+\x00\x00\x01z\xe7\xee'\x0d\
\x00\x00\x03\x14\x00\x00\x00\x00\x00\x01\x00\x00\xcf<\
-\x00\x00\x01u\xf9\xcc\xb0+\
+\x00\x00\x01z\xe7\xee'\x0d\
\x00\x00\x00b\x00\x00\x00\x00\x00\x01\x00\x00\x0f\xb8\
-\x00\x00\x01u\xf9\xcc\xb0+\
+\x00\x00\x01z\xe7\xee'\x0d\
\x00\x00\x00~\x00\x00\x00\x00\x00\x01\x00\x00\x16:\
-\x00\x00\x01u\xf9\xcc\xb0+\
+\x00\x00\x01z\xe7\xee'\x0d\
\x00\x00\x02>\x00\x00\x00\x00\x00\x01\x00\x00\xafG\
-\x00\x00\x01u\xf9\xcc\xb0+\
+\x00\x00\x01z\xe7\xee'\x0d\
\x00\x00\x03h\x00\x00\x00\x00\x00\x01\x00\x00\xd8\x81\
-\x00\x00\x01u\xf9\xcc\xb0+\
+\x00\x00\x01z\xe7\xee'\x0d\
\x00\x00\x03F\x00\x00\x00\x00\x00\x01\x00\x00\xd3\xf1\
-\x00\x00\x01u\xf9\xcc\xb0+\
+\x00\x00\x01z\xe7\xee'\x0d\
\x00\x00\x02\xf6\x00\x00\x00\x00\x00\x01\x00\x00\xc9|\
-\x00\x00\x01u\xf9\xcc\xb0+\
+\x00\x00\x01z\xe7\xee'\x0d\
\x00\x00\x02\x02\x00\x00\x00\x00\x00\x01\x00\x00\xa1\xf4\
-\x00\x00\x01u\xf9\xcc\xb0+\
+\x00\x00\x01z\xe7\xee'\x0d\
\x00\x00\x02\xc4\x00\x00\x00\x00\x00\x01\x00\x00\xc5\x97\
-\x00\x00\x01u\xf9\xcc\xb0+\
+\x00\x00\x01z\xe7\xee'\x0d\
\x00\x00\x02\x96\x00\x00\x00\x00\x00\x01\x00\x00\xc1\x04\
-\x00\x00\x01u\xf9\xcc\xb0+\
+\x00\x00\x01z\xe7\xee'\x0d\
\x00\x00\x02\x5c\x00\x00\x00\x00\x00\x01\x00\x00\xb6\x1d\
-\x00\x00\x01u\xf9\xcc\xb0+\
+\x00\x00\x01z\xe7\xee'\x0d\
\x00\x00\x00\xb8\x00\x00\x00\x00\x00\x01\x00\x00\x22`\
-\x00\x00\x01u\xf9\xcc\xb0+\
+\x00\x00\x01z\xe7\xee'\x0d\
\x00\x00\x00\xf6\x00\x00\x00\x00\x00\x01\x00\x004e\
-\x00\x00\x01u\xf9\xcc\xb0+\
+\x00\x00\x01z\xe7\xee'\x0d\
\x00\x00\x01\xbe\x00\x00\x00\x00\x00\x01\x00\x00\x98d\
-\x00\x00\x01u\xf9\xcc\xb0+\
+\x00\x00\x01z\xe7\xee'\x0d\
"
def qInitResources():