mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 02:34:06 -04:00
Port the progress indicator extension to PyQt5
This commit is contained in:
parent
f449426476
commit
1f3d25d934
@ -1,12 +1,12 @@
|
|||||||
#include "QProgressIndicator.h"
|
#include "QProgressIndicator.h"
|
||||||
|
|
||||||
#include <QPainter>
|
#include <QPainter>
|
||||||
#include <QStylePlugin>
|
#include <QtWidgets/QStylePlugin>
|
||||||
#include <QPluginLoader>
|
#include <QPluginLoader>
|
||||||
#include <QStyle>
|
#include <QtWidgets/QStyle>
|
||||||
#include <QApplication>
|
#include <QtWidgets/QApplication>
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
#include <QProxyStyle>
|
#include <QtWidgets/QProxyStyle>
|
||||||
|
|
||||||
QProgressIndicator::QProgressIndicator(QWidget* parent, int size)
|
QProgressIndicator::QProgressIndicator(QWidget* parent, int size)
|
||||||
: QWidget(parent),
|
: QWidget(parent),
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <QWidget>
|
#include <QtWidgets/QWidget>
|
||||||
#include <QColor>
|
#include <QColor>
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
|
@ -3,8 +3,7 @@
|
|||||||
|
|
||||||
%Module(name=progress_indicator, version=1)
|
%Module(name=progress_indicator, version=1)
|
||||||
|
|
||||||
%Import QtCore/QtCoremod.sip
|
%Import QtWidgets/QtWidgetsmod.sip
|
||||||
%Import QtGui/QtGuimod.sip
|
|
||||||
|
|
||||||
%ModuleHeaderCode
|
%ModuleHeaderCode
|
||||||
int load_style(QString &path, QString &name);
|
int load_style(QString &path, QString &name);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user