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,9 +728,15 @@ bool Widget::isFriendWidgetCurActiveWidget(Friend* f)
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Widget::resizeEvent(QResizeEvent *)
|
||||||
|
{
|
||||||
|
updateFriendListWidth();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
bool Widget::event(QEvent * e)
|
bool Widget::event(QEvent * e)
|
||||||
{
|
{
|
||||||
|
|
||||||
if( e->type() == QEvent::WindowStateChange )
|
if( e->type() == QEvent::WindowStateChange )
|
||||||
{
|
{
|
||||||
if(windowState().testFlag(Qt::WindowMinimized) == true)
|
if(windowState().testFlag(Qt::WindowMinimized) == true)
|
||||||
|
|
|
@ -54,6 +54,9 @@ signals:
|
||||||
void usernameChanged(const QString& username);
|
void usernameChanged(const QString& username);
|
||||||
void statusMessageChanged(const QString& statusMessage);
|
void statusMessageChanged(const QString& statusMessage);
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void resizeEvent(QResizeEvent *);
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
void maximizeBtnClicked();
|
void maximizeBtnClicked();
|
||||||
void minimizeBtnClicked();
|
void minimizeBtnClicked();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user