Merge pull request #10559 from shuffle2/qt6
update to Qt6 on windows, support Qt6 elsewhere
This commit is contained in:
commit
5f04ad5c3c
|
@ -261,7 +261,7 @@ def build(config):
|
||||||
os.mkdir(arch)
|
os.mkdir(arch)
|
||||||
|
|
||||||
env = os.environ.copy()
|
env = os.environ.copy()
|
||||||
env["Qt5_DIR"] = config[arch+"_qt5_path"]
|
env["QT_DIR"] = config[arch+"_qt5_path"]
|
||||||
env["CMAKE_OSX_ARCHITECTURES"] = arch
|
env["CMAKE_OSX_ARCHITECTURES"] = arch
|
||||||
env["CMAKE_PREFIX_PATH"] = config[arch+"_cmake_prefix"]
|
env["CMAKE_PREFIX_PATH"] = config[arch+"_cmake_prefix"]
|
||||||
|
|
||||||
|
|
|
@ -10,8 +10,8 @@
|
||||||
"cmakeCommandArgs": "",
|
"cmakeCommandArgs": "",
|
||||||
"variables": [
|
"variables": [
|
||||||
{
|
{
|
||||||
"name": "Qt5_DIR",
|
"name": "QT_DIR",
|
||||||
"value": "${workspaceRoot}\\Externals\\Qt\\Qt5.15.0\\msvc2019_64\\lib\\cmake\\Qt5"
|
"value": "${workspaceRoot}\\Externals\\Qt\\Qt6.3.0\\x64\\lib\\cmake\\Qt6"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
@ -25,8 +25,8 @@
|
||||||
"cmakeCommandArgs": "",
|
"cmakeCommandArgs": "",
|
||||||
"variables": [
|
"variables": [
|
||||||
{
|
{
|
||||||
"name": "Qt5_DIR",
|
"name": "QT_DIR",
|
||||||
"value": "${workspaceRoot}\\Externals\\Qt\\Qt5.15.0\\msvc2019_64\\lib\\cmake\\Qt5"
|
"value": "${workspaceRoot}\\Externals\\Qt\\Qt6.3.0\\x64\\lib\\cmake\\Qt6"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
@ -40,8 +40,8 @@
|
||||||
"cmakeCommandArgs": "",
|
"cmakeCommandArgs": "",
|
||||||
"variables": [
|
"variables": [
|
||||||
{
|
{
|
||||||
"name": "Qt5_DIR",
|
"name": "QT_DIR",
|
||||||
"value": "${workspaceRoot}\\Externals\\Qt\\Qt5.15.0\\msvc2019_arm64\\lib\\cmake\\Qt5"
|
"value": "${workspaceRoot}\\Externals\\Qt\\Qt6.3.0\\ARM64\\lib\\cmake\\Qt6"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "CMAKE_SYSTEM_NAME",
|
"name": "CMAKE_SYSTEM_NAME",
|
||||||
|
@ -63,8 +63,8 @@
|
||||||
"cmakeCommandArgs": "",
|
"cmakeCommandArgs": "",
|
||||||
"variables": [
|
"variables": [
|
||||||
{
|
{
|
||||||
"name": "Qt5_DIR",
|
"name": "QT_DIR",
|
||||||
"value": "${workspaceRoot}\\Externals\\Qt\\Qt5.15.0\\msvc2019_arm64\\lib\\cmake\\Qt5"
|
"value": "${workspaceRoot}\\Externals\\Qt\\Qt6.3.0\\ARM64\\lib\\cmake\\Qt6"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "CMAKE_SYSTEM_NAME",
|
"name": "CMAKE_SYSTEM_NAME",
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 5ab31b5fdf1cdc59b9e8c82a0f7c12d5fe878cd8
|
Subproject commit 9498dbe9421a80da674212fee0bf745883464992
|
|
@ -1,18 +1,29 @@
|
||||||
if (NOT Qt5_DIR AND MSVC)
|
if(POLICY CMP0084)
|
||||||
|
# Disable trying to search for Qt3/4 if what we actually want is not found
|
||||||
|
cmake_policy(SET CMP0084 NEW)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if (NOT QT_DIR AND MSVC)
|
||||||
if(_M_ARM_64)
|
if(_M_ARM_64)
|
||||||
set(Qt5_DIR "${CMAKE_SOURCE_DIR}/Externals/Qt/Qt5.15.0/msvc2019_arm64/lib/cmake/Qt5")
|
set(QT_DIR "${CMAKE_SOURCE_DIR}/Externals/Qt/Qt6.3.0/ARM64/lib/cmake/Qt6")
|
||||||
else()
|
else()
|
||||||
set(Qt5_DIR "${CMAKE_SOURCE_DIR}/Externals/Qt/Qt5.15.0/msvc2019_64/lib/cmake/Qt5")
|
set(QT_DIR "${CMAKE_SOURCE_DIR}/Externals/Qt/Qt6.3.0/x64/lib/cmake/Qt6")
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
find_package(Qt5 5.9 REQUIRED COMPONENTS Gui Widgets)
|
|
||||||
|
|
||||||
set_property(TARGET Qt5::Core PROPERTY INTERFACE_COMPILE_FEATURES "")
|
|
||||||
message(STATUS "Found Qt version ${Qt5Core_VERSION}")
|
|
||||||
|
|
||||||
set(CMAKE_AUTOMOC ON)
|
set(CMAKE_AUTOMOC ON)
|
||||||
|
|
||||||
|
# For some reason the method in Qt6 documentation is not working (at least on ubuntu jammy)
|
||||||
|
# When Qt5 and Qt6 are given in same NAMES entry, only Qt5 is ever found.
|
||||||
|
find_package(QT NAMES Qt6 COMPONENTS Core Gui Widgets)
|
||||||
|
if(NOT QT_DIR)
|
||||||
|
find_package(QT NAMES Qt5 COMPONENTS Core Gui Widgets)
|
||||||
|
endif()
|
||||||
|
find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Core Gui Widgets)
|
||||||
|
message(STATUS "Found Qt version ${QT_VERSION}")
|
||||||
|
|
||||||
|
set_property(TARGET Qt${QT_VERSION_MAJOR}::Core PROPERTY INTERFACE_COMPILE_FEATURES "")
|
||||||
|
|
||||||
add_executable(dolphin-emu
|
add_executable(dolphin-emu
|
||||||
AboutDialog.cpp
|
AboutDialog.cpp
|
||||||
AboutDialog.h
|
AboutDialog.h
|
||||||
|
@ -351,13 +362,13 @@ PRIVATE
|
||||||
target_include_directories(dolphin-emu
|
target_include_directories(dolphin-emu
|
||||||
PRIVATE
|
PRIVATE
|
||||||
${CMAKE_CURRENT_BINARY_DIR}
|
${CMAKE_CURRENT_BINARY_DIR}
|
||||||
${Qt5Gui_PRIVATE_INCLUDE_DIRS}
|
${Qt${QT_VERSION_MAJOR}Gui_PRIVATE_INCLUDE_DIRS}
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(dolphin-emu
|
target_link_libraries(dolphin-emu
|
||||||
PRIVATE
|
PRIVATE
|
||||||
core
|
core
|
||||||
Qt5::Widgets
|
Qt${QT_VERSION_MAJOR}::Widgets
|
||||||
uicommon
|
uicommon
|
||||||
imgui
|
imgui
|
||||||
)
|
)
|
||||||
|
@ -377,9 +388,9 @@ if (MSVC)
|
||||||
set(qtGui "")
|
set(qtGui "")
|
||||||
set(qtGuiPriv "")
|
set(qtGuiPriv "")
|
||||||
set(qtWidgetsPriv "")
|
set(qtWidgetsPriv "")
|
||||||
list(TRANSFORM Qt5Gui_INCLUDE_DIRS PREPEND "/external:I" OUTPUT_VARIABLE qtGui)
|
list(TRANSFORM Qt6Gui_INCLUDE_DIRS PREPEND "/external:I" OUTPUT_VARIABLE qtGui)
|
||||||
list(TRANSFORM Qt5Gui_PRIVATE_INCLUDE_DIRS PREPEND "/external:I" OUTPUT_VARIABLE qtGuiPriv)
|
list(TRANSFORM Qt6Gui_PRIVATE_INCLUDE_DIRS PREPEND "/external:I" OUTPUT_VARIABLE qtGuiPriv)
|
||||||
list(TRANSFORM Qt5Widgets_PRIVATE_INCLUDE_DIRS PREPEND "/external:I" OUTPUT_VARIABLE qtWidgetsPriv)
|
list(TRANSFORM Qt6Widgets_PRIVATE_INCLUDE_DIRS PREPEND "/external:I" OUTPUT_VARIABLE qtWidgetsPriv)
|
||||||
target_compile_options(dolphin-emu PRIVATE "${qtGui}")
|
target_compile_options(dolphin-emu PRIVATE "${qtGui}")
|
||||||
target_compile_options(dolphin-emu PRIVATE "${qtGuiPriv}")
|
target_compile_options(dolphin-emu PRIVATE "${qtGuiPriv}")
|
||||||
target_compile_options(dolphin-emu PRIVATE "${qtWidgets}")
|
target_compile_options(dolphin-emu PRIVATE "${qtWidgets}")
|
||||||
|
@ -415,7 +426,7 @@ if(WIN32)
|
||||||
)
|
)
|
||||||
|
|
||||||
# Delegate to Qt's official deployment binary on Windows to copy over the necessary Qt-specific libraries, etc.
|
# Delegate to Qt's official deployment binary on Windows to copy over the necessary Qt-specific libraries, etc.
|
||||||
get_target_property(MOC_EXECUTABLE_LOCATION Qt5::moc IMPORTED_LOCATION)
|
get_target_property(MOC_EXECUTABLE_LOCATION Qt${QT_VERSION_MAJOR}::moc IMPORTED_LOCATION)
|
||||||
get_filename_component(QT_BINARY_DIRECTORY "${MOC_EXECUTABLE_LOCATION}" DIRECTORY)
|
get_filename_component(QT_BINARY_DIRECTORY "${MOC_EXECUTABLE_LOCATION}" DIRECTORY)
|
||||||
find_program(WINDEPLOYQT_EXE windeployqt HINTS "${QT_BINARY_DIRECTORY}")
|
find_program(WINDEPLOYQT_EXE windeployqt HINTS "${QT_BINARY_DIRECTORY}")
|
||||||
|
|
||||||
|
@ -520,12 +531,18 @@ if(APPLE)
|
||||||
target_sources(dolphin-emu PRIVATE "${CMAKE_SOURCE_DIR}/Data/Dolphin.icns")
|
target_sources(dolphin-emu PRIVATE "${CMAKE_SOURCE_DIR}/Data/Dolphin.icns")
|
||||||
set_source_files_properties("${CMAKE_SOURCE_DIR}/Data/Dolphin.icns" PROPERTIES MACOSX_PACKAGE_LOCATION Resources)
|
set_source_files_properties("${CMAKE_SOURCE_DIR}/Data/Dolphin.icns" PROPERTIES MACOSX_PACKAGE_LOCATION Resources)
|
||||||
|
|
||||||
|
# Plugins have to be manually included with Qt 6
|
||||||
|
if (QT_VERSION_MAJOR EQUAL 6)
|
||||||
|
find_package(Qt6QMacStylePlugin REQUIRED PATHS ${Qt6Widgets_DIR})
|
||||||
|
find_package(Qt6QCocoaIntegrationPlugin REQUIRED PATHS ${Qt6Gui_DIR})
|
||||||
|
endif()
|
||||||
|
|
||||||
# Copy Qt plugins into the bundle
|
# Copy Qt plugins into the bundle
|
||||||
get_target_property(qtcocoa_location Qt5::QCocoaIntegrationPlugin LOCATION)
|
get_target_property(qtcocoa_location Qt${QT_VERSION_MAJOR}::QCocoaIntegrationPlugin LOCATION)
|
||||||
target_sources(dolphin-emu PRIVATE "${qtcocoa_location}")
|
target_sources(dolphin-emu PRIVATE "${qtcocoa_location}")
|
||||||
set_source_files_properties("${qtcocoa_location}" PROPERTIES MACOSX_PACKAGE_LOCATION MacOS/platforms)
|
set_source_files_properties("${qtcocoa_location}" PROPERTIES MACOSX_PACKAGE_LOCATION MacOS/platforms)
|
||||||
|
|
||||||
get_target_property(qtmacstyle_location Qt5::QMacStylePlugin LOCATION)
|
get_target_property(qtmacstyle_location Qt${QT_VERSION_MAJOR}::QMacStylePlugin LOCATION)
|
||||||
target_sources(dolphin-emu PRIVATE "${qtmacstyle_location}")
|
target_sources(dolphin-emu PRIVATE "${qtmacstyle_location}")
|
||||||
set_source_files_properties("${qtmacstyle_location}" PROPERTIES MACOSX_PACKAGE_LOCATION MacOS/styles)
|
set_source_files_properties("${qtmacstyle_location}" PROPERTIES MACOSX_PACKAGE_LOCATION MacOS/styles)
|
||||||
|
|
||||||
|
|
|
@ -55,7 +55,7 @@ void CheatSearchFactoryWidget::CreateWidgets()
|
||||||
label_standard_address_space->setWordWrap(true);
|
label_standard_address_space->setWordWrap(true);
|
||||||
|
|
||||||
auto* custom_address_space_layout = new QVBoxLayout();
|
auto* custom_address_space_layout = new QVBoxLayout();
|
||||||
custom_address_space_layout->setMargin(6);
|
custom_address_space_layout->setContentsMargins(6, 6, 6, 6);
|
||||||
auto* custom_address_space_button_group = new QButtonGroup(this);
|
auto* custom_address_space_button_group = new QButtonGroup(this);
|
||||||
m_custom_virtual_address_space = new QRadioButton(tr("Use virtual addresses when possible"));
|
m_custom_virtual_address_space = new QRadioButton(tr("Use virtual addresses when possible"));
|
||||||
m_custom_virtual_address_space->setChecked(true);
|
m_custom_virtual_address_space->setChecked(true);
|
||||||
|
|
|
@ -36,7 +36,7 @@ void CommonControllersWidget::CreateLayout()
|
||||||
m_common_box->setLayout(m_common_layout);
|
m_common_box->setLayout(m_common_layout);
|
||||||
|
|
||||||
auto* layout = new QVBoxLayout;
|
auto* layout = new QVBoxLayout;
|
||||||
layout->setMargin(0);
|
layout->setContentsMargins(0, 0, 0, 0);
|
||||||
layout->setAlignment(Qt::AlignTop);
|
layout->setAlignment(Qt::AlignTop);
|
||||||
layout->addWidget(m_common_box);
|
layout->addWidget(m_common_box);
|
||||||
setLayout(layout);
|
setLayout(layout);
|
||||||
|
|
|
@ -92,7 +92,7 @@ void GamecubeControllersWidget::CreateLayout()
|
||||||
m_gc_box->setLayout(m_gc_layout);
|
m_gc_box->setLayout(m_gc_layout);
|
||||||
|
|
||||||
auto* layout = new QVBoxLayout;
|
auto* layout = new QVBoxLayout;
|
||||||
layout->setMargin(0);
|
layout->setContentsMargins(0, 0, 0, 0);
|
||||||
layout->setAlignment(Qt::AlignTop);
|
layout->setAlignment(Qt::AlignTop);
|
||||||
layout->addWidget(m_gc_box);
|
layout->addWidget(m_gc_box);
|
||||||
setLayout(layout);
|
setLayout(layout);
|
||||||
|
|
|
@ -22,7 +22,11 @@ public:
|
||||||
void SetDescription(QString description) { m_description = std::move(description); }
|
void SetDescription(QString description) { m_description = std::move(description); }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
|
||||||
void enterEvent(QEvent* event) override
|
void enterEvent(QEvent* event) override
|
||||||
|
#else
|
||||||
|
void enterEvent(QEnterEvent* event) override
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
if (m_timer_id)
|
if (m_timer_id)
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -74,7 +74,7 @@ static int GetLayoutHorizontalSpacing(const QGridLayout* layout)
|
||||||
float pixel_ratio = QGuiApplication::primaryScreen()->devicePixelRatio();
|
float pixel_ratio = QGuiApplication::primaryScreen()->devicePixelRatio();
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
// TODO is this still required?
|
// TODO is this still required?
|
||||||
hspacing = pixel_ratio * style->pixelMetric(QStyle::PM_DefaultLayoutSpacing);
|
hspacing = pixel_ratio * style->pixelMetric(QStyle::PM_LayoutHorizontalSpacing);
|
||||||
if (hspacing >= 0)
|
if (hspacing >= 0)
|
||||||
return hspacing;
|
return hspacing;
|
||||||
#endif
|
#endif
|
||||||
|
@ -145,7 +145,7 @@ void WiimoteControllersWidget::CreateLayout()
|
||||||
m_wiimote_layout->addWidget(m_wiimote_refresh, continuous_scanning_row, 3);
|
m_wiimote_layout->addWidget(m_wiimote_refresh, continuous_scanning_row, 3);
|
||||||
|
|
||||||
auto* layout = new QVBoxLayout;
|
auto* layout = new QVBoxLayout;
|
||||||
layout->setMargin(0);
|
layout->setContentsMargins(0, 0, 0, 0);
|
||||||
layout->setAlignment(Qt::AlignTop);
|
layout->setAlignment(Qt::AlignTop);
|
||||||
layout->addWidget(m_wiimote_box);
|
layout->addWidget(m_wiimote_box);
|
||||||
setLayout(layout);
|
setLayout(layout);
|
||||||
|
|
|
@ -13,14 +13,11 @@
|
||||||
<ImportGroup Label="PropertySheets">
|
<ImportGroup Label="PropertySheets">
|
||||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
<Import Project="$(VSPropsDir)Base.props" />
|
<Import Project="$(VSPropsDir)Base.props" />
|
||||||
<Import Project="$(VSPropsDir)PCHUse.props" />
|
|
||||||
<Import Project="$(VSPropsDir)QtCompile.props" />
|
<Import Project="$(VSPropsDir)QtCompile.props" />
|
||||||
</ImportGroup>
|
</ImportGroup>
|
||||||
<PropertyGroup Label="UserMacros" />
|
<PropertyGroup Label="UserMacros" />
|
||||||
<ItemDefinitionGroup>
|
<ItemDefinitionGroup>
|
||||||
<ClCompile>
|
<ClCompile>
|
||||||
<!-- 5054 operator '+': deprecated between enumerations of different types (types defined in Qt headers) -->
|
|
||||||
<DisableSpecificWarnings>5054;%(DisableSpecificWarnings)</DisableSpecificWarnings>
|
|
||||||
<AdditionalIncludeDirectories>$(ProjectDir)Config\Graphics;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
<AdditionalIncludeDirectories>$(ProjectDir)Config\Graphics;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
<AdditionalIncludeDirectories>$(ProjectDir)Config;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
<AdditionalIncludeDirectories>$(ProjectDir)Config;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
<AdditionalIncludeDirectories>$(ProjectDir)Config\ControllerInterface;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
<AdditionalIncludeDirectories>$(ProjectDir)Config\ControllerInterface;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
@ -33,6 +30,8 @@
|
||||||
<AdditionalIncludeDirectories>$(ProjectDir)Settings;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
<AdditionalIncludeDirectories>$(ProjectDir)Settings;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
<AdditionalIncludeDirectories>$(ProjectDir)TAS;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
<AdditionalIncludeDirectories>$(ProjectDir)TAS;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
<AdditionalIncludeDirectories>$(ProjectDir)VideoInterface;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
<AdditionalIncludeDirectories>$(ProjectDir)VideoInterface;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<!--Ignore warnings in locally-instantiated fmt templates-->
|
||||||
|
<ExternalTemplatesDiagnostics>false</ExternalTemplatesDiagnostics>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<Manifest>
|
<Manifest>
|
||||||
<AdditionalManifestFiles>DolphinQt.manifest;%(AdditionalManifestFiles)</AdditionalManifestFiles>
|
<AdditionalManifestFiles>DolphinQt.manifest;%(AdditionalManifestFiles)</AdditionalManifestFiles>
|
||||||
|
@ -379,6 +378,9 @@
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ResourceCompile Include="DolphinQt.rc" />
|
<ResourceCompile Include="DolphinQt.rc" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Natvis Include="qt6.natvis" />
|
||||||
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="$(CoreDir)DolphinLib.vcxproj">
|
<ProjectReference Include="$(CoreDir)DolphinLib.vcxproj">
|
||||||
<Project>{D79392F7-06D6-4B4B-A39F-4D587C215D3A}</Project>
|
<Project>{D79392F7-06D6-4B4B-A39F-4D587C215D3A}</Project>
|
||||||
|
@ -389,6 +391,16 @@
|
||||||
<ProjectReference Include="$(DolphinRootDir)Languages\Languages.vcxproj">
|
<ProjectReference Include="$(DolphinRootDir)Languages\Languages.vcxproj">
|
||||||
<Project>{0e033be3-2e08-428e-9ae9-bc673efa12b5}</Project>
|
<Project>{0e033be3-2e08-428e-9ae9-bc673efa12b5}</Project>
|
||||||
</ProjectReference>
|
</ProjectReference>
|
||||||
|
<!--
|
||||||
|
This project doesn't use PCH during compile (because RTTI setting differs),
|
||||||
|
but we still must link it for the dependants (DolphinLib)
|
||||||
|
-->
|
||||||
|
<ProjectReference Include="$(SourceDir)PCH\pch.vcxproj">
|
||||||
|
<Project>{76563A7F-1011-4EAD-B667-7BB18D09568E}</Project>
|
||||||
|
<Private>false</Private>
|
||||||
|
<LinkLibraryDependencies>true</LinkLibraryDependencies>
|
||||||
|
<UseLibraryDependencyInputs>true</UseLibraryDependencyInputs>
|
||||||
|
</ProjectReference>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<Import Project="$(ExternalsDir)ExternalsReferenceAll.props" />
|
<Import Project="$(ExternalsDir)ExternalsReferenceAll.props" />
|
||||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||||
|
|
|
@ -510,7 +510,13 @@ void GBAWidget::mouseMoveEvent(QMouseEvent* event)
|
||||||
{
|
{
|
||||||
if (!m_moving)
|
if (!m_moving)
|
||||||
return;
|
return;
|
||||||
move(event->globalPos() - m_move_pos - (geometry().topLeft() - pos()));
|
auto event_pos =
|
||||||
|
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
|
||||||
|
event->globalPosition().toPoint();
|
||||||
|
#else
|
||||||
|
event->globalPos();
|
||||||
|
#endif
|
||||||
|
move(event_pos - m_move_pos - (geometry().topLeft() - pos()));
|
||||||
}
|
}
|
||||||
|
|
||||||
void GBAWidget::paintEvent(QPaintEvent* event)
|
void GBAWidget::paintEvent(QPaintEvent* event)
|
||||||
|
|
|
@ -108,14 +108,14 @@ GameList::GameList(QWidget* parent) : QStackedWidget(parent), m_model(this)
|
||||||
// conceptually as 'control plus' (which is then interpreted as an appropriate zooming action)
|
// conceptually as 'control plus' (which is then interpreted as an appropriate zooming action)
|
||||||
// instead of the technically correct 'control equal'. Qt doesn't account for this convention so
|
// instead of the technically correct 'control equal'. Qt doesn't account for this convention so
|
||||||
// an alternate shortcut is needed to avoid counterintuitive behavior.
|
// an alternate shortcut is needed to avoid counterintuitive behavior.
|
||||||
const auto* zoom_in_alternate = new QShortcut(QKeySequence(Qt::CTRL + Qt::Key_Equal), this);
|
const auto* zoom_in_alternate = new QShortcut(QKeySequence(Qt::CTRL | Qt::Key_Equal), this);
|
||||||
connect(zoom_in_alternate, &QShortcut::activated, this, &GameList::ZoomIn);
|
connect(zoom_in_alternate, &QShortcut::activated, this, &GameList::ZoomIn);
|
||||||
|
|
||||||
// The above correction introduces a different inconsistency: now zooming in can be done using
|
// The above correction introduces a different inconsistency: now zooming in can be done using
|
||||||
// conceptual 'control plus' or 'control shift plus', while zooming out can only be done using
|
// conceptual 'control plus' or 'control shift plus', while zooming out can only be done using
|
||||||
// 'control minus'. Adding an alternate shortcut representing 'control shift minus' restores
|
// 'control minus'. Adding an alternate shortcut representing 'control shift minus' restores
|
||||||
// consistency.
|
// consistency.
|
||||||
const auto* zoom_out_alternate = new QShortcut(QKeySequence(Qt::CTRL + Qt::Key_Underscore), this);
|
const auto* zoom_out_alternate = new QShortcut(QKeySequence(Qt::CTRL | Qt::Key_Underscore), this);
|
||||||
connect(zoom_out_alternate, &QShortcut::activated, this, &GameList::ZoomOut);
|
connect(zoom_out_alternate, &QShortcut::activated, this, &GameList::ZoomOut);
|
||||||
|
|
||||||
connect(&Settings::Instance(), &Settings::MetadataRefreshCompleted, this,
|
connect(&Settings::Instance(), &Settings::MetadataRefreshCompleted, this,
|
||||||
|
|
|
@ -132,8 +132,15 @@ int main(int argc, char* argv[])
|
||||||
const optparse::Values& options = CommandLineParse::ParseArguments(parser.get(), argc, argv);
|
const optparse::Values& options = CommandLineParse::ParseArguments(parser.get(), argc, argv);
|
||||||
const std::vector<std::string> args = parser->args();
|
const std::vector<std::string> args = parser->args();
|
||||||
|
|
||||||
|
// setHighDpiScaleFactorRoundingPolicy was added in 5.14, but default behavior changed in 6.0
|
||||||
|
#if (QT_VERSION >= QT_VERSION_CHECK(6, 0, 0))
|
||||||
|
// Set to the previous default behavior
|
||||||
|
QGuiApplication::setHighDpiScaleFactorRoundingPolicy(Qt::HighDpiScaleFactorRoundingPolicy::Round);
|
||||||
|
#else
|
||||||
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
|
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
|
||||||
QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
|
QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
|
||||||
|
#endif
|
||||||
|
|
||||||
QCoreApplication::setOrganizationName(QStringLiteral("Dolphin Emulator"));
|
QCoreApplication::setOrganizationName(QStringLiteral("Dolphin Emulator"));
|
||||||
QCoreApplication::setOrganizationDomain(QStringLiteral("dolphin-emu.org"));
|
QCoreApplication::setOrganizationDomain(QStringLiteral("dolphin-emu.org"));
|
||||||
QCoreApplication::setApplicationName(QStringLiteral("dolphin-emu"));
|
QCoreApplication::setApplicationName(QStringLiteral("dolphin-emu"));
|
||||||
|
@ -144,7 +151,7 @@ int main(int argc, char* argv[])
|
||||||
QApplication app(argc, argv);
|
QApplication app(argc, argv);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef _WIN32
|
#if defined(_WIN32) && (QT_VERSION < QT_VERSION_CHECK(6, 0, 0))
|
||||||
// On Windows, Qt 5's default system font (MS Shell Dlg 2) is outdated.
|
// On Windows, Qt 5's default system font (MS Shell Dlg 2) is outdated.
|
||||||
// Interestingly, the QMenu font is correct and comes from lfMenuFont
|
// Interestingly, the QMenu font is correct and comes from lfMenuFont
|
||||||
// (Segoe UI on English computers).
|
// (Segoe UI on English computers).
|
||||||
|
|
|
@ -825,7 +825,7 @@ void MainWindow::TogglePause()
|
||||||
void MainWindow::OnStopComplete()
|
void MainWindow::OnStopComplete()
|
||||||
{
|
{
|
||||||
m_stop_requested = false;
|
m_stop_requested = false;
|
||||||
HideRenderWidget(true, m_exit_requested);
|
HideRenderWidget(!m_exit_requested, m_exit_requested);
|
||||||
#ifdef USE_DISCORD_PRESENCE
|
#ifdef USE_DISCORD_PRESENCE
|
||||||
if (!m_netplay_dialog->isVisible())
|
if (!m_netplay_dialog->isVisible())
|
||||||
Discord::UpdateDiscordPresence();
|
Discord::UpdateDiscordPresence();
|
||||||
|
@ -834,7 +834,7 @@ void MainWindow::OnStopComplete()
|
||||||
SetFullScreenResolution(false);
|
SetFullScreenResolution(false);
|
||||||
|
|
||||||
if (m_exit_requested || Settings::Instance().IsBatchModeEnabled())
|
if (m_exit_requested || Settings::Instance().IsBatchModeEnabled())
|
||||||
QGuiApplication::instance()->quit();
|
QGuiApplication::exit(0);
|
||||||
|
|
||||||
// If the current emulation prevented the booting of another, do that now
|
// If the current emulation prevented the booting of another, do that now
|
||||||
if (m_pending_boot != nullptr)
|
if (m_pending_boot != nullptr)
|
||||||
|
|
|
@ -218,7 +218,7 @@ void MenuBar::AddFileMenu()
|
||||||
file_menu->addSeparator();
|
file_menu->addSeparator();
|
||||||
|
|
||||||
m_exit_action = file_menu->addAction(tr("E&xit"), this, &MenuBar::Exit);
|
m_exit_action = file_menu->addAction(tr("E&xit"), this, &MenuBar::Exit);
|
||||||
m_exit_action->setShortcuts({QKeySequence::Quit, QKeySequence(Qt::ALT + Qt::Key_F4)});
|
m_exit_action->setShortcuts({QKeySequence::Quit, QKeySequence(Qt::ALT | Qt::Key_F4)});
|
||||||
}
|
}
|
||||||
|
|
||||||
void MenuBar::AddToolsMenu()
|
void MenuBar::AddToolsMenu()
|
||||||
|
|
|
@ -16,6 +16,11 @@ class ParallelProgressDialog final : public QObject
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
ParallelProgressDialog(const ParallelProgressDialog&) = delete;
|
||||||
|
ParallelProgressDialog& operator=(const ParallelProgressDialog&) = delete;
|
||||||
|
ParallelProgressDialog(ParallelProgressDialog&&) = delete;
|
||||||
|
ParallelProgressDialog& operator=(ParallelProgressDialog&&) = delete;
|
||||||
|
|
||||||
// Only use this from the main thread
|
// Only use this from the main thread
|
||||||
template <typename... Args>
|
template <typename... Args>
|
||||||
ParallelProgressDialog(Args&&... args) : m_dialog{std::forward<Args>(args)...}
|
ParallelProgressDialog(Args&&... args) : m_dialog{std::forward<Args>(args)...}
|
||||||
|
|
|
@ -502,8 +502,8 @@ void RenderWidget::PassEventToImGui(const QEvent* event)
|
||||||
// coordinates (as if the screen was standard dpi). We need to update the mouse position in
|
// coordinates (as if the screen was standard dpi). We need to update the mouse position in
|
||||||
// native coordinates, as the UI (and game) is rendered at native resolution.
|
// native coordinates, as the UI (and game) is rendered at native resolution.
|
||||||
const float scale = devicePixelRatio();
|
const float scale = devicePixelRatio();
|
||||||
ImGui::GetIO().MousePos.x = static_cast<const QMouseEvent*>(event)->x() * scale;
|
ImGui::GetIO().MousePos.x = static_cast<const QMouseEvent*>(event)->pos().x() * scale;
|
||||||
ImGui::GetIO().MousePos.y = static_cast<const QMouseEvent*>(event)->y() * scale;
|
ImGui::GetIO().MousePos.y = static_cast<const QMouseEvent*>(event)->pos().y() * scale;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
|
@ -87,8 +87,8 @@ void IRWidget::handleMouseEvent(QMouseEvent* event)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// convert from widget space to value space
|
// convert from widget space to value space
|
||||||
int new_x = ir_max_x - (event->x() * ir_max_x) / width();
|
int new_x = ir_max_x - (event->pos().x() * ir_max_x) / width();
|
||||||
int new_y = (event->y() * ir_max_y) / height();
|
int new_y = (event->pos().y() * ir_max_y) / height();
|
||||||
|
|
||||||
m_x = std::max(0, std::min(static_cast<int>(ir_max_x), new_x));
|
m_x = std::max(0, std::min(static_cast<int>(ir_max_x), new_x));
|
||||||
m_y = std::max(0, std::min(static_cast<int>(ir_max_y), new_y));
|
m_y = std::max(0, std::min(static_cast<int>(ir_max_y), new_y));
|
||||||
|
|
|
@ -90,8 +90,8 @@ void StickWidget::handleMouseEvent(QMouseEvent* event)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// convert from widget space to value space
|
// convert from widget space to value space
|
||||||
int new_x = (event->x() * m_max_x) / width();
|
int new_x = (event->pos().x() * m_max_x) / width();
|
||||||
int new_y = m_max_y - (event->y() * m_max_y) / height();
|
int new_y = m_max_y - (event->pos().y() * m_max_y) / height();
|
||||||
|
|
||||||
m_x = std::max(0, std::min(static_cast<int>(m_max_x), new_x));
|
m_x = std::max(0, std::min(static_cast<int>(m_max_x), new_x));
|
||||||
m_y = std::max(0, std::min(static_cast<int>(m_max_y), new_y));
|
m_y = std::max(0, std::min(static_cast<int>(m_max_y), new_y));
|
||||||
|
|
|
@ -72,8 +72,8 @@ QGroupBox* TASInputWindow::CreateStickInputs(QString name, QSpinBox*& x_value, Q
|
||||||
u16 max_x, u16 max_y, Qt::Key x_shortcut_key,
|
u16 max_x, u16 max_y, Qt::Key x_shortcut_key,
|
||||||
Qt::Key y_shortcut_key)
|
Qt::Key y_shortcut_key)
|
||||||
{
|
{
|
||||||
const QKeySequence x_shortcut_key_sequence = QKeySequence(Qt::ALT + x_shortcut_key);
|
const QKeySequence x_shortcut_key_sequence = QKeySequence(Qt::ALT | x_shortcut_key);
|
||||||
const QKeySequence y_shortcut_key_sequence = QKeySequence(Qt::ALT + y_shortcut_key);
|
const QKeySequence y_shortcut_key_sequence = QKeySequence(Qt::ALT | y_shortcut_key);
|
||||||
|
|
||||||
auto* box =
|
auto* box =
|
||||||
new QGroupBox(QStringLiteral("%1 (%2/%3)")
|
new QGroupBox(QStringLiteral("%1 (%2/%3)")
|
||||||
|
@ -119,7 +119,7 @@ QBoxLayout* TASInputWindow::CreateSliderValuePairLayout(QString name, QSpinBox*&
|
||||||
int default_, u16 max, Qt::Key shortcut_key,
|
int default_, u16 max, Qt::Key shortcut_key,
|
||||||
QWidget* shortcut_widget, bool invert)
|
QWidget* shortcut_widget, bool invert)
|
||||||
{
|
{
|
||||||
const QKeySequence shortcut_key_sequence = QKeySequence(Qt::ALT + shortcut_key);
|
const QKeySequence shortcut_key_sequence = QKeySequence(Qt::ALT | shortcut_key);
|
||||||
|
|
||||||
auto* label = new QLabel(QStringLiteral("%1 (%2)").arg(
|
auto* label = new QLabel(QStringLiteral("%1 (%2)").arg(
|
||||||
name, shortcut_key_sequence.toString(QKeySequence::NativeText)));
|
name, shortcut_key_sequence.toString(QKeySequence::NativeText)));
|
||||||
|
|
|
@ -40,8 +40,8 @@ using namespace WiimoteCommon;
|
||||||
|
|
||||||
WiiTASInputWindow::WiiTASInputWindow(QWidget* parent, int num) : TASInputWindow(parent), m_num(num)
|
WiiTASInputWindow::WiiTASInputWindow(QWidget* parent, int num) : TASInputWindow(parent), m_num(num)
|
||||||
{
|
{
|
||||||
const QKeySequence ir_x_shortcut_key_sequence = QKeySequence(Qt::ALT + Qt::Key_F);
|
const QKeySequence ir_x_shortcut_key_sequence = QKeySequence(Qt::ALT | Qt::Key_F);
|
||||||
const QKeySequence ir_y_shortcut_key_sequence = QKeySequence(Qt::ALT + Qt::Key_G);
|
const QKeySequence ir_y_shortcut_key_sequence = QKeySequence(Qt::ALT | Qt::Key_G);
|
||||||
|
|
||||||
m_ir_box = new QGroupBox(QStringLiteral("%1 (%2/%3)")
|
m_ir_box = new QGroupBox(QStringLiteral("%1 (%2/%3)")
|
||||||
.arg(tr("IR"),
|
.arg(tr("IR"),
|
||||||
|
|
|
@ -0,0 +1,406 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!--
|
||||||
|
****************************************************************************
|
||||||
|
**
|
||||||
|
** Copyright (C) 2021 The Qt Company Ltd.
|
||||||
|
** Contact: https://www.qt.io/licensing/
|
||||||
|
**
|
||||||
|
** This file is part of the Qt VS Tools.
|
||||||
|
**
|
||||||
|
** $QT_BEGIN_LICENSE:GPL-EXCEPT$
|
||||||
|
** Commercial License Usage
|
||||||
|
** Licensees holding valid commercial Qt licenses may use this file in
|
||||||
|
** accordance with the commercial license agreement provided with the
|
||||||
|
** Software or, alternatively, in accordance with the terms contained in
|
||||||
|
** a written agreement between you and The Qt Company. For licensing terms
|
||||||
|
** and conditions see https://www.qt.io/terms-conditions. For further
|
||||||
|
** information use the contact form at https://www.qt.io/contact-us.
|
||||||
|
**
|
||||||
|
** GNU General Public License Usage
|
||||||
|
** Alternatively, this file may be used under the terms of the GNU
|
||||||
|
** General Public License version 3 as published by the Free Software
|
||||||
|
** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
|
||||||
|
** included in the packaging of this file. Please review the following
|
||||||
|
** information to ensure the GNU General Public License requirements will
|
||||||
|
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
|
||||||
|
**
|
||||||
|
** $QT_END_LICENSE$
|
||||||
|
**
|
||||||
|
****************************************************************************
|
||||||
|
-->
|
||||||
|
|
||||||
|
<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
|
||||||
|
|
||||||
|
<Type Name="QSpecialInteger<*>">
|
||||||
|
<DisplayString>{val}</DisplayString>
|
||||||
|
<Expand>
|
||||||
|
<Item Name="[value]">val</Item>
|
||||||
|
</Expand>
|
||||||
|
</Type>
|
||||||
|
|
||||||
|
<Type Name="QBasicAtomicInteger<*>">
|
||||||
|
<DisplayString>{_q_value}</DisplayString>
|
||||||
|
<Expand>
|
||||||
|
<Item Name="[value]">_q_value</Item>
|
||||||
|
</Expand>
|
||||||
|
</Type>
|
||||||
|
|
||||||
|
<Type Name="QBasicAtomicPointer<*>">
|
||||||
|
<Intrinsic Name="isNull" Expression="value()==0" />
|
||||||
|
<Intrinsic Name="value" Expression="_q_value.value()" />
|
||||||
|
<DisplayString Condition="isNull()">empty</DisplayString>
|
||||||
|
<DisplayString Condition="!isNull()">{_q_value}</DisplayString>
|
||||||
|
<Expand>
|
||||||
|
<Item Name=" " Condition="!isNull()">*value()</Item>
|
||||||
|
</Expand>
|
||||||
|
</Type>
|
||||||
|
|
||||||
|
<Type Name="QPoint">
|
||||||
|
<AlternativeType Name="QPointF"/>
|
||||||
|
<DisplayString>{{ x = {xp}, y = {yp} }}</DisplayString>
|
||||||
|
<Expand>
|
||||||
|
<Item Name="[x]">xp</Item>
|
||||||
|
<Item Name="[y]">yp</Item>
|
||||||
|
</Expand>
|
||||||
|
</Type>
|
||||||
|
|
||||||
|
<Type Name="QRect">
|
||||||
|
<DisplayString>{{ x = {x1}, y = {y1}, width = {x2 - x1 + 1}, height = {y2 - y1 + 1} }}</DisplayString>
|
||||||
|
<Expand>
|
||||||
|
<Item Name="[x]">x1</Item>
|
||||||
|
<Item Name="[y]">y1</Item>
|
||||||
|
<Item Name="[width]">x2 - x1 + 1</Item>
|
||||||
|
<Item Name="[height]">y2 - y1 + 1</Item>
|
||||||
|
</Expand>
|
||||||
|
</Type>
|
||||||
|
|
||||||
|
<Type Name="QRectF">
|
||||||
|
<DisplayString>{{ x = {xp}, y = {yp}, width = {w}, height = {h} }}</DisplayString>
|
||||||
|
<Expand>
|
||||||
|
<Item Name="[x]">xp</Item>
|
||||||
|
<Item Name="[y]">yp</Item>
|
||||||
|
<Item Name="[width]">w</Item>
|
||||||
|
<Item Name="[height]">h</Item>
|
||||||
|
</Expand>
|
||||||
|
</Type>
|
||||||
|
|
||||||
|
<Type Name="QSize">
|
||||||
|
<AlternativeType Name="QSizeF"/>
|
||||||
|
<DisplayString>{{ width = {wd}, height = {ht} }}</DisplayString>
|
||||||
|
<Expand>
|
||||||
|
<Item Name="[width]">wd</Item>
|
||||||
|
<Item Name="[height]">ht</Item>
|
||||||
|
</Expand>
|
||||||
|
</Type>
|
||||||
|
|
||||||
|
<Type Name="QLine">
|
||||||
|
<AlternativeType Name="QLineF"/>
|
||||||
|
<DisplayString>{{ start point = {pt1}, end point = {pt2} }}</DisplayString>
|
||||||
|
<Expand>
|
||||||
|
<Synthetic Name="[start point]">
|
||||||
|
<DisplayString>{pt1}</DisplayString>
|
||||||
|
<Expand>
|
||||||
|
<ExpandedItem>pt1</ExpandedItem>
|
||||||
|
</Expand>
|
||||||
|
</Synthetic>
|
||||||
|
<Synthetic Name="[end point]">
|
||||||
|
<DisplayString>{pt2}</DisplayString>
|
||||||
|
<Expand>
|
||||||
|
<ExpandedItem>pt2</ExpandedItem>
|
||||||
|
</Expand>
|
||||||
|
</Synthetic>
|
||||||
|
|
||||||
|
</Expand>
|
||||||
|
</Type>
|
||||||
|
|
||||||
|
<Type Name="QPolygon">
|
||||||
|
<DisplayString>{{ size={d->size} }}</DisplayString>
|
||||||
|
<Expand>
|
||||||
|
<Item Name="[referenced]">d->ref.atomic._q_value</Item>
|
||||||
|
<ArrayItems>
|
||||||
|
<Size>d->size</Size>
|
||||||
|
<ValuePointer>(QPoint*)((reinterpret_cast<char*>(d)) + d->offset)</ValuePointer>
|
||||||
|
</ArrayItems>
|
||||||
|
</Expand>
|
||||||
|
</Type>
|
||||||
|
|
||||||
|
<Type Name="QPolygonF">
|
||||||
|
<DisplayString>{{ size={d->size} }}</DisplayString>
|
||||||
|
<Expand>
|
||||||
|
<Item Name="[closed]">
|
||||||
|
d->size > 0
|
||||||
|
&& ((((QPointF*)((reinterpret_cast<char*>(d)) + d->offset)[0]).xp
|
||||||
|
== (((QPointF*)((reinterpret_cast<char*>(d)) + d->offset)[d->size - 1]).xp)
|
||||||
|
&& ((((QPointF*)((reinterpret_cast<char*>(d)) + d->offset)[0]).yp
|
||||||
|
== (((QPointF*)((reinterpret_cast<char*>(d)) + d->offset)[d->size - 1]).yp)
|
||||||
|
</Item>
|
||||||
|
<Item Name="[referenced]">d->ref.atomic._q_value</Item>
|
||||||
|
<ArrayItems>
|
||||||
|
<Size>d->size</Size>
|
||||||
|
<ValuePointer>(QPointF*)((reinterpret_cast<char*>(d)) + d->offset)</ValuePointer>
|
||||||
|
</ArrayItems>
|
||||||
|
</Expand>
|
||||||
|
</Type>
|
||||||
|
|
||||||
|
<Type Name="QVector2D">
|
||||||
|
<DisplayString>{{ x = {xp}, y = {yp} }}</DisplayString>
|
||||||
|
<Expand>
|
||||||
|
<Item Name="[x]">xp</Item>
|
||||||
|
<Item Name="[y]">yp</Item>
|
||||||
|
</Expand>
|
||||||
|
</Type>
|
||||||
|
|
||||||
|
<Type Name="QVector3D">
|
||||||
|
<DisplayString>{{ x = {xp}, y = {yp}, z = {zp} }}</DisplayString>
|
||||||
|
<Expand>
|
||||||
|
<Item Name="[x]">xp</Item>
|
||||||
|
<Item Name="[y]">yp</Item>
|
||||||
|
<Item Name="[z]">zp</Item>
|
||||||
|
</Expand>
|
||||||
|
</Type>
|
||||||
|
|
||||||
|
<Type Name="QVector4D">
|
||||||
|
<DisplayString>{{ x = {xp}, y = {yp}, z = {zp}, w = {wp} }}</DisplayString>
|
||||||
|
<Expand>
|
||||||
|
<Item Name="[x]">xp</Item>
|
||||||
|
<Item Name="[y]">yp</Item>
|
||||||
|
<Item Name="[z]">zp</Item>
|
||||||
|
<Item Name="[w]">wp</Item>
|
||||||
|
</Expand>
|
||||||
|
</Type>
|
||||||
|
|
||||||
|
<Type Name="QMatrix">
|
||||||
|
<DisplayString>
|
||||||
|
{{ m11 = {_m11}, m12 = {_m12}, m21 = {_m21}, m22 = {_m22}, ... }}
|
||||||
|
</DisplayString>
|
||||||
|
<Expand>
|
||||||
|
<Item Name="[m11]">_m11</Item>
|
||||||
|
<Item Name="[m12]">_m12</Item>
|
||||||
|
<Item Name="[m21]">_m21</Item>
|
||||||
|
<Item Name="[m22]">_m22</Item>
|
||||||
|
<Item Name="[dx]">_dx</Item>
|
||||||
|
<Item Name="[dy]">_dy</Item>
|
||||||
|
</Expand>
|
||||||
|
</Type>
|
||||||
|
|
||||||
|
<Type Name="QMatrix4x4">
|
||||||
|
<DisplayString>
|
||||||
|
{{ m11 = {m[0][0]}, m12 = {m[1][0]}, m13 = {m[2][0]}, m14 = {m[3][0]}, ... }}
|
||||||
|
</DisplayString>
|
||||||
|
<Expand>
|
||||||
|
<Item Name="[m11]">m[0][0]</Item>
|
||||||
|
<Item Name="[m12]">m[1][0]</Item>
|
||||||
|
<Item Name="[m13]">m[2][0]</Item>
|
||||||
|
<Item Name="[m14]">m[3][0]</Item>
|
||||||
|
<Item Name="[m21]">m[0][1]</Item>
|
||||||
|
<Item Name="[m22]">m[1][1]</Item>
|
||||||
|
<Item Name="[m23]">m[2][1]</Item>
|
||||||
|
<Item Name="[m24]">m[3][1]</Item>
|
||||||
|
<Item Name="[m31]">m[0][2]</Item>
|
||||||
|
<Item Name="[m32]">m[1][2]</Item>
|
||||||
|
<Item Name="[m33]">m[2][2]</Item>
|
||||||
|
<Item Name="[m34]">m[3][2]</Item>
|
||||||
|
<Item Name="[m41]">m[0][3]</Item>
|
||||||
|
<Item Name="[m42]">m[1][3]</Item>
|
||||||
|
<Item Name="[m43]">m[2][3]</Item>
|
||||||
|
<Item Name="[m44]">m[3][3]</Item>
|
||||||
|
</Expand>
|
||||||
|
</Type>
|
||||||
|
|
||||||
|
<Type Name="QSizePolicy">
|
||||||
|
<DisplayString>
|
||||||
|
{{ horizontal = {static_cast<Policy>(bits.horPolicy)}, vertical = {static_cast<Policy>(bits.verPolicy)}, type = {ControlType(1 << bits.ctype)} }}
|
||||||
|
</DisplayString>
|
||||||
|
<Expand>
|
||||||
|
<Synthetic Name="[vertical policy]">
|
||||||
|
<DisplayString>QSizePolicy::Policy::{static_cast<Policy>(bits.verPolicy)}</DisplayString>
|
||||||
|
</Synthetic>
|
||||||
|
<Synthetic Name="[horizontal policy]">
|
||||||
|
<DisplayString>QSizePolicy::Policy::{static_cast<Policy>(bits.horPolicy)}</DisplayString>
|
||||||
|
</Synthetic>
|
||||||
|
<Synthetic Name="[control type]">
|
||||||
|
<DisplayString>QSizePolicy::ControlType::{ControlType(1 << bits.ctype)}</DisplayString>
|
||||||
|
</Synthetic>
|
||||||
|
<Synthetic Name="[expanding directions]">
|
||||||
|
<DisplayString
|
||||||
|
Condition="(static_cast<Policy>(bits.verPolicy) & ExpandFlag)">
|
||||||
|
Qt::Vertical (2)
|
||||||
|
</DisplayString>
|
||||||
|
<DisplayString
|
||||||
|
Condition="(static_cast<Policy>(bits.horPolicy) & ExpandFlag)">
|
||||||
|
Qt::Horizontal (1)
|
||||||
|
</DisplayString>
|
||||||
|
</Synthetic>
|
||||||
|
<Item Name="[vertical stretch]">static_cast<int>(bits.verStretch)</Item>
|
||||||
|
<Item Name="[horizontal stretch]">static_cast<int>(bits.horStretch)</Item>
|
||||||
|
<Item Name="[has height for width]">bits.hfw == 1</Item>
|
||||||
|
<Item Name="[has width for height]">bits.wfh == 1</Item>
|
||||||
|
</Expand>
|
||||||
|
</Type>
|
||||||
|
|
||||||
|
<Type Name="QChar">
|
||||||
|
<DisplayString>{ucs,c}</DisplayString>
|
||||||
|
<StringView>ucs,c</StringView>
|
||||||
|
<Expand>
|
||||||
|
<Item Name="[latin 1]">ucs > 0xff ? '\0' : char(ucs),c</Item>
|
||||||
|
<Item Name="[unicode]">ucs,c</Item>
|
||||||
|
</Expand>
|
||||||
|
</Type>
|
||||||
|
|
||||||
|
<Type Name="QString">
|
||||||
|
<DisplayString>"{(reinterpret_cast<unsigned short*>(d.ptr)),sub}"</DisplayString>
|
||||||
|
<StringView>(reinterpret_cast<unsigned short*>(d.ptr)),sub</StringView>
|
||||||
|
<Expand>
|
||||||
|
<Item Name="[size]">d.size</Item>
|
||||||
|
<ArrayItems>
|
||||||
|
<Size>d.size</Size>
|
||||||
|
<ValuePointer>d.ptr</ValuePointer>
|
||||||
|
</ArrayItems>
|
||||||
|
</Expand>
|
||||||
|
</Type>
|
||||||
|
|
||||||
|
<Type Name="QStringRef">
|
||||||
|
<DisplayString Condition="m_string == nullptr">{m_string,[m_size]} u""</DisplayString>
|
||||||
|
<DisplayString Condition="m_string != nullptr">{m_string->d.ptr+m_position,[m_size]}</DisplayString>
|
||||||
|
<StringView Condition="m_string == nullptr">""</StringView>
|
||||||
|
<StringView Condition="m_string != nullptr">m_string,[m_position+m_size]</StringView>
|
||||||
|
<Expand>
|
||||||
|
<Item Name="[position]" ExcludeView="simple">m_position</Item>
|
||||||
|
<Item Name="[size]" ExcludeView="simple">m_size</Item>
|
||||||
|
<ArrayItems Condition="m_string != nullptr">
|
||||||
|
<Size>m_size</Size>
|
||||||
|
<ValuePointer>m_string->d.ptr+m_position</ValuePointer>
|
||||||
|
</ArrayItems>
|
||||||
|
</Expand>
|
||||||
|
</Type>
|
||||||
|
|
||||||
|
<Type Name="QStringView">
|
||||||
|
<DisplayString>{m_data,[m_size]}</DisplayString>
|
||||||
|
<StringView>m_data,[m_size]</StringView>
|
||||||
|
<Expand>
|
||||||
|
<Item Name="[size]" ExcludeView="simple">m_size</Item>
|
||||||
|
<ArrayItems>
|
||||||
|
<Size>m_size</Size>
|
||||||
|
<ValuePointer>m_data</ValuePointer>
|
||||||
|
</ArrayItems>
|
||||||
|
</Expand>
|
||||||
|
</Type>
|
||||||
|
|
||||||
|
<Type Name="QByteArray">
|
||||||
|
<DisplayString>"{((reinterpret_cast<char*>(d.ptr))),sb}"</DisplayString>
|
||||||
|
<StringView>((reinterpret_cast<char*>(d.ptr))),sb</StringView>
|
||||||
|
<Expand>
|
||||||
|
<Item Name="[size]">d.size</Item>
|
||||||
|
<ArrayItems>
|
||||||
|
<Size>d.size</Size>
|
||||||
|
<ValuePointer>d.ptr</ValuePointer>
|
||||||
|
</ArrayItems>
|
||||||
|
</Expand>
|
||||||
|
</Type>
|
||||||
|
|
||||||
|
<Type Name="QUrl">
|
||||||
|
<Intrinsic Name="isEmpty" Expression="size==0">
|
||||||
|
<Parameter Name="size" Type="int"/>
|
||||||
|
</Intrinsic>
|
||||||
|
<Intrinsic Name="memberOffset" Expression="sizeof(QAtomicInt) + sizeof(int) + (sizeof(QString) * count)">
|
||||||
|
<Parameter Name="count" Type="int"/>
|
||||||
|
</Intrinsic>
|
||||||
|
<Intrinsic Name="scheme" Expression="*((QString*)(((char*)(d) + memberOffset(0))))" />
|
||||||
|
<Intrinsic Name="username" Expression="*((QString*)(((char*)(d) + memberOffset(1))))" />
|
||||||
|
<Intrinsic Name="password" Expression="*((QString*)(((char*)(d) + memberOffset(2))))" />
|
||||||
|
<Intrinsic Name="host" Expression="*((QString*)(((char*)(d) + memberOffset(3))))" />
|
||||||
|
<Intrinsic Name="path" Expression="*((QString*)(((char*)(d) + memberOffset(4))))" />
|
||||||
|
<Intrinsic Name="query" Expression="*((QString*)(((char*)(d) + memberOffset(5))))" />
|
||||||
|
<Intrinsic Name="fragment" Expression="*((QString*)(((char*)(d) + memberOffset(6))))" />
|
||||||
|
|
||||||
|
<DisplayString Condition="!isEmpty(scheme().d->size)">{scheme()}://{host()}{path()}</DisplayString>
|
||||||
|
<DisplayString Condition="isEmpty(scheme().d->size)">{path()}</DisplayString>
|
||||||
|
<Expand>
|
||||||
|
<Item Name="[scheme]">scheme()</Item>
|
||||||
|
<Item Name="[username]">username()</Item>
|
||||||
|
<Item Name="[password]">password()</Item>
|
||||||
|
<Item Name="[host]">host()</Item>
|
||||||
|
<Item Name="[path]">path()</Item>
|
||||||
|
<Item Name="[query]">query()</Item>
|
||||||
|
<Item Name="[fragment]">fragment()</Item>
|
||||||
|
</Expand>
|
||||||
|
</Type>
|
||||||
|
|
||||||
|
<Type Name="QDate">
|
||||||
|
<DisplayString>{{ julian day = {jd} }}</DisplayString>
|
||||||
|
</Type>
|
||||||
|
|
||||||
|
<Type Name="QTime">
|
||||||
|
<Intrinsic Name="hour" Expression="mds / 3600000" />
|
||||||
|
<Intrinsic Name="minute" Expression="(mds % 3600000) / 60000" />
|
||||||
|
<Intrinsic Name="second" Expression="(mds / 1000) % 60" />
|
||||||
|
<Intrinsic Name="millisecond" Expression="mds % 1000" />
|
||||||
|
<DisplayString Condition="mds == 1">{{ millisecond = {mds} }}</DisplayString>
|
||||||
|
<DisplayString Condition="mds != 1">{{ milliseconds = {mds} }}</DisplayString>
|
||||||
|
<Expand>
|
||||||
|
<Item Name="[hour]"
|
||||||
|
Condition="(mds / 3600000) == 1">hour(), d</Item>
|
||||||
|
<Item Name="[hours]"
|
||||||
|
Condition="(mds / 3600000) != 1">hour(), d</Item>
|
||||||
|
<Item Name="[minute]"
|
||||||
|
Condition="((mds % 3600000) / 60000) == 1">minute(), d</Item>
|
||||||
|
<Item Name="[minutes]"
|
||||||
|
Condition="((mds % 3600000) / 60000) != 1">minute(), d</Item>
|
||||||
|
<Item Name="[second]"
|
||||||
|
Condition="((mds / 1000) % 60) == 1">second(), d</Item>
|
||||||
|
<Item Name="[seconds]"
|
||||||
|
Condition="((mds / 1000) % 60) != 1">second(), d</Item>
|
||||||
|
<Item Name="[millisecond]"
|
||||||
|
Condition="(mds % 1000) == 1">millisecond(), d</Item>
|
||||||
|
<Item Name="[milliseconds]"
|
||||||
|
Condition="(mds % 1000) != 1">millisecond(), d</Item>
|
||||||
|
</Expand>
|
||||||
|
</Type>
|
||||||
|
|
||||||
|
<Type Name="QPair<*,*>">
|
||||||
|
<DisplayString>({first}, {second})</DisplayString>
|
||||||
|
<Expand>
|
||||||
|
<Item Name="[first]">first</Item>
|
||||||
|
<Item Name="[second]">second</Item>
|
||||||
|
</Expand>
|
||||||
|
</Type>
|
||||||
|
|
||||||
|
<Type Name="QList<*>">
|
||||||
|
<AlternativeType Name="QVector<*>"/>
|
||||||
|
<DisplayString>{{ size={d.size} }}</DisplayString>
|
||||||
|
<Expand>
|
||||||
|
<ArrayItems>
|
||||||
|
<Size>d.size</Size>
|
||||||
|
<ValuePointer>reinterpret_cast<$T1*>(d.ptr)</ValuePointer>
|
||||||
|
</ArrayItems>
|
||||||
|
</Expand>
|
||||||
|
</Type>
|
||||||
|
|
||||||
|
<Type Name="QVarLengthArray<*>">
|
||||||
|
<DisplayString>{{ size={s} }}</DisplayString>
|
||||||
|
<Expand>
|
||||||
|
<Item Name="[capacity]">a</Item>
|
||||||
|
<ArrayItems>
|
||||||
|
<Size>s</Size>
|
||||||
|
<ValuePointer>ptr</ValuePointer>
|
||||||
|
</ArrayItems>
|
||||||
|
</Expand>
|
||||||
|
</Type>
|
||||||
|
|
||||||
|
<Type Name="QMap<*,*>">
|
||||||
|
<AlternativeType Name="QMultiMap<*,*>"/>
|
||||||
|
<DisplayString>{{ size={d.d->m._Mypair._Myval2._Myval2._Mysize} }}</DisplayString>
|
||||||
|
<Expand>
|
||||||
|
<Item Name="[std::map]">d.d->m</Item>
|
||||||
|
</Expand>
|
||||||
|
</Type>
|
||||||
|
|
||||||
|
<Type Name="QHash<*,*>">
|
||||||
|
<AlternativeType Name="QMultiHash<*,*>"/>
|
||||||
|
<DisplayString>{{ size = {d->size} }}</DisplayString>
|
||||||
|
<Expand>
|
||||||
|
<Item Name="[referenced]">d->ref.atomic._q_value</Item>
|
||||||
|
</Expand>
|
||||||
|
</Type>
|
||||||
|
|
||||||
|
</AutoVisualizer>
|
|
@ -1,9 +1,9 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<Project>
|
<Project>
|
||||||
<PropertyGroup Label="UserMacros">
|
<PropertyGroup Label="UserMacros">
|
||||||
<QTDIRDefault Condition="'$(Platform)'=='x64'">$(ExternalsDir)Qt\Qt5.15.0\msvc2019_64\</QTDIRDefault>
|
<ExternalsQtDir>$(ExternalsDir)Qt\Qt6.3.0\</ExternalsQtDir>
|
||||||
<QTDIRDefault Condition="'$(Platform)'=='ARM64'">$(ExternalsDir)Qt\Qt5.15.0\msvc2019_arm64\</QTDIRDefault>
|
<QtTargetDirDefault>$(ExternalsQtDir)$(Platform)\</QtTargetDirDefault>
|
||||||
<QTDIR Condition="Exists('$(QTDIRDefault)') And ('$(QTDIR)'=='' Or !Exists('$(QTDIR)'))">$(QTDIRDefault)</QTDIR>
|
<QTDIR Condition="Exists('$(QtTargetDirDefault)') And ('$(QTDIR)'=='' Or !Exists('$(QTDIR)'))">$(QtTargetDirDefault)</QTDIR>
|
||||||
<QTDIR Condition="Exists('$(QTDIR)') And !HasTrailingSlash('$(QTDIR)')">$(QTDIR)\</QTDIR>
|
<QTDIR Condition="Exists('$(QTDIR)') And !HasTrailingSlash('$(QTDIR)')">$(QTDIR)\</QTDIR>
|
||||||
<QtDirValid>false</QtDirValid>
|
<QtDirValid>false</QtDirValid>
|
||||||
<QtDirValid Condition="Exists('$(QTDIR)')">true</QtDirValid>
|
<QtDirValid Condition="Exists('$(QTDIR)')">true</QtDirValid>
|
||||||
|
@ -13,6 +13,7 @@
|
||||||
<QtPluginsDir>$(QTDIR)plugins\</QtPluginsDir>
|
<QtPluginsDir>$(QTDIR)plugins\</QtPluginsDir>
|
||||||
<QtToolOutDir>$(IntDir)</QtToolOutDir>
|
<QtToolOutDir>$(IntDir)</QtToolOutDir>
|
||||||
<QtDebugSuffix>d</QtDebugSuffix>
|
<QtDebugSuffix>d</QtDebugSuffix>
|
||||||
|
<QtHostToolsDir>$(ExternalsQtDir)x64\</QtHostToolsDir>
|
||||||
<QtLibSuffix Condition="'$(Configuration)'=='Debug'">$(QtDebugSuffix)</QtLibSuffix>
|
<QtLibSuffix Condition="'$(Configuration)'=='Debug'">$(QtDebugSuffix)</QtLibSuffix>
|
||||||
<QtPluginFolder>QtPlugins</QtPluginFolder>
|
<QtPluginFolder>QtPlugins</QtPluginFolder>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
@ -25,16 +26,15 @@
|
||||||
<AdditionalIncludeDirectories>$(QtIncludeDir)QtCore;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
<AdditionalIncludeDirectories>$(QtIncludeDir)QtCore;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
<AdditionalIncludeDirectories>$(QtIncludeDir)QtGui;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
<AdditionalIncludeDirectories>$(QtIncludeDir)QtGui;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
<AdditionalIncludeDirectories>$(QtIncludeDir)QtWidgets;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
<AdditionalIncludeDirectories>$(QtIncludeDir)QtWidgets;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
<AdditionalIncludeDirectories Condition="'$(Platform)'=='ARM64'">$(QtIncludeDir)QtANGLE;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
|
||||||
<!--
|
<!--
|
||||||
Ignore warnings in locally-instantiated Qt templates.
|
As of Qt6.3, Qt needs user code deriving from certain Qt types to have RTTI (AS WELL AS MOC, UGH).
|
||||||
This should be removed at some point (when Qt is fixed).
|
Do NOT enable in dolphin outside of Qt-dependant code.
|
||||||
-->
|
-->
|
||||||
<ExternalTemplatesDiagnostics>false</ExternalTemplatesDiagnostics>
|
<RuntimeTypeInfo>true</RuntimeTypeInfo>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<Link>
|
<Link>
|
||||||
<AdditionalLibraryDirectories>$(QtLibDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
<AdditionalLibraryDirectories>$(QtLibDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
<AdditionalDependencies>Qt5Core$(QtLibSuffix).lib;Qt5Gui$(QtLibSuffix).lib;Qt5Widgets$(QtLibSuffix).lib;%(AdditionalDependencies)</AdditionalDependencies>
|
<AdditionalDependencies>Qt6Core$(QtLibSuffix).lib;Qt6Gui$(QtLibSuffix).lib;Qt6Widgets$(QtLibSuffix).lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
<SubSystem>Windows</SubSystem>
|
<SubSystem>Windows</SubSystem>
|
||||||
<!--
|
<!--
|
||||||
<AdditionalOptions>"/manifestdependency:type='Win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\" %(AdditionalOptions)</AdditionalOptions>
|
<AdditionalOptions>"/manifestdependency:type='Win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\" %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
@ -43,8 +43,8 @@
|
||||||
</ItemDefinitionGroup>
|
</ItemDefinitionGroup>
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
Use the moc implementation provided by "Qt VS Tools"
|
Use the moc implementation provided by (somewhat out-of-date version of) "Qt VS Tools"
|
||||||
see: https://code.qt.io/cgit/qt-labs/vstools.git/tree/src/qtmsbuild
|
see: https://code.qt.io/cgit/qt-labs/vstools.git/tree/QtMSBuild
|
||||||
This provides a wrapper around moc which deals with parallel dispatch to moc,
|
This provides a wrapper around moc which deals with parallel dispatch to moc,
|
||||||
as well as creating ClCompile inputs from the moc outputs.
|
as well as creating ClCompile inputs from the moc outputs.
|
||||||
Note that we currently pass the same ClCompile.PreprocessorDefinitions to moc,
|
Note that we currently pass the same ClCompile.PreprocessorDefinitions to moc,
|
||||||
|
@ -54,8 +54,14 @@
|
||||||
<Import Project="qtmoc.props" />
|
<Import Project="qtmoc.props" />
|
||||||
<ItemDefinitionGroup>
|
<ItemDefinitionGroup>
|
||||||
<QtMoc>
|
<QtMoc>
|
||||||
<OutputFile>$(QtToolOutDir)moc_%(Filename).cpp</OutputFile>
|
<!--
|
||||||
<QtMocDir>$(QtToolOutDir)</QtMocDir>
|
moc task does not properly detect outputs are outdated if Qt version changes
|
||||||
|
(possibly causing Q_MOC_OUTPUT_REVISION to change). This *might* be because we
|
||||||
|
don't give moc the include paths, so it doesn't notice the version change.
|
||||||
|
In any case, we can workaround it by manually changing output path when needed
|
||||||
|
to avoid conflicts. (the numeric postfix is the value of Q_MOC_OUTPUT_REVISION)
|
||||||
|
-->
|
||||||
|
<OutputFile>$(QtToolOutDir)moc_68\moc_%(Filename).cpp</OutputFile>
|
||||||
</QtMoc>
|
</QtMoc>
|
||||||
</ItemDefinitionGroup>
|
</ItemDefinitionGroup>
|
||||||
<Import Project="qt_globals.targets"/>
|
<Import Project="qt_globals.targets"/>
|
||||||
|
@ -72,34 +78,32 @@
|
||||||
|
|
||||||
<!--Copy the needed dlls-->
|
<!--Copy the needed dlls-->
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<QtLibNames Include="Qt5Core$(QtLibSuffix);Qt5Gui$(QtLibSuffix);Qt5Widgets$(QtLibSuffix)" />
|
<QtDllNames_ Include="Qt6Core;Qt6Gui;Qt6Widgets" />
|
||||||
|
<QtDllNames Include="@(QtDllNames_ -> '%(Identity)$(QtLibSuffix).dll')" />
|
||||||
<!-- Include ANGLE for ARM64 since there is no native OpenGL -->
|
<QtDllsSrc Include="@(QtDllNames -> '$(QtBinDir)%(Identity)')" />
|
||||||
<QtLibNames Condition="'$(Platform)'=='ARM64'" Include="$(QtLibNames);libEGL$(QtLibSuffix);libGLESv2$(QtLibSuffix)" />
|
<QtDllsDst Include="@(QtDllNames -> '$(BinaryOutputDir)%(Identity)')" />
|
||||||
|
<QtPluginNames_ Include="imageformats\qgif;imageformats\qicns;imageformats\qico;imageformats\qjpeg;
|
||||||
<QtDlls Include="@(QtLibNames -> '$(QtBinDir)%(Identity).dll')" />
|
imageformats\qtga;imageformats\qwbmp;platforms\qdirect2d;platforms\qminimal;platforms\qoffscreen;
|
||||||
<!--Filter plugins to copy based on the observation that all debug versions end in "d"-->
|
platforms\qwindows;styles\qwindowsvistastyle"/>
|
||||||
<QtAllPlugins Include="$(QtPluginsDir)**\*$(QtLibSuffix).dll" />
|
<QtPluginNames Include="@(QtPluginNames_ -> '%(Identity)$(QtLibSuffix).dll')" />
|
||||||
<QtPlugins Condition="'$(Configuration)'=='Debug'" Include="@(QtAllPlugins)" />
|
<QtPluginsSrc Include="@(QtPluginNames -> '$(QtPluginsDir)%(Identity)')" />
|
||||||
<QtPlugins Condition="'$(Configuration)'=='Release'" Exclude="$(QtPluginsDir)**\*$(QtDebugSuffix).dll" Include="@(QtAllPlugins)" />
|
<QtPluginsDst Include="@(QtPluginNames -> '$(BinaryOutputDir)$(QtPluginFolder)\%(Identity)')" />
|
||||||
<QtPluginsDest Include="@(QtPlugins -> '$(BinaryOutputDir)$(QtPluginFolder)\%(RecursiveDir)%(Filename)%(Extension)')" />
|
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<QtConfFile>$(BinaryOutputDir)qt.conf</QtConfFile>
|
<QtConfFile>$(BinaryOutputDir)qt.conf</QtConfFile>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<Target Name="QtCopyBinaries"
|
<Target Name="QtCopyBinaries"
|
||||||
AfterTargets="Build"
|
AfterTargets="Build"
|
||||||
Inputs="@(QtDlls);@(QtPlugins)"
|
Inputs="@(QtDllsSrc);@(QtPluginsSrc)"
|
||||||
Outputs="@(QtDlls -> '$(BinaryOutputDir)%(RecursiveDir)%(Filename)%(Extension)');@(QtPlugins -> '$(BinaryOutputDir)$(QtPluginFolder)\%(RecursiveDir)%(Filename)%(Extension)')">
|
Outputs="@(QtDllsDst);@(QtPluginsDst)">
|
||||||
<Message Text="Copying Qt .dlls" Importance="High" />
|
|
||||||
<Copy
|
<Copy
|
||||||
SourceFiles="@(QtDlls)"
|
SourceFiles="@(QtDllsSrc)"
|
||||||
DestinationFolder="$(BinaryOutputDir)"
|
DestinationFiles="@(QtDllsDst)"
|
||||||
SkipUnchangedFiles="true"
|
SkipUnchangedFiles="true"
|
||||||
/>
|
/>
|
||||||
<Copy
|
<Copy
|
||||||
SourceFiles="@(QtPlugins)"
|
SourceFiles="@(QtPluginsSrc)"
|
||||||
DestinationFiles="@(QtPluginsDest)"
|
DestinationFiles="@(QtPluginsDst)"
|
||||||
SkipUnchangedFiles="true"
|
SkipUnchangedFiles="true"
|
||||||
/>
|
/>
|
||||||
</Target>
|
</Target>
|
||||||
|
|
|
@ -50,7 +50,7 @@
|
||||||
<ExecutionDescription>moc %(Identity)</ExecutionDescription>
|
<ExecutionDescription>moc %(Identity)</ExecutionDescription>
|
||||||
|
|
||||||
<QTDIR Condition="'$(QtVsProjectSettings)' != 'true'"
|
<QTDIR Condition="'$(QtVsProjectSettings)' != 'true'"
|
||||||
>$(QTDIR)</QTDIR>
|
>$(QtHostToolsDir)</QTDIR>
|
||||||
<QTDIR Condition="'$(QtVsProjectSettings)' == 'true'"
|
<QTDIR Condition="'$(QtVsProjectSettings)' == 'true'"
|
||||||
>$(QtInstallDir)</QTDIR>
|
>$(QtInstallDir)</QTDIR>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue