PictureFlow - extra PyQt4 widget
public:
enum ReflectionEffect
{
NoReflection,
PlainReflection,
BlurredReflection
};
PictureFlow(QWidget *parent /TransferThis/ = 0);
~PictureFlow();
QColor backgroundColor() const;
void setBackgroundColor(const QColor& c);
QSize slideSize() const;
void setSlideSize(QSize size);
int slideCount() const;
QImage slide(int index) const;
int centerIndex() const;
ReflectionEffect reflectionEffect() const;
void setReflectionEffect(ReflectionEffect effect);
public slots:
void addSlide(const QImage& image);
void addSlide(const QPixmap& pixmap);
void setSlide(int index, const QImage& image);
void setSlide(int index, const QPixmap& pixmap);
void setCenterIndex(int index);
void clear();
void showPrevious();
void showNext();
void showSlide(int index);
void render();
void triggerRender();
signals:
void centerIndexChanged(int index);
protected:
void paintEvent(QPaintEvent *event);
void keyPressEvent(QKeyEvent* event);
void mousePressEvent(QMouseEvent* event);
void resizeEvent(QResizeEvent* event);