Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++
550 B
Raw Blame
/*
 * SPDX-FileCopyrightText: 2009 Matthew Woehlke <[email protected]>
 *
 * SPDX-License-Identifier: GPL-2.0-or-later
 */

#ifndef KIMAGEFRAME_H
#define KIMAGEFRAME_H

#include <QFrame>

class KImageFrame : public QFrame
{
    Q_OBJECT
public:
    KImageFrame(QWidget* parent = 0);
    ~KImageFrame() override {}

public Q_SLOTS:
    void setImage(const QImage&);

protected Q_SLOTS:
    void paintEvent(QPaintEvent*) override;

protected:
    QImage _image;
    int _w, _h;
};

#endif
// kate: hl C++; indent-width 4; replace-tabs on;