refs #661, added a label/icon to context order menu as proposed in the meeting

This commit is contained in:
Klaus Basan
2016-05-29 21:44:20 +02:00
parent 2281b2f030
commit 4b8ab847a0
4 changed files with 26 additions and 4 deletions

View File

@@ -69,6 +69,12 @@ namespace BlackGui
return this->m_path.isEmpty() || this->m_path == pathNone();
}
QPixmap CMenuAction::getPixmap() const
{
if (this->m_icon.isNull()) { return QPixmap(); }
return this->m_icon.pixmap(this->m_icon.actualSize(QSize(16, 16)));
}
QString CMenuAction::getLastPathPart() const
{
if (this->m_path.contains('/'))