improve callutilsdialog and qualitydialog
- adds a fancy shape to callutilsdialog/qualitydialog.
- adds few animation.
- keeps the overlay rendered while callutilsdialog/qualitydialog is open.
- adds the file used as mask for the spike.
Change-Id: I51362f986376d57634c9ded2e548043da7da1384
Tuleap: #148
diff --git a/callutilsdialog.h b/callutilsdialog.h
index 710f873..5fa5985 100644
--- a/callutilsdialog.h
+++ b/callutilsdialog.h
@@ -1,5 +1,5 @@
/***************************************************************************
- * Copyright (C) 2015-2016 by Savoir-faire Linux *
+ * Copyright (C) 2015-2016 by Savoir-faire Linux *
* Author: Edric Ladent Milaret <edric.ladent-milaret@savoirfairelinux.com>*
* *
* This program is free software; you can redistribute it and/or modify *
@@ -26,6 +26,9 @@
#include "smartlistdelegate.h"
+class QPropertyAnimation;
+class QGraphicsOpacityEffect;
+
namespace Ui {
class CallUtilsDialog;
}
@@ -59,6 +62,10 @@
void setConfMode(bool active);
+protected:
+ void enterEvent(QEvent* event);
+ void leaveEvent(QEvent* event);
+
//UI SLOTS
protected slots:
void showEvent(QShowEvent* event);
@@ -72,7 +79,15 @@
bool confMode_;
SmartListDelegate* smartListDelegate_;
NotCurrentProxyModel* notCurrentProxyModel_;
+ QPixmap* spikeMask_;
+ QPropertyAnimation* fadeAnim_;
+ constexpr static int fadeOverlayTime_ = 250; //msec
+ QGraphicsOpacityEffect* effect_;
void removeProxyModel();
+
+signals:
+ void isVisible(bool visible);
+
};