You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
618 B
C++
49 lines
618 B
C++
#ifndef CPIXMAPWIDGET_H
|
|
#define CPIXMAPWIDGET_H
|
|
|
|
|
|
#include <QWidget>
|
|
#include <QPixmap>
|
|
|
|
|
|
/*!
|
|
\brief
|
|
|
|
\class cPixmapWidget cpixmapwidget.h "cpixmapwidget.h"
|
|
*/
|
|
class cPixmapWidget : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
/*!
|
|
\brief
|
|
|
|
\fn cPixmapWidget
|
|
\param parent
|
|
*/
|
|
explicit cPixmapWidget(QWidget *parent = nullptr);
|
|
/*!
|
|
\brief
|
|
|
|
\fn setPixmap
|
|
\param pixmap
|
|
*/
|
|
void setPixmap(const QPixmap& pixmap);
|
|
|
|
signals:
|
|
|
|
public slots:
|
|
|
|
protected:
|
|
QPixmap m_pixmap; /*!< TODO: describe */
|
|
/*!
|
|
\brief
|
|
|
|
\fn paintEvent
|
|
\param event
|
|
*/
|
|
void paintEvent(QPaintEvent *event);
|
|
};
|
|
|
|
#endif // CPIXMAPWIDGET_H
|