Skip to content

Commit

Permalink
fixed a Qt 5.5 build problem
Browse files Browse the repository at this point in the history
  • Loading branch information
pbek committed Oct 23, 2016
1 parent 5d66dcd commit 4a7ec56
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/mainwindow.cpp
Expand Up @@ -883,6 +883,7 @@ void MainWindow::updateWorkspaceLists(bool rebuild) {
* Initializes the panel menu
*/
void MainWindow::initPanelMenu() {
// update the panel menu if the visibility of a panel was changed
Q_FOREACH(QDockWidget *dockWidget, findChildren<QDockWidget *>()) {
QObject::connect(dockWidget, SIGNAL(visibilityChanged(bool)),
this, SLOT(updatePanelMenu()));
Expand All @@ -897,8 +898,8 @@ void MainWindow::updatePanelMenu() {
ui->menuPanels->clear();

Q_FOREACH(QDockWidget *dockWidget, findChildren<QDockWidget *>()) {
QAction *action = new QAction(
tr("Show %1 panel").arg(dockWidget->windowTitle()));
QAction *action = new QAction(this);
action->setText(tr("Show %1 panel").arg(dockWidget->windowTitle()));
action->setObjectName("togglePanel-" + dockWidget->objectName());
action->setCheckable(true);
action->setChecked(!dockWidget->isHidden());
Expand Down

0 comments on commit 4a7ec56

Please sign in to comment.