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

@ -68,3 +68,14 @@ void CrudTab::on_actionRemove_rows_triggered()
m_crudModel->removeRow(ui->tableView->currentIndex().row());
//removeRows();
}
std::vector<QAction*> CrudTab::getToolbarActions()
{
if (actions.empty()) {
QAction *action = new QAction(QIcon(":/icons/script_go.png"), tr("Refresh"), this);
action->setShortcut(QKeySequence(Qt::Key_F5));
connect(action, &QAction::triggered, this, &CrudTab::refresh);
actions.push_back(action);
}
return actions;
}