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.
54 lines
723 B
C++
54 lines
723 B
C++
#ifndef CLABEL_H
|
|
#define CLABEL_H
|
|
|
|
|
|
#include <QLabel>
|
|
|
|
#include "cimage.h"
|
|
|
|
|
|
class cLabel : public QLabel
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
cLabel(QWidget *parent = nullptr, Qt::WindowFlags f = Qt::WindowFlags());
|
|
cLabel(const QString &text, QWidget *parent = nullptr, Qt::WindowFlags f = Qt::WindowFlags());
|
|
|
|
void setImage(cImage* lpImage);
|
|
private:
|
|
cImage* m_lpImage;
|
|
|
|
protected:
|
|
void resizeEvent(QResizeEvent* e);
|
|
void keyPressEvent(QKeyEvent* e);
|
|
|
|
signals:
|
|
/*!
|
|
\brief
|
|
|
|
\fn imageNext
|
|
*/
|
|
void imageNext();
|
|
/*!
|
|
\brief
|
|
|
|
\fn imagePrev
|
|
*/
|
|
void imagePrev();
|
|
/*!
|
|
\brief
|
|
|
|
\fn imageLast
|
|
*/
|
|
void imageLast();
|
|
/*!
|
|
\brief
|
|
|
|
\fn imageFirst
|
|
*/
|
|
void imageFirst();
|
|
};
|
|
|
|
#endif // CLABEL_H
|