更新监控系统说明书
This commit is contained in:
@@ -46,7 +46,11 @@ NavButton::NavButton(QWidget *parent) : QPushButton(parent)
|
||||
setText("导航按钮");
|
||||
}
|
||||
|
||||
#if (QT_VERSION >= QT_VERSION_CHECK(6,0,0))
|
||||
void NavButton::enterEvent(QEnterEvent *)
|
||||
#else
|
||||
void NavButton::enterEvent(QEvent *)
|
||||
#endif
|
||||
{
|
||||
hover = true;
|
||||
this->update();
|
||||
|
||||
@@ -92,7 +92,11 @@ public:
|
||||
explicit NavButton(QWidget *parent = 0);
|
||||
|
||||
protected:
|
||||
#if (QT_VERSION >= QT_VERSION_CHECK(6,0,0))
|
||||
void enterEvent(QEnterEvent *);
|
||||
#else
|
||||
void enterEvent(QEvent *);
|
||||
#endif
|
||||
void leaveEvent(QEvent *);
|
||||
void paintEvent(QPaintEvent *);
|
||||
void drawBg(QPainter *painter);
|
||||
|
||||
Reference in New Issue
Block a user