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:
parent
6c4ded2034
commit
3ce9b1b872
2 changed files with 12 additions and 0 deletions
|
@ -111,6 +111,16 @@ void Window::requestActivateWindow()
|
|||
#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)
|
||||
{
|
||||
const QRect oldGeometry = geometry();
|
||||
|
|
|
@ -36,6 +36,8 @@ public:
|
|||
WId winId() const override;
|
||||
qreal devicePixelRatio() const override;
|
||||
void requestActivateWindow() override;
|
||||
void raise() override;
|
||||
void lower() override;
|
||||
|
||||
InternalWindow *internalWindow() const;
|
||||
Swapchain *swapchain(const std::shared_ptr<EglContext> &context, const QHash<uint32_t, QList<uint64_t>> &formats);
|
||||
|
|
Loading…
Reference in a new issue