Enable ban and kick button in UserProfile (and try to fix centering)
This commit is contained in:
parent
a07e699811
commit
b541cecd2e
4 changed files with 97 additions and 90 deletions
|
|
@ -613,7 +613,8 @@ utils::centerWidget(QWidget *widget, QWidget *parent)
|
|||
};
|
||||
|
||||
if (parent) {
|
||||
widget->move(findCenter(parent->geometry()));
|
||||
widget->move(parent->window()->frameGeometry().topLeft() +
|
||||
parent->window()->rect().center() - widget->rect().center());
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue