Commit 496ed221 authored by Daniel Teske's avatar Daniel Teske

DetailsWidget: Remove unused obsolete code

Change-Id: I0e8cd904d6b5a89d7134f2b61e6bc549668792e0
Reviewed-by: default avatarDaniel Teske <daniel.teske@nokia.com>
parent 008d43bb
......@@ -57,12 +57,7 @@ FadingPanel::FadingPanel(QWidget *parent) :
setPalette(pal);
}
void FadingPanel::setOpacity(qreal value)
{
m_opacityEffect->setOpacity(value);
}
void FadingPanel::fadeTo(float value)
void FadingPanel::fadeTo(qreal value)
{
QPropertyAnimation *animation = new QPropertyAnimation(m_opacityEffect, "opacity");
animation->setDuration(200);
......
......@@ -46,8 +46,7 @@ class QTCREATOR_UTILS_EXPORT FadingPanel : public QWidget
{
public:
FadingPanel(QWidget *parent = 0);
void setOpacity(qreal value);
void fadeTo(float value);
void fadeTo(qreal value);
protected:
QGraphicsOpacityEffect *m_opacityEffect;
};
......@@ -55,14 +54,11 @@ protected:
class QTCREATOR_UTILS_EXPORT DetailsButton : public QAbstractButton
{
Q_OBJECT
Q_PROPERTY(float fader READ fader WRITE setFader)
public:
DetailsButton(QWidget *parent = 0);
QSize sizeHint() const;
float fader() { return m_fader; }
void setFader(float value) { m_fader = value; update(); }
protected:
void paintEvent(QPaintEvent *e);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment