mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-04 14:08:37 +00:00
Qt warnings cleanup
This commit is contained in:
parent
f051f53e15
commit
8150095e8f
8 changed files with 26 additions and 18 deletions
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
#include <QRegExpValidator>
|
||||
#include <QInputDialog>
|
||||
#include <QScreen>
|
||||
|
||||
namespace
|
||||
{
|
||||
|
|
@ -209,7 +210,7 @@ void user_manager_dialog::UpdateTable(bool mark_only)
|
|||
m_table->horizontalHeader()->height() + m_table->verticalHeader()->length() + m_table->frameWidth() * 2);
|
||||
|
||||
QSize preferred_size = minimumSize().expandedTo(sizeHint() - m_table->sizeHint() + table_size).expandedTo(size());
|
||||
QSize max_size = QSize(preferred_size.width(), static_cast<int>(QApplication::desktop()->screenGeometry().height()*.6));
|
||||
QSize max_size = QSize(preferred_size.width(), static_cast<int>(QGuiApplication::primaryScreen()->size().height() * 0.6));
|
||||
|
||||
resize(preferred_size.boundedTo(max_size));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue