EntryPushButton: Set term icon for terminal cmds w/o icon
Αυτή η υποβολή περιλαμβάνεται σε:
γονέας
59ff382856
υποβολή
2b1fb5b0c2
@ -23,7 +23,15 @@ EntryPushButton::EntryPushButton(const EntryConfig &config) : QPushButton()
|
|||||||
{
|
{
|
||||||
this->setText(config.name);
|
this->setText(config.name);
|
||||||
this->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
|
this->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
|
||||||
QIcon icon = resolveIcon(config.iconPath);
|
QIcon icon;
|
||||||
|
if(config.isTerminalCommand && config.iconPath.isEmpty())
|
||||||
|
{
|
||||||
|
icon = resolveIcon("utilities-terminal");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
icon = resolveIcon(config.iconPath);
|
||||||
|
}
|
||||||
this->setIcon(icon);
|
this->setIcon(icon);
|
||||||
if(!icon.availableSizes().isEmpty())
|
if(!icon.availableSizes().isEmpty())
|
||||||
{
|
{
|
||||||
|
Φόρτωση…
Αναφορά σε νέο ζήτημα
Block a user