修复最小化按钮按之后再show部分不显示。
parent
450bcd6f4f
commit
3c163b6333
6
Qss.cpp
6
Qss.cpp
|
@ -764,6 +764,10 @@ bool QssMainWindow::eventFilter(QObject * obj, QEvent * ev){
|
|||
if (ev->type() == QEvent::Hide){
|
||||
qDebug()<<"hide";
|
||||
}
|
||||
if(ev->type() == QEvent::MacSizeChange){
|
||||
qDebug()<<"MacSizeChange";
|
||||
}
|
||||
|
||||
if (obj == m_frame)
|
||||
{
|
||||
if (ev->type() == QEvent::Paint){
|
||||
|
@ -822,7 +826,7 @@ bool QssMainWindow::eventFilter(QObject * obj, QEvent * ev){
|
|||
else if (ev->type() == QEvent::Hide)
|
||||
{
|
||||
if(m_tray_on){
|
||||
this->hide();
|
||||
m_frame->hide();
|
||||
return true;
|
||||
}else{
|
||||
close();
|
||||
|
|
Loading…
Reference in New Issue