mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
Merge pull request #86 from F1ynn/master
Fix segfault when using custom window borders
This commit is contained in:
commit
45563eafba
|
@ -87,7 +87,6 @@ Widget::Widget(QWidget *parent) :
|
|||
|
||||
setWindowFlags(Qt::CustomizeWindowHint);
|
||||
setWindowFlags(Qt::FramelessWindowHint);
|
||||
setAttribute(Qt::WA_DeleteOnClose);
|
||||
|
||||
addAction(ui->actionClose);
|
||||
|
||||
|
@ -796,13 +795,16 @@ bool Widget::event(QEvent * e)
|
|||
inResizeZone = true;
|
||||
|
||||
if (yMouse >= wHeight - PIXELS_TO_ACT)
|
||||
{
|
||||
setCursor(Qt::SizeFDiagCursor);
|
||||
resizeWindow(k);
|
||||
}
|
||||
else if (yMouse <= PIXELS_TO_ACT)
|
||||
{
|
||||
setCursor(Qt::SizeBDiagCursor);
|
||||
else
|
||||
setCursor(Qt::SizeHorCursor);
|
||||
resizeWindow(k);
|
||||
}
|
||||
|
||||
resizeWindow(k);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user