mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
Fix window resize bug
This commit is contained in:
parent
6f30308a2c
commit
f1d30cbc14
|
@ -728,10 +728,16 @@ bool Widget::isFriendWidgetCurActiveWidget(Friend* f)
|
|||
return true;
|
||||
}
|
||||
|
||||
void Widget::resizeEvent(QResizeEvent *)
|
||||
{
|
||||
updateFriendListWidth();
|
||||
}
|
||||
|
||||
|
||||
bool Widget::event(QEvent * e)
|
||||
{
|
||||
if (e->type() == QEvent::WindowStateChange)
|
||||
|
||||
if( e->type() == QEvent::WindowStateChange )
|
||||
{
|
||||
if(windowState().testFlag(Qt::WindowMinimized) == true)
|
||||
{
|
||||
|
|
|
@ -54,6 +54,9 @@ signals:
|
|||
void usernameChanged(const QString& username);
|
||||
void statusMessageChanged(const QString& statusMessage);
|
||||
|
||||
protected:
|
||||
void resizeEvent(QResizeEvent *);
|
||||
|
||||
private slots:
|
||||
void maximizeBtnClicked();
|
||||
void minimizeBtnClicked();
|
||||
|
|
Loading…
Reference in New Issue
Block a user