Ref T77, tooltip for models (HTML Summary)

This commit is contained in:
Klaus Basan
2017-05-08 02:57:34 +02:00
parent afbb87298f
commit a4100d7efa
6 changed files with 63 additions and 21 deletions

View File

@@ -33,6 +33,16 @@ namespace BlackMisc
this->setDbKey(id);
}
const QString CDistributor::getIdAndDescription() const
{
if (!this->getDbKey().isEmpty() && !this->getDescription().isEmpty())
{
return this->getDbKey() + " " + this->getDescription();
}
if (!this->getDbKey().isEmpty()) { return this->getDbKey(); }
return "";
}
bool CDistributor::matchesKeyOrAlias(const QString &keyOrAlias) const
{
QString s(keyOrAlias.trimmed().toUpper());