Commit e03ff986 authored by Victor Yacovlev's avatar Victor Yacovlev

UI: Fixed appearance of tab widget in case of no tabs in GTK+ style

parent a3d24814
......@@ -16,5 +16,17 @@ void TabWidget::disableTabs()
tabBar()->setVisible(false);
}
void TabWidget::paintEvent(QPaintEvent * e)
{
QTabWidget::paintEvent(e);
#ifdef Q_WS_X11
if (!tabBar()->isVisible()) {
QPainter painter(this);
painter.setPen(QPen(palette().brush(QPalette::WindowText).color()));
painter.drawLine(0, 0, width(), 0);
}
#endif
}
} // namespace CoreGUI
......@@ -13,7 +13,7 @@ public:
explicit TabWidget(QWidget *parent = 0);
void disableTabs();
protected:
void paintEvent(QPaintEvent *);
};
} // namespace CoreGUI
......
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