refs #239, empty method for views

This commit is contained in:
Klaus Basan
2014-05-14 23:26:35 +02:00
parent 6d67874dff
commit e2815cbdc3

View File

@@ -75,6 +75,13 @@ namespace BlackGui
Q_ASSERT(this->m_model);
return this->m_model->rowCount();
}
//! Any data?
bool isEmpty() const
{
Q_ASSERT(this->m_model);
return this->m_model->rowCount() < 1;
}
};
}
#endif // guard