void EeoCustomNormalDialog::changeEvent(QEvent *event)
{
if (QEvent::WindowStateChange == event->type()) {
QWindowStateChangeEvent *stateEvent = dynamic_cast<QWindowStateChangeEvent *>(event);
if (stateEvent) {
Qt::WindowStates state = this->windowState();
if (state == Qt::WindowMaximized) {
m_pMaxBtn->setChecked(true);
} else if (state == Qt::WindowNoState) {
m_pMaxBtn->setChecked(false);
}
}
}
QWidget::changeEvent(event);
}