Add QWindowsApplication::setHasBorderInFullScreenDefault() native interface
Allows setting a default for whether the window should have WS_BORDER when in the full screen window state. Task-number: QTBUG-104511 Change-Id: Icbda2faf775bf1973a58f7308637c780d3c4bcd4 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
This commit is contained in:
parent
5462485a59
commit
af4f7fe471
@ -364,6 +364,8 @@ struct Q_GUI_EXPORT QWindowsApplication
|
||||
virtual WindowActivationBehavior windowActivationBehavior() const = 0;
|
||||
virtual void setWindowActivationBehavior(WindowActivationBehavior behavior) = 0;
|
||||
|
||||
virtual void setHasBorderInFullScreenDefault(bool border) = 0;
|
||||
|
||||
virtual bool isTabletMode() const = 0;
|
||||
|
||||
virtual bool isWinTabEnabled() const = 0;
|
||||
|
@ -7,6 +7,7 @@
|
||||
#include "qwindowsmime.h"
|
||||
#include "qwin10helpers.h"
|
||||
#include "qwindowsopengltester.h"
|
||||
#include "qwindowswindow.h"
|
||||
|
||||
#include <QtCore/QVariant>
|
||||
|
||||
@ -36,6 +37,11 @@ void QWindowsApplication::setWindowActivationBehavior(WindowActivationBehavior b
|
||||
m_windowActivationBehavior = behavior;
|
||||
}
|
||||
|
||||
void QWindowsApplication::setHasBorderInFullScreenDefault(bool border)
|
||||
{
|
||||
QWindowsWindow::setHasBorderInFullScreenDefault(border);
|
||||
}
|
||||
|
||||
bool QWindowsApplication::isTabletMode() const
|
||||
{
|
||||
#if QT_CONFIG(clipboard)
|
||||
|
@ -17,6 +17,8 @@ public:
|
||||
WindowActivationBehavior windowActivationBehavior() const override;
|
||||
void setWindowActivationBehavior(WindowActivationBehavior behavior) override;
|
||||
|
||||
void setHasBorderInFullScreenDefault(bool border) override;
|
||||
|
||||
bool isTabletMode() const override;
|
||||
|
||||
bool isWinTabEnabled() const override;
|
||||
|
Loading…
x
Reference in New Issue
Block a user