Commit 7dca5649 authored by Artyom Kirnev's avatar Artyom Kirnev
Browse files

lowered "refresh" action to make more frequent actions closer to mouse on...

lowered "refresh" action to make more frequent actions closer to mouse on right click (so it would be more convenient to use them)
parent 657c9946
Pipeline #105695 passed with stage
in 3 minutes and 15 seconds
......@@ -263,9 +263,6 @@ void SchemaWidget::slotItemExpanded(QTreeWidgetItem *item)
void SchemaWidget::slotCustomContextMenuRequested(const QPoint &pos)
{
QMenu menu;
menu.addAction(QIcon::fromTheme(QStringLiteral("view-refresh")), i18nc("@action:inmenu Context menu", "Refresh"), this, &SchemaWidget::refresh);
QTreeWidgetItem *item = itemAt(pos);
if (item) {
......@@ -275,15 +272,16 @@ void SchemaWidget::slotCustomContextMenuRequested(const QPoint &pos)
i18nc("@action:inmenu Context menu", "Select Data"),
this,
&SchemaWidget::executeSelect);
menu.addSeparator();
QMenu *submenu = menu.addMenu(QIcon::fromTheme(QStringLiteral("tools-wizard")), i18nc("@action:inmenu Submenu title", "Generate"));
submenu->addAction(i18n("SELECT"), this, &SchemaWidget::generateSelectIntoView);
submenu->addAction(i18n("UPDATE"), this, &SchemaWidget::generateUpdateIntoView);
submenu->addAction(i18n("INSERT"), this, &SchemaWidget::generateInsertIntoView);
submenu->addAction(i18n("DELETE"), this, &SchemaWidget::generateDeleteIntoView);
menu.addSeparator();
}
}
menu.addAction(QIcon::fromTheme(QStringLiteral("view-refresh")), i18nc("@action:inmenu Context menu", "Refresh"), this, &SchemaWidget::refresh);
menu.exec(QCursor::pos());
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment