Remove QCocoaWindow::setContentBorderThickness
Its only client was QMainWindow, but that use was removed inbb103b8b47db6aand replaced with a call to setContentBorderEnabled. This effectively reverts0caaf9966a. Pick-to: 6.5 Change-Id: Iaba4d5fd9256632b4a3b935e3fb30d7f5c39851e Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io> Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
parent
2af494c930
commit
19fc78e967
|
|
@ -53,9 +53,6 @@ private:
|
|||
// deregisters.
|
||||
static void registerTouchWindow(QWindow *window, bool enable);
|
||||
|
||||
// Set the size of the unified title and toolbar area.
|
||||
static void setContentBorderThickness(QWindow *window, int topThickness, int bottomThickness);
|
||||
|
||||
// Set the size for a unified toolbar content border area.
|
||||
// Multiple callers can register areas and the platform plugin
|
||||
// will extend the "unified" area to cover them.
|
||||
|
|
|
|||
|
|
@ -65,8 +65,6 @@ QPlatformNativeInterface::NativeResourceForIntegrationFunction QCocoaNativeInter
|
|||
return NativeResourceForIntegrationFunction(QCocoaNativeInterface::registerTouchWindow);
|
||||
if (resource.toLower() == "setembeddedinforeignview")
|
||||
return NativeResourceForIntegrationFunction(QCocoaNativeInterface::setEmbeddedInForeignView);
|
||||
if (resource.toLower() == "setcontentborderthickness")
|
||||
return NativeResourceForIntegrationFunction(QCocoaNativeInterface::setContentBorderThickness);
|
||||
if (resource.toLower() == "registercontentborderarea")
|
||||
return NativeResourceForIntegrationFunction(QCocoaNativeInterface::registerContentBorderArea);
|
||||
if (resource.toLower() == "setcontentborderareaenabled")
|
||||
|
|
@ -139,16 +137,6 @@ void QCocoaNativeInterface::registerTouchWindow(QWindow *window, bool enable)
|
|||
cocoaWindow->registerTouch(enable);
|
||||
}
|
||||
|
||||
void QCocoaNativeInterface::setContentBorderThickness(QWindow *window, int topThickness, int bottomThickness)
|
||||
{
|
||||
if (!window)
|
||||
return;
|
||||
|
||||
QCocoaWindow *cocoaWindow = static_cast<QCocoaWindow *>(window->handle());
|
||||
if (cocoaWindow)
|
||||
cocoaWindow->setContentBorderThickness(topThickness, bottomThickness);
|
||||
}
|
||||
|
||||
void QCocoaNativeInterface::registerContentBorderArea(QWindow *window, quintptr identifier, int upper, int lower)
|
||||
{
|
||||
if (!window)
|
||||
|
|
|
|||
|
|
@ -158,7 +158,7 @@ public:
|
|||
void setWindowCursor(NSCursor *cursor);
|
||||
|
||||
void registerTouch(bool enable);
|
||||
void setContentBorderThickness(int topThickness, int bottomThickness);
|
||||
|
||||
void registerContentBorderArea(quintptr identifier, int upper, int lower);
|
||||
void setContentBorderAreaEnabled(quintptr identifier, bool enable);
|
||||
void setContentBorderEnabled(bool enable) override;
|
||||
|
|
|
|||
|
|
@ -1832,16 +1832,6 @@ void QCocoaWindow::registerTouch(bool enable)
|
|||
m_view.allowedTouchTypes &= ~NSTouchTypeMaskIndirect;
|
||||
}
|
||||
|
||||
void QCocoaWindow::setContentBorderThickness(int topThickness, int bottomThickness)
|
||||
{
|
||||
m_topContentBorderThickness = topThickness;
|
||||
m_bottomContentBorderThickness = bottomThickness;
|
||||
bool enable = (topThickness > 0 || bottomThickness > 0);
|
||||
m_drawContentBorderGradient = enable;
|
||||
|
||||
applyContentBorderThickness();
|
||||
}
|
||||
|
||||
void QCocoaWindow::registerContentBorderArea(quintptr identifier, int upper, int lower)
|
||||
{
|
||||
m_contentBorderAreas.insert(identifier, BorderRange(identifier, upper, lower));
|
||||
|
|
|
|||
Loading…
Reference in New Issue