summaryrefslogtreecommitdiffstats
path: root/examples/animation
diff options
context:
space:
mode:
authorJan-Arve Sæther <jan-arve.saether@nokia.com>2009-06-08 12:24:52 (GMT)
committerJan-Arve Sæther <jan-arve.saether@nokia.com>2009-06-08 12:24:52 (GMT)
commitf75ff5e473c2a8fea0092d12c289698e90bff297 (patch)
tree25fcac0e356ad7e8849651d7a7582ed9a22f214b /examples/animation
parent2a793356005bda3d99ce58bf0197d9b3b8fd8578 (diff)
downloadQt-f75ff5e473c2a8fea0092d12c289698e90bff297.zip
Qt-f75ff5e473c2a8fea0092d12c289698e90bff297.tar.gz
Qt-f75ff5e473c2a8fea0092d12c289698e90bff297.tar.bz2
Remove trailing whitespace.
Diffstat (limited to 'examples/animation')
-rw-r--r--examples/animation/easing/window.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/examples/animation/easing/window.cpp b/examples/animation/easing/window.cpp
index f575483..5a1f764 100644
--- a/examples/animation/easing/window.cpp
+++ b/examples/animation/easing/window.cpp
@@ -41,28 +41,28 @@
#include "window.h"
-Window::Window(QWidget *parent)
+Window::Window(QWidget *parent)
: QWidget(parent), m_iconSize(64, 64)
{
m_ui.setupUi(this);
QButtonGroup *buttonGroup = qFindChild<QButtonGroup *>(this); // ### workaround for uic in 4.4
- m_ui.easingCurvePicker->setIconSize(m_iconSize);
+ m_ui.easingCurvePicker->setIconSize(m_iconSize);
m_ui.easingCurvePicker->setMinimumHeight(m_iconSize.height() + 50);
buttonGroup->setId(m_ui.lineRadio, 0);
buttonGroup->setId(m_ui.circleRadio, 1);
-
+
QEasingCurve dummy;
m_ui.periodSpinBox->setValue(dummy.period());
m_ui.amplitudeSpinBox->setValue(dummy.amplitude());
m_ui.overshootSpinBox->setValue(dummy.overshoot());
-
+
connect(m_ui.easingCurvePicker, SIGNAL(currentRowChanged(int)), this, SLOT(curveChanged(int)));
connect(buttonGroup, SIGNAL(buttonClicked(int)), this, SLOT(pathChanged(int)));
connect(m_ui.periodSpinBox, SIGNAL(valueChanged(double)), this, SLOT(periodChanged(double)));
connect(m_ui.amplitudeSpinBox, SIGNAL(valueChanged(double)), this, SLOT(amplitudeChanged(double)));
connect(m_ui.overshootSpinBox, SIGNAL(valueChanged(double)), this, SLOT(overshootChanged(double)));
createCurveIcons();
-
+
QPixmap pix(QLatin1String(":/images/qt-logo.png"));
m_item = new PixmapItem(pix);
m_scene.addItem(m_item);
@@ -94,7 +94,7 @@ void Window::createCurveIcons()
qreal yAxis = m_iconSize.width()/3;
painter.drawLine(0, xAxis, m_iconSize.width(), xAxis);
painter.drawLine(yAxis, 0, yAxis, m_iconSize.height());
-
+
qreal curveScale = m_iconSize.height()/2;
painter.setPen(Qt::NoPen);
@@ -141,7 +141,7 @@ void Window::curveChanged(int row)
QEasingCurve::Type curveType = (QEasingCurve::Type)row;
m_anim->setEasingCurve(curveType);
m_anim->setCurrentTime(0);
-
+
bool isElastic = curveType >= QEasingCurve::InElastic && curveType <= QEasingCurve::OutInElastic;
bool isBounce = curveType >= QEasingCurve::InBounce && curveType <= QEasingCurve::OutInBounce;
m_ui.periodSpinBox->setEnabled(isElastic);