summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorAriya Hidayat <ariya.hidayat@nokia.com>2009-06-04 20:01:17 +0200
committerAriya Hidayat <ariya.hidayat@nokia.com>2009-06-04 20:01:17 +0200
commit4865dd2a0818d56adb108edb15944592c353c061 (patch)
tree65a07ccb2a8b14f549dc50fd4afcf1402b750b08 /examples
parent33008838d57f91514d761d89a339945026399a37 (diff)
Remove unused code in the blurpicker example.
Diffstat (limited to 'examples')
-rw-r--r--examples/graphicsview/blurpicker/blurpicker.cpp14
-rw-r--r--examples/graphicsview/blurpicker/blurpicker.h1
2 files changed, 0 insertions, 15 deletions
diff --git a/examples/graphicsview/blurpicker/blurpicker.cpp b/examples/graphicsview/blurpicker/blurpicker.cpp
index cfc2d6745..887d7ef88 100644
--- a/examples/graphicsview/blurpicker/blurpicker.cpp
+++ b/examples/graphicsview/blurpicker/blurpicker.cpp
@@ -64,10 +64,6 @@ BlurPicker::BlurPicker(QWidget *parent): QGraphicsView(parent), m_index(0.0)
setFrameStyle(QFrame::NoFrame);
}
-BlurPicker::~BlurPicker()
-{
-}
-
void BlurPicker::updateIconPositions()
{
m_index = m_timeLine.currentFrame() / 1000.0;
@@ -85,16 +81,6 @@ void BlurPicker::updateIconPositions()
baseline = qMax(baseline, ys);
}
-#if 0
- // seems broken
- for (int i = 0; i < m_icons.count(); ++i) {
- QGraphicsItem *icon = m_icons[i];
- qreal y = baseline - icon->pos().y();
- qreal factor = qBound(0.0, 1 - y / 600, 1.0);
- icon->setTransform(QTransform().scale(factor, factor), false);
- }
-#endif
-
m_blurEffect->setBaseLine(baseline);
m_scene.update();
}
diff --git a/examples/graphicsview/blurpicker/blurpicker.h b/examples/graphicsview/blurpicker/blurpicker.h
index f97f2207a..e41c608d6 100644
--- a/examples/graphicsview/blurpicker/blurpicker.h
+++ b/examples/graphicsview/blurpicker/blurpicker.h
@@ -54,7 +54,6 @@ class BlurPicker: public QGraphicsView
public:
BlurPicker(QWidget *parent = 0);
- ~BlurPicker();
protected:
void keyPressEvent(QKeyEvent *event);