mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-05 06:26:49 +00:00
Qt warnings cleanup
This commit is contained in:
parent
f051f53e15
commit
8150095e8f
8 changed files with 26 additions and 18 deletions
|
|
@ -8,6 +8,7 @@
|
|||
#include <QMenu>
|
||||
#include <QDesktopWidget>
|
||||
#include <QApplication>
|
||||
#include <QScreen>
|
||||
|
||||
constexpr auto qstr = QString::fromStdString;
|
||||
|
||||
|
|
@ -225,7 +226,7 @@ void save_data_list_dialog::UpdateList()
|
|||
|
||||
QSize preferredSize = minimumSize().expandedTo(sizeHint() - m_list->sizeHint() + tableSize);
|
||||
|
||||
QSize maxSize = QSize(preferredSize.width(), static_cast<int>(QApplication::desktop()->screenGeometry().height()*.6));
|
||||
QSize maxSize = QSize(preferredSize.width(), static_cast<int>(QGuiApplication::primaryScreen()->geometry().height() * 0.6));
|
||||
|
||||
resize(preferredSize.boundedTo(maxSize));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue