/*
 * Copyright (c) 2010 Nokia Corporation.
 */

#ifndef IMAGEWIDGET_H
#define IMAGEWIDGET_H

#include <QWidget>
#include <QPixmap>
#include <QPainter>
#include <QResizeEvent>

class ImageLoader;
class ImageWidget : public QWidget
{
    Q_OBJECT
public:
    ImageWidget(QString path, QWidget *parent = 0);
    ~ImageWidget();

    void paintEvent(QPaintEvent *);
    void resizeEvent (QResizeEvent *);

private:
    QPixmap         m_pixmap;
    ImageLoader*    m_imageLoader;
    QString         m_path;
};

#endif // IMAGEWIDGET_H
