mirror of
https://gitee.com/drabel/LibQQt.git
synced 2025-01-04 10:18:44 +08:00
37 lines
617 B
C
37 lines
617 B
C
|
#ifndef QPICWIDGET_H
|
||
|
#define QPICWIDGET_H
|
||
|
|
||
|
#include <QWidget>
|
||
|
|
||
|
namespace Ui {
|
||
|
class QQTWidget;
|
||
|
}
|
||
|
|
||
|
class QQTWidget : public QWidget
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
|
||
|
public:
|
||
|
explicit QQTWidget(QWidget *parent = 0);
|
||
|
~QQTWidget();
|
||
|
|
||
|
enum {
|
||
|
QQTCENTER,
|
||
|
QQTTILEDWIDTH,
|
||
|
QQTTILEDHEIGHT,
|
||
|
QQTZOOMWIDTH,
|
||
|
QQTZOOMHEIGHT,
|
||
|
};
|
||
|
void setPixmap(QString pic = QString());
|
||
|
void setType(quint32 type = 0) { m_type = type; }
|
||
|
private:
|
||
|
Ui::QQTWidget *ui;
|
||
|
QString m_pic;
|
||
|
quint32 m_type;
|
||
|
// QWidget interface
|
||
|
protected:
|
||
|
void paintEvent(QPaintEvent *);
|
||
|
};
|
||
|
|
||
|
#endif // QPICWIDGET_H
|