File: kimageframe.h

package info (click to toggle)
kf6-kconfigwidgets 6.13.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 24,020 kB
  • sloc: cpp: 6,309; sh: 18; makefile: 7
file content (32 lines) | stat: -rw-r--r-- 514 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/*
    SPDX-FileCopyrightText: 2009 Matthew Woehlke <mw_triad@users.sourceforge.net>

    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 = nullptr);
    ~KImageFrame() override
    {
    }

public Q_SLOTS:
    void setImage(const QImage &);

protected Q_SLOTS:
    void paintEvent(QPaintEvent *) override;

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

#endif