plugins/qpa: Suppress warnings about raise()/lower() not being implemented

We write window code with an assumption that the compositor will do the
right thing when a window is shown or hidden or activated, so our qpa can
leave stub implementations for raise() and lower() to suppress the
warnings produced by the stack manipulation functions in Qt.
This commit is contained in:
Vlad Zahorodnii 2024-08-28 17:31:55 +03:00
parent 6c4ded2034
commit 3ce9b1b872
2 changed files with 12 additions and 0 deletions

View file

@ -111,6 +111,16 @@ void Window::requestActivateWindow()
#endif #endif
} }
void Window::raise()
{
// Left blank intentionally to suppress warnings in QPlatformWindow::raise().
}
void Window::lower()
{
// Left blank intentionally to suppress warnings in QPlatformWindow::lower().
}
void Window::setGeometry(const QRect &rect) void Window::setGeometry(const QRect &rect)
{ {
const QRect oldGeometry = geometry(); const QRect oldGeometry = geometry();

View file

@ -36,6 +36,8 @@ public:
WId winId() const override; WId winId() const override;
qreal devicePixelRatio() const override; qreal devicePixelRatio() const override;
void requestActivateWindow() override; void requestActivateWindow() override;
void raise() override;
void lower() override;
InternalWindow *internalWindow() const; InternalWindow *internalWindow() const;
Swapchain *swapchain(const std::shared_ptr<EglContext> &context, const QHash<uint32_t, QList<uint64_t>> &formats); Swapchain *swapchain(const std::shared_ptr<EglContext> &context, const QHash<uint32_t, QList<uint64_t>> &formats);