Fix tray visibility and message reception issues
Some checks failed
build / build-win64 (push) Waiting to run
build / build-macos (push) Waiting to run
build / build-pip (push) Failing after 16s

- Disable sound initialization to prevent hanging
- Add missing import re in utils.py
- Fix settings loading for QSettings
- Update file paths to use PROJECT_ROOT
- Revert to working API paths and listener from commit efdc63e
This commit is contained in:
kdusek
2025-12-07 22:39:07 +01:00
parent 7b695d7b7f
commit 5138303016
4060 changed files with 579123 additions and 23 deletions

View File

@@ -0,0 +1,6 @@
# Automatically generated configuration for PyQt6.QtSvg.
sip-version = "6.14.0"
sip-abi-version = "13.8"
module-tags = ["Qt_6_10_0", "Linux"]
module-disabled-features = ["PyQt_OpenGL_ES2"]

View File

@@ -0,0 +1,51 @@
// QtSvgmod.sip generated by MetaSIP
//
// This file is part of the QtSvg Python extension module.
//
// Copyright (c) 2025 Riverbank Computing Limited <info@riverbankcomputing.com>
//
// This file is part of PyQt6.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file. Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
//
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license. For more information contact
// info@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
%Module(name=PyQt6.QtSvg, keyword_arguments="Optional", use_limited_api=True)
%Import QtCore/QtCoremod.sip
%Import QtGui/QtGuimod.sip
%Copying
Copyright (c) 2025 Riverbank Computing Limited <info@riverbankcomputing.com>
This file is part of PyQt6.
This file may be used under the terms of the GNU General Public License
version 3.0 as published by the Free Software Foundation and appearing in
the file LICENSE included in the packaging of this file. Please review the
following information to ensure the GNU General Public License version 3.0
requirements will be met: http://www.gnu.org/copyleft/gpl.html.
If you do not wish to use this file under the terms of the GPL version 3.0
then you may purchase a commercial license. For more information contact
info@riverbankcomputing.com.
This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
%End
%DefaultSupertype PyQt6.sip.simplewrapper
%Include qtsvgglobal.sip
%Include qsvggenerator.sip
%Include qsvgrenderer.sip

View File

@@ -0,0 +1,69 @@
// qsvggenerator.sip generated by MetaSIP
//
// This file is part of the QtSvg Python extension module.
//
// Copyright (c) 2025 Riverbank Computing Limited <info@riverbankcomputing.com>
//
// This file is part of PyQt6.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file. Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
//
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license. For more information contact
// info@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
class QSvgGenerator : public QPaintDevice
{
%TypeHeaderCode
#include <qsvggenerator.h>
%End
public:
QSvgGenerator();
%If (Qt_6_5_0 -)
explicit QSvgGenerator(QSvgGenerator::SvgVersion version);
%End
virtual ~QSvgGenerator();
QSize size() const;
void setSize(const QSize &size);
QString fileName() const;
void setFileName(const QString &fileName);
QIODevice *outputDevice() const;
void setOutputDevice(QIODevice *outputDevice);
int resolution() const;
void setResolution(int resolution);
QString title() const;
void setTitle(const QString &title);
QString description() const;
void setDescription(const QString &description);
QRect viewBox() const;
QRectF viewBoxF() const;
void setViewBox(const QRect &viewBox);
void setViewBox(const QRectF &viewBox);
protected:
virtual QPaintEngine *paintEngine() const;
virtual int metric(QPaintDevice::PaintDeviceMetric metric) const;
public:
%If (Qt_6_5_0 -)
enum class SvgVersion
{
SvgTiny12,
Svg11,
};
%End
%If (Qt_6_5_0 -)
QSvgGenerator::SvgVersion svgVersion() const;
%End
};

View File

