api: remove QWindow::visible()
The correct api is QWindow::isVisible(). Removing the api is safe since QWindow is not even released yet. Only qtdeclarative needed to be fixed with 71c8fe296fe5aa7e79033dd8f5b539852d4276e0. Change-Id: Ie571ed4802fe89132419e402acdb854446f4578f Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
This commit is contained in:
parent
21102a71ff
commit
10c88faf79
@ -264,15 +264,6 @@ void QWindow::setVisible(bool visible)
|
||||
}
|
||||
}
|
||||
|
||||
/*!
|
||||
Returns true if the window is set to visible.
|
||||
\obsolete
|
||||
*/
|
||||
bool QWindow::visible() const
|
||||
{
|
||||
return isVisible();
|
||||
}
|
||||
|
||||
bool QWindow::isVisible() const
|
||||
{
|
||||
Q_D(const QWindow);
|
||||
|
@ -102,8 +102,6 @@ public:
|
||||
void setSurfaceType(SurfaceType surfaceType);
|
||||
SurfaceType surfaceType() const;
|
||||
|
||||
QT_DEPRECATED bool visible() const;
|
||||
|
||||
bool isVisible() const;
|
||||
|
||||
void create();
|
||||
|
@ -87,7 +87,7 @@ QDirectFbWindow::QDirectFbWindow(QWindow *tlw, QDirectFbInput *inputhandler)
|
||||
|
||||
m_dfbWindow->SetOpacity(m_dfbWindow.data(), 0xff);
|
||||
|
||||
setVisible(window()->visible());
|
||||
setVisible(window()->isVisible());
|
||||
|
||||
m_inputHandler->addWindow(m_dfbWindow.data(), tlw);
|
||||
}
|
||||
@ -103,7 +103,7 @@ void QDirectFbWindow::setGeometry(const QRect &rect)
|
||||
// bool isMoveOnly = (rect.topLeft() != geometry().topLeft()) && (rect.size() == geometry().size());
|
||||
|
||||
QPlatformWindow::setGeometry(rect);
|
||||
if (window()->visible()) {
|
||||
if (window()->isVisible()) {
|
||||
m_dfbWindow->SetBounds(m_dfbWindow.data(), rect.x(),rect.y(),
|
||||
rect.width(), rect.height());
|
||||
// ### TODO port, verify if this is needed
|
||||
|
Loading…
Reference in New Issue
Block a user