Skip to content

Commit

Permalink
QWidget::setShown() is obsolete in Qt4. Replace it with setVisible().
Browse files Browse the repository at this point in the history
This change is Qt4/Qt5 neutral.
  • Loading branch information
f3nix authored and wwmayer committed Dec 22, 2015
1 parent f7b8135 commit 4d85f0e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Gui/CommandWindow.cpp
Expand Up @@ -375,7 +375,7 @@ Action * StdCmdStatusBar::createAction(void)

void StdCmdStatusBar::activated(int iMsg)
{
getMainWindow()->statusBar()->setShown(iMsg != 0);
getMainWindow()->statusBar()->setVisible(iMsg != 0);
}

bool StdCmdStatusBar::isActive()
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/Image/Gui/ImageView.cpp
Expand Up @@ -123,7 +123,7 @@ void ImageView::enableStatusBar(bool Enable)
// Enable or disable the toolbar
void ImageView::enableToolBar(bool Enable)
{
_pStdToolBar->setShown(Enable);
_pStdToolBar->setVisible(Enable);
}

// Enable or disable the mouse events
Expand Down

0 comments on commit 4d85f0e

Please sign in to comment.