diff options
author | Konstantinos Sideris <sideris.konstantin@gmail.com> | 2018-02-17 18:43:40 +0200 |
---|---|---|
committer | Konstantinos Sideris <sideris.konstantin@gmail.com> | 2018-02-17 18:43:40 +0200 |
commit | fdd5051dcf832e07447aef45e4c5955ce2cc42aa (patch) | |
tree | 393877eb965f956ad23cf22a04966f10be7724f4 /include | |
parent | 59e4148a7ce0e08009ded8e7691df23037f2c388 (diff) |
Remove QPropertyAnimation from modals to work around a regression on Qt 5.10.1 (#87)
Diffstat (limited to 'include')
-rw-r--r-- | include/ui/OverlayModal.h | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/include/ui/OverlayModal.h b/include/ui/OverlayModal.h index 0fd96390..a761e3ed 100644 --- a/include/ui/OverlayModal.h +++ b/include/ui/OverlayModal.h @@ -17,11 +17,9 @@ #pragma once -#include <QGraphicsOpacityEffect> #include <QKeyEvent> #include <QMouseEvent> #include <QPaintEvent> -#include <QPropertyAnimation> #include "OverlayWidget.h" @@ -30,14 +28,6 @@ class OverlayModal : public OverlayWidget public: OverlayModal(QWidget *parent, QWidget *content); - void fadeIn(); - void fadeOut(); - - void setDuration(int duration) - { - duration_ = duration; - animation_->setDuration(duration_); - }; void setColor(QColor color) { color_ = color; } void setDismissible(bool state) { isDismissible_ = state; } @@ -48,13 +38,8 @@ protected: private: QWidget *content_; - - int duration_; QColor color_; //! Decides whether or not the modal can be removed by clicking into it. bool isDismissible_ = true; - - QGraphicsOpacityEffect *opacity_; - QPropertyAnimation *animation_; }; |