view src/imagelabel.h @ 13:06c9b37d1e1b

Fix static windows build of qtxtcsvmodel copy
author Andre Heinecke <andre.heinecke@intevation.de>
date Tue, 14 Apr 2015 13:43:43 +0200
parents 248d5d1cdb38
children 64a51a42c01f
line wrap: on
line source
#ifndef IMAGELABEL_H
#define IMAGELABEL_H
/* Copyright (C) 2014 by Intevation GmbH
 *
 * This file is Free Software under the GNU GPL (v>=2)
 * and comes with ABSOLUTELY NO WARRANTY!
 * See LICENSE.txt for details.
 */

#include <QWidget>
#include <QPixmap>
#include <QLabel>

class ImageLabel : public QWidget
{
    Q_OBJECT

public:
    explicit ImageLabel(QWidget *parent = 0);
    const QPixmap* pixmap() const;

public slots:
    void setPixmap(const QPixmap&);

protected:
    void resizeEvent(QResizeEvent *);

private slots:
    void resizeImage();

private:
    QLabel *label;
};

#endif // IMAGELABEL_H
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)