Inject ComicsViewTransition background color as a string.

This commit is contained in:
Luis Ángel San Martín
2018-09-07 12:33:15 +02:00
committed by Luis Ángel San Martín
parent 730436c3e9
commit 53fcc52dd6
2 changed files with 8 additions and 16 deletions

View File

@ -7,11 +7,13 @@ class ComicsViewTransition : public QWidget
{
Q_OBJECT
public:
explicit ComicsViewTransition(QWidget *parent = nullptr);
explicit ComicsViewTransition(const QString& backgroundColor, QWidget *parent = nullptr);
QSize sizeHint();
protected:
void paintEvent(QPaintEvent *) override;
void paintEvent(QPaintEvent *);
QColor backgroundColor;
QPainter painter;
};
#endif // COMICS_VIEW_TRANSITION_H