Icons on action supplied by the PlgPages.

This commit is contained in:
eelke 2018-05-20 13:42:30 +02:00
parent 3d516e6006
commit 4dd526f32a
3 changed files with 16 additions and 1 deletions

View file

@ -607,7 +607,8 @@ void QueryTab::focusEditor()
std::vector<QAction*> QueryTab::getToolbarActions()
{
if (actions.empty()) {
QAction *action = new QAction(tr("Execute"), this);
QAction *action = new QAction(QIcon(":/icons/script_go.png"), tr("Execute"), this);
action->setShortcut(QKeySequence(Qt::Key_F5));
connect(action, &QAction::triggered, this, &QueryTab::execute);
actions.push_back(action);
}