@@ -0,0 +1,108 @@
// qsvgrenderer.sip generated by MetaSIP
//
// This file is part of the QtSvg Python extension module.
//
// Copyright (c) 2025 Riverbank Computing Limited <info@riverbankcomputing.com>
//
// This file is part of PyQt6.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file. Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
//
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license. For more information contact
// info@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
class QSvgRenderer : public QObject
{
%TypeHeaderCode
#include <qsvgrenderer.h>
%End
%ConvertToSubClassCode
static struct class_graph {
const char *name;
sipTypeDef **type;
int yes, no;
} graph[] = {
{sipName_QSvgRenderer, &sipType_QSvgRenderer, -1, -1},
};
int i = 0;
sipType = NULL;
do
{
struct class_graph *cg = &graph[i];
if (cg->name != NULL && sipCpp->inherits(cg->name))
{
sipType = *cg->type;
i = cg->yes;
}
else
i = cg->no;
}
while (i >= 0);
%End
public:
QSvgRenderer(QObject *parent /TransferThis/ = 0);
QSvgRenderer(const QString &filename, QObject *parent /TransferThis/ = 0) /ReleaseGIL/;
QSvgRenderer(const QByteArray &contents, QObject *parent /TransferThis/ = 0) /ReleaseGIL/;
QSvgRenderer(QXmlStreamReader *contents, QObject *parent /TransferThis/ = 0) /ReleaseGIL/;
virtual ~QSvgRenderer();
bool isValid() const;
QSize defaultSize() const;
bool elementExists(const QString &id) const;
QRect viewBox() const;
QRectF viewBoxF() const;
void setViewBox(const QRect &viewbox);
void setViewBox(const QRectF &viewbox);
bool animated() const;
QRectF boundsOnElement(const QString &id) const;
int framesPerSecond() const;
void setFramesPerSecond(int num);
int currentFrame() const;
void setCurrentFrame(int);
int animationDuration() const;
public slots:
bool load(const QString &filename) /ReleaseGIL/;
bool load(const QByteArray &contents) /ReleaseGIL/;
bool load(QXmlStreamReader *contents) /ReleaseGIL/;
void render(QPainter *p) /ReleaseGIL/;
void render(QPainter *p, const QRectF &bounds) /ReleaseGIL/;
void render(QPainter *painter, const QString &elementId, const QRectF &bounds = QRectF()) /ReleaseGIL/;
signals:
void repaintNeeded();
public:
Qt::AspectRatioMode aspectRatioMode() const;
void setAspectRatioMode(Qt::AspectRatioMode mode);
QTransform transformForElement(const QString &id) const;
%If (Qt_6_7_0 -)
QtSvg::Options options() const;
%End
%If (Qt_6_7_0 -)
void setOptions(QtSvg::Options flags);
%End
%If (Qt_6_7_0 -)
bool isAnimationEnabled() const;
%End
%If (Qt_6_7_0 -)
void setAnimationEnabled(bool enable);
%End
%If (Qt_6_8_0 -)
static void setDefaultOptions(QtSvg::Options flags);
%End
};

View File

@@ -0,0 +1,52 @@
// qtsvgglobal.sip generated by MetaSIP
//
// This file is part of the QtSvg Python extension module.
//
// Copyright (c) 2025 Riverbank Computing Limited <info@riverbankcomputing.com>
//
// This file is part of PyQt6.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file. Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
//
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license. For more information contact
// info@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
%If (Qt_6_7_0 -)
namespace QtSvg
{
%TypeHeaderCode
#include <qtsvgglobal.h>
%End
enum Option
{
NoOption,
Tiny12FeaturesOnly,
%If (Qt_6_8_0 -)
AssumeTrustedSource,
%End
%If (Qt_6_9_0 -)
DisableSMILAnimations,
%End
%If (Qt_6_9_0 -)
DisableCSSAnimations,
%End
%If (Qt_6_9_0 -)
DisableAnimations,
%End
};
typedef QFlags<QtSvg::Option> Options;
};
%End