Skip to content

Commit ec526fe

Browse files
committed
Externals/Qt: Update to 5.13.1
1 parent 6dbb5cc commit ec526fe

File tree

6 files changed

+13
-21
lines changed

6 files changed

+13
-21
lines changed

CMakeSettings.json

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"variables": [
1212
{
1313
"name": "Qt5_DIR",
14-
"value": "${workspaceRoot}\\Externals\\Qt\\Qt5.11.1\\5.11.1\\msvc2017_64\\lib\\cmake\\Qt5"
14+
"value": "${workspaceRoot}\\Externals\\Qt\\Qt5.13.1\\5.13.1\\msvc2017_64\\lib\\cmake\\Qt5"
1515
}
1616
]
1717
},
@@ -24,13 +24,9 @@
2424
"buildRoot": "${workspaceRoot}\\Build\\${name}",
2525
"cmakeCommandArgs": "",
2626
"variables": [
27-
{
28-
"name": "CMAKE_BUILD_TYPE",
29-
"value": "Debug"
30-
},
3127
{
3228
"name": "Qt5_DIR",
33-
"value": "${workspaceRoot}\\Externals\\Qt\\Qt5.11.1\\5.11.1\\msvc2017_64\\lib\\cmake\\Qt5"
29+
"value": "${workspaceRoot}\\Externals\\Qt\\Qt5.13.1\\5.13.1\\msvc2017_64\\lib\\cmake\\Qt5"
3430
}
3531
]
3632
}

Externals/Qt

Submodule Qt updated 3701 files

Source/Core/DolphinQt/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
if (NOT Qt5_DIR AND MSVC)
2-
set(Qt5_DIR "${CMAKE_SOURCE_DIR}/Externals/Qt5.11.1/5.11.1/msvc2017_64/lib/cmake/Qt5")
2+
set(Qt5_DIR "${CMAKE_SOURCE_DIR}/Externals/Qt/Qt5.13.1/5.13.1/msvc2017_64/lib/cmake/Qt5")
33
endif()
44

55
find_package(Qt5 5.9 REQUIRED COMPONENTS Gui Widgets)

Source/Core/DolphinQt/RenderWidget.cpp

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
#include <array>
88

99
#include <QApplication>
10-
#include <QDesktopWidget>
1110
#include <QDragEnterEvent>
1211
#include <QDropEvent>
1312
#include <QFileInfo>
@@ -19,6 +18,7 @@
1918
#include <QPalette>
2019
#include <QScreen>
2120
#include <QTimer>
21+
#include <QWindow>
2222

2323
#include "imgui.h"
2424

@@ -43,7 +43,7 @@ RenderWidget::RenderWidget(QWidget* parent) : QWidget(parent)
4343
setAcceptDrops(true);
4444

4545
QPalette p;
46-
p.setColor(QPalette::Background, Qt::black);
46+
p.setColor(QPalette::Window, Qt::black);
4747
setPalette(p);
4848

4949
connect(Host::GetInstance(), &Host::RequestTitle, this, &RenderWidget::setWindowTitle);
@@ -162,8 +162,9 @@ void RenderWidget::showFullScreen()
162162
{
163163
QWidget::showFullScreen();
164164

165-
const auto dpr =
166-
QGuiApplication::screens()[QApplication::desktop()->screenNumber(this)]->devicePixelRatio();
165+
QScreen* screen = window()->windowHandle()->screen();
166+
167+
const auto dpr = screen->devicePixelRatio();
167168

168169
emit SizeChanged(width() * dpr, height() * dpr);
169170
}
@@ -221,14 +222,9 @@ bool RenderWidget::event(QEvent* event)
221222
const QResizeEvent* se = static_cast<QResizeEvent*>(event);
222223
QSize new_size = se->size();
223224

224-
auto* desktop = QApplication::desktop();
225-
226-
int screen_nr = desktop->screenNumber(this);
227-
228-
if (screen_nr == -1)
229-
screen_nr = desktop->screenNumber(parentWidget());
225+
QScreen* screen = window()->windowHandle()->screen();
230226

231-
const auto dpr = desktop->screen(screen_nr)->devicePixelRatio();
227+
const auto dpr = screen->devicePixelRatio();
232228

233229
emit SizeChanged(new_size.width() * dpr, new_size.height() * dpr);
234230
break;

Source/Core/DolphinQt/ResourcePackManager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ void ResourcePackManager::RepopulateTable()
142142

143143
if (ResourcePack::IsInstalled(pack))
144144
{
145-
item->setBackgroundColor(QColor(Qt::green));
145+
item->setBackground(QColor(Qt::green));
146146

147147
auto font = item->font();
148148
font.setBold(true);

Source/VSProps/QtCompile.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
33
<PropertyGroup Label="UserMacros">
4-
<QTDIRDefault>$(ExternalsDir)Qt\Qt5.11.1\5.11.1\msvc2017_64\</QTDIRDefault>
4+
<QTDIRDefault>$(ExternalsDir)Qt\Qt5.13.1\5.13.1\msvc2017_64\</QTDIRDefault>
55
<QTDIR Condition="Exists('$(QTDIRDefault)') And ('$(QTDIR)'=='' Or !Exists('$(QTDIR)'))">$(QTDIRDefault)</QTDIR>
66
<QTDIR Condition="Exists('$(QTDIR)') And !HasTrailingSlash('$(QTDIR)')">$(QTDIR)\</QTDIR>
77
<QtDirValid>false</QtDirValid>

0 commit comments

Comments
 (0)