forked from suyu/suyu
qt_common: Remove yuzu prefix
This commit is contained in:
parent
35e7f36a39
commit
a71498d163
4 changed files with 7 additions and 7 deletions
|
@ -241,7 +241,7 @@ public:
|
||||||
explicit RenderWidget(GRenderWindow* parent) : QWidget(parent), render_window(parent) {
|
explicit RenderWidget(GRenderWindow* parent) : QWidget(parent), render_window(parent) {
|
||||||
setAttribute(Qt::WA_NativeWindow);
|
setAttribute(Qt::WA_NativeWindow);
|
||||||
setAttribute(Qt::WA_PaintOnScreen);
|
setAttribute(Qt::WA_PaintOnScreen);
|
||||||
if (YuzuQtCommon::GetWindowSystemType() == Core::Frontend::WindowSystemType::Wayland) {
|
if (QtCommon::GetWindowSystemType() == Core::Frontend::WindowSystemType::Wayland) {
|
||||||
setAttribute(Qt::WA_DontCreateNativeAncestors);
|
setAttribute(Qt::WA_DontCreateNativeAncestors);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -884,7 +884,7 @@ bool GRenderWindow::InitRenderTarget() {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Update the Window System information with the new render target
|
// Update the Window System information with the new render target
|
||||||
window_info = YuzuQtCommon::GetWindowSystemInfo(child_widget->windowHandle());
|
window_info = QtCommon::GetWindowSystemInfo(child_widget->windowHandle());
|
||||||
|
|
||||||
child_widget->resize(Layout::ScreenUndocked::Width, Layout::ScreenUndocked::Height);
|
child_widget->resize(Layout::ScreenUndocked::Width, Layout::ScreenUndocked::Height);
|
||||||
layout()->addWidget(child_widget);
|
layout()->addWidget(child_widget);
|
||||||
|
|
|
@ -507,7 +507,7 @@ void ConfigureGraphics::RetrieveVulkanDevices() try {
|
||||||
using namespace Vulkan;
|
using namespace Vulkan;
|
||||||
|
|
||||||
auto* window = this->window()->windowHandle();
|
auto* window = this->window()->windowHandle();
|
||||||
auto wsi = YuzuQtCommon::GetWindowSystemInfo(window);
|
auto wsi = QtCommon::GetWindowSystemInfo(window);
|
||||||
|
|
||||||
vk::InstanceDispatch dld;
|
vk::InstanceDispatch dld;
|
||||||
const Common::DynamicLibrary library = OpenLibrary();
|
const Common::DynamicLibrary library = OpenLibrary();
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
#include <qpa/qplatformnativeinterface.h>
|
#include <qpa/qplatformnativeinterface.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
namespace YuzuQtCommon {
|
namespace QtCommon {
|
||||||
Core::Frontend::WindowSystemType GetWindowSystemType() {
|
Core::Frontend::WindowSystemType GetWindowSystemType() {
|
||||||
// Determine WSI type based on Qt platform.
|
// Determine WSI type based on Qt platform.
|
||||||
QString platform_name = QGuiApplication::platformName();
|
QString platform_name = QGuiApplication::platformName();
|
||||||
|
@ -52,4 +52,4 @@ Core::Frontend::EmuWindow::WindowSystemInfo GetWindowSystemInfo(QWindow* window)
|
||||||
|
|
||||||
return wsi;
|
return wsi;
|
||||||
}
|
}
|
||||||
} // namespace YuzuQtCommon
|
} // namespace QtCommon
|
||||||
|
|
|
@ -6,10 +6,10 @@
|
||||||
#include <QWindow>
|
#include <QWindow>
|
||||||
#include "core/frontend/emu_window.h"
|
#include "core/frontend/emu_window.h"
|
||||||
|
|
||||||
namespace YuzuQtCommon {
|
namespace QtCommon {
|
||||||
|
|
||||||
Core::Frontend::WindowSystemType GetWindowSystemType();
|
Core::Frontend::WindowSystemType GetWindowSystemType();
|
||||||
|
|
||||||
Core::Frontend::EmuWindow::WindowSystemInfo GetWindowSystemInfo(QWindow* window);
|
Core::Frontend::EmuWindow::WindowSystemInfo GetWindowSystemInfo(QWindow* window);
|
||||||
|
|
||||||
} // namespace YuzuQtCommon
|
} // namespace QtCommon
|
||||||
|
|
Loading…
Reference in a new issue