mirror of
https://github.com/YACReader/yacreader
synced 2025-07-23 15:35:03 -04:00
a?adido nuevo widget para gestionar las importacione y actualizaciones
En OSX se ha desactivado el uso de QGraphicsOpacityEffect debido a un bug en Qt
This commit is contained in:
38
YACReaderLibrary/import_widget.h
Normal file
38
YACReaderLibrary/import_widget.h
Normal file
@ -0,0 +1,38 @@
|
||||
#ifndef IMPORT_WIDGET_H
|
||||
#define IMPORT_WIDGET_H
|
||||
|
||||
#include <QWidget>
|
||||
|
||||
class QLabel;
|
||||
class QGraphicsView;
|
||||
class QGraphicsScene;
|
||||
class QElapsedTimer;
|
||||
|
||||
class ImportWidget : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit ImportWidget(QWidget *parent = 0);
|
||||
|
||||
signals:
|
||||
void stop();
|
||||
public slots:
|
||||
void newComic(const QString & path, const QString & coverPath);
|
||||
void newCover(const QPixmap & image);
|
||||
void clear();
|
||||
void addCoverTest();
|
||||
void finishedUpdatingCover();
|
||||
void clearScene();
|
||||
private:
|
||||
QLabel * currentComicLabel;
|
||||
QLabel * portadasLabel;
|
||||
QGraphicsView * coversView;
|
||||
QGraphicsScene * coversScene;
|
||||
int previousWidth;
|
||||
bool updatingCovers;
|
||||
QElapsedTimer * elapsedTimer;
|
||||
quint64 i;
|
||||
|
||||
};
|
||||
|
||||
#endif // IMPORT_WIDGET_H
|
Reference in New Issue
Block a user