mirror of
https://gitee.com/drabel/LibQQt.git
synced 2025-01-04 10:18:44 +08:00
35 lines
682 B
C++
Executable File
35 lines
682 B
C++
Executable File
#ifndef QQTRADIOBUTTON_H
|
|
#define QQTRADIOBUTTON_H
|
|
|
|
#include <QRadioButton>
|
|
#include "qqtdefine.h"
|
|
|
|
namespace Ui {
|
|
class QQTRadioButton;
|
|
}
|
|
|
|
class QQTRadioButton : public QRadioButton
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit QQTRadioButton(QWidget *parent = 0);
|
|
~QQTRadioButton();
|
|
|
|
void pixMap(QImage& m_icon, QImage& m_iconSel);
|
|
void setPixmap(const QString& m_icon = QString(), const QString &m_iconSel = QString());
|
|
private:
|
|
Ui::QQTRadioButton *ui;
|
|
TBtnIconTable m_icon;
|
|
|
|
// QWidget interface
|
|
protected:
|
|
void paintEvent(QPaintEvent *);
|
|
|
|
// QAbstractButton interface
|
|
protected:
|
|
bool hitButton(const QPoint &pos) const;
|
|
};
|
|
|
|
#endif // QQTRADIOBUTTON_H
|