Add a method to ExtractDelegate for querying if the extraction has been cancelled.

This commit is contained in:
Luis Ángel San Martín
2018-01-06 07:41:27 +01:00
commit c766fedd45
1046 changed files with 103737 additions and 0 deletions

View File

@ -0,0 +1,46 @@
#ifndef YACREADER_TITLED_TOOLBAR_H
#define YACREADER_TITLED_TOOLBAR_H
#include <QWidget>
#include <QLabel>
#include <QPaintEvent>
#include <QPainter>
#include <QPoint>
class QIcon;
class DropShadowLabel : public QLabel
{
Q_OBJECT
public:
DropShadowLabel(QWidget* parent = 0);
void paintEvent(QPaintEvent *event);
void setColor(const QColor & color);
void setDropShadowColor(const QColor & color);
private:
QColor dropShadowColor;
QColor textColor;
void drawText(QPainter *painter, QPoint offset);
void drawTextEffect(QPainter* painter, QPoint offset);
};
class YACReaderTitledToolBar : public QWidget
{
Q_OBJECT
public:
explicit YACReaderTitledToolBar(const QString & title, QWidget *parent = 0);
signals:
public slots:
void addAction(QAction * action);
void addSpacing(int space);
void addSepartor();
private:
DropShadowLabel * nameLabel;
};
#endif // YACREADER_TITLED_TOOLBAR_H