mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 06:35:52 +08:00
Ref T77, tooltip for models (HTML Summary)
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user