Skip to content
Snippets Groups Projects
Commit 09f2c7b8 authored by Daniel Teske's avatar Daniel Teske
Browse files

DetailsWidget: partially revert removing of obsolete code


Used on the mac.

Change-Id: I6d96d9c706b1f4b94482f31cd87c4db48792b062
Reviewed-by: default avatarDaniel Teske <daniel.teske@nokia.com>
parent fd754e82
No related branches found
No related tags found
No related merge requests found
......@@ -57,6 +57,11 @@ FadingPanel::FadingPanel(QWidget *parent) :
setPalette(pal);
}
void FadingPanel::setOpacity(qreal value)
{
m_opacityEffect->setOpacity(value);
}
void FadingPanel::fadeTo(qreal value)
{
QPropertyAnimation *animation = new QPropertyAnimation(m_opacityEffect, "opacity");
......
......@@ -46,6 +46,7 @@ class QTCREATOR_UTILS_EXPORT FadingPanel : public QWidget
{
public:
FadingPanel(QWidget *parent = 0);
void setOpacity(qreal value);
void fadeTo(qreal value);
protected:
QGraphicsOpacityEffect *m_opacityEffect;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment