From fdd5051dcf832e07447aef45e4c5955ce2cc42aa Mon Sep 17 00:00:00 2001 From: Konstantinos Sideris Date: Sat, 17 Feb 2018 18:43:40 +0200 Subject: Remove QPropertyAnimation from modals to work around a regression on Qt 5.10.1 (#87) --- include/ui/OverlayModal.h | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'include') 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 #include #include #include -#include #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_; }; -- cgit 1.5.1