Skip to content

Commit

Permalink
V0.9.5
Browse files Browse the repository at this point in the history
  • Loading branch information
Salva Ardid committed Sep 1, 2020
1 parent 1e078fb commit 9999e37
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 6 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

project(sierrabreezeenhanced)
set(PROJECT_VERSION "0.9.4")
set(PROJECT_VERSION "0.9.5")
set(PROJECT_VERSION_MAJOR 0)

cmake_minimum_required(VERSION 2.8.12 FATAL_ERROR)
Expand Down
6 changes: 6 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
V0.9.5
---------

* Upstream sync: Port away from deprecated Qt::MidButton
* Upstream sync: use linear animations

V0.9.4
---------

Expand Down
4 changes: 2 additions & 2 deletions breezebutton.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
#include <KIconLoader>

#include <QPainter>
#include <QVariantAnimation>
#include <QPainterPath>

namespace Breeze
Expand All @@ -46,7 +45,8 @@ namespace Breeze
// It is important start and end value are of the same type, hence 0.0 and not just 0
m_animation->setStartValue( 0.0 );
m_animation->setEndValue( 1.0 );
m_animation->setEasingCurve( QEasingCurve::InOutQuad );
// Linear to have the same easing as Breeze animations
m_animation->setEasingCurve( QEasingCurve::Linear );
connect(m_animation, &QVariantAnimation::valueChanged, this, [this](const QVariant &value) {
setOpacity(value.toReal());
});
Expand Down
2 changes: 2 additions & 0 deletions breezebutton.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
#include <QHash>
#include <QImage>

#include <QVariantAnimation>

class QVariantAnimation;

namespace Breeze
Expand Down
4 changes: 2 additions & 2 deletions breezedecoration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
#include <QPainter>
#include <QTextStream>
#include <QTimer>
#include <QVariantAnimation>

#if BREEZE_HAVE_X11
#include <QX11Info>
Expand Down Expand Up @@ -359,7 +358,8 @@ namespace Breeze
// It is important start and end value are of the same type, hence 0.0 and not just 0
m_animation->setStartValue( 0.0 );
m_animation->setEndValue( 1.0 );
m_animation->setEasingCurve( QEasingCurve::InOutQuad );
// Linear to have the same easing as Breeze animations
m_animation->setEasingCurve( QEasingCurve::Linear );
connect(m_animation, &QVariantAnimation::valueChanged, this, [this](const QVariant &value) {
setOpacity(value.toReal());
});
Expand Down
1 change: 1 addition & 0 deletions breezedecoration.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@

#include <QPalette>
#include <QVariant>
#include <QVariantAnimation>

class QVariantAnimation;

Expand Down
2 changes: 1 addition & 1 deletion breezesizegrip.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ namespace Breeze
break;
}

case Qt::MidButton:
case Qt::MiddleButton:
{
hide();
break;
Expand Down

0 comments on commit 9999e37

Please sign in to comment.