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:
marian 2008-08-07 15:25:40 +00:00
parent 2579f97fac
commit 9cf7cff07a
1 changed files with 2 additions and 2 deletions

View File

@ -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());
}