Commit 326d057d authored by hjk's avatar hjk

FancyMainWindow: Fix method naming

... and resulting logic error.

Change-Id: Id1d437c6ad3e9531387859b7d449d4b47f86f0e3
Reviewed-by: default avatarEike Ziller <eike.ziller@theqtcompany.com>
parent 1baca8e7
......@@ -221,7 +221,7 @@ public:
bool isClickable() const
{
return m_active || q->q->titleBarsAlwaysVisible();
return m_active || !q->q->autoHideTitleBars();
}
QSize sizeHint() const
......@@ -289,7 +289,7 @@ DockWidget::DockWidget(QWidget *inner, FancyMainWindow *parent)
bool DockWidget::eventFilter(QObject *, QEvent *event)
{
if (event->type() == QEvent::MouseMove && !q->titleBarsAlwaysVisible()) {
if (event->type() == QEvent::MouseMove && q->autoHideTitleBars()) {
QMouseEvent *me = static_cast<QMouseEvent *>(event);
int y = me->pos().y();
int x = me->pos().x();
......@@ -499,7 +499,7 @@ QList<QDockWidget *> FancyMainWindow::dockWidgets() const
return findChildren<QDockWidget *>();
}
bool FancyMainWindow::titleBarsAlwaysVisible() const
bool FancyMainWindow::autoHideTitleBars() const
{
return d->m_autoHideTitleBars.isChecked();
}
......
......@@ -72,7 +72,7 @@ public:
QDockWidget *toolBarDockWidget() const;
void setToolBarDockWidget(QDockWidget *dock);
bool titleBarsAlwaysVisible() const;
bool autoHideTitleBars() const;
signals:
// Emitted by resetLayoutAction(). Connect to a slot
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment