Check if a table is a custom one when showing/hiding its horizontal header.
git-svn-id: http://voip.null.ro/svn/yate@2150 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
parent
2579f97fac
commit
9cf7cff07a
|
@ -1281,8 +1281,8 @@ bool QtWindow::eventFilter(QObject* obj, QEvent* event)
|
|||
bool ok = false;
|
||||
if (prop == s_propHHeader) {
|
||||
// Show/hide the horizontal header
|
||||
ok = (w.type() == QtWidget::Table && var.type() == QVariant::Bool &&
|
||||
w.table()->horizontalHeader());
|
||||
ok = ((w.type() == QtWidget::Table || w.type() == QtWidget::CustomTable) &&
|
||||
var.type() == QVariant::Bool && w.table()->horizontalHeader());
|
||||
if (ok)
|
||||
w.table()->horizontalHeader()->setVisible(var.toBool());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue