mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-18 03:15:34 +08:00
refs #883, added functions for fade in/out
This commit is contained in:
committed by
Mathew Sutcliffe
parent
873823eaa1
commit
1690c560b7
@@ -27,6 +27,7 @@ class QLayout;
|
||||
class QMimeData;
|
||||
class QTabWidget;
|
||||
class QWidget;
|
||||
class QGraphicsOpacityEffect;
|
||||
|
||||
namespace BlackGui
|
||||
{
|
||||
@@ -106,6 +107,12 @@ namespace BlackGui
|
||||
//! Is top level widget?
|
||||
static bool isTopLevelWidget(QWidget *widget);
|
||||
|
||||
//! Fade in a widget
|
||||
static QGraphicsOpacityEffect *fadeInWidget(int durationMs, QWidget *widget, double startValue = 0.0, double endValue = 1.0);
|
||||
|
||||
//! Fade out a widget
|
||||
static QGraphicsOpacityEffect *fadeOutWidget(int durationMs, QWidget *widget, double startValue = 1.0, double endValue = 0.0);
|
||||
|
||||
private:
|
||||
//! Constructor, use static methods only
|
||||
CGuiUtility() {}
|
||||
|
||||
Reference in New Issue
Block a user