| 74 | } |
| 75 | |
| 76 | QAction* createAction(const QString& name, const QString& iconName, QWidget* parent, bool isDefault) |
| 77 | { |
| 78 | auto* action = new QAction(QIcon::fromTheme(iconName), name, parent); |
| 79 | if (isDefault) { |
| 80 | QFont font = action->font(); |
| 81 | font.setBold(true); |
| 82 | action->setFont(font); |
| 83 | } |
| 84 | return action; |
| 85 | } |
| 86 | } // unnamed namespace |
| 87 | |
| 88 | using OpenWithUtils::FileOpener; |
no outgoing calls
no test coverage detected