Crud page has now reload action.
F5 key is bound to the execute query, reload catalog and reload crud actions. By using addAction to add these actions to the relevant pages the ambiguity of the shortcut is resolved.
This commit is contained in:
parent
4278fe6ff4
commit
1a208a6a2d
4 changed files with 71 additions and 51 deletions
|
|
@ -31,29 +31,13 @@ private:
|
|||
std::optional<PgClass> m_table;
|
||||
|
||||
CrudModel *m_crudModel = nullptr;
|
||||
QAction *m_refreshAction = nullptr;
|
||||
|
||||
void initActions();
|
||||
|
||||
// virtual QList<QAction *> actions() override;
|
||||
|
||||
private slots:
|
||||
void on_actionRemove_rows_triggered();
|
||||
void headerCustomContextMenu(const QPoint &pos);
|
||||
};
|
||||
|
||||
//class CrudPageModule: public PluginModule {
|
||||
// Q_OBJECT
|
||||
//public:
|
||||
// using PluginModule::PluginModule;
|
||||
|
||||
// void init();
|
||||
//private slots:
|
||||
|
||||
//private:
|
||||
|
||||
// void moduleAction_open(IPluginContentWidgetContext* context, const ModuleActionParameters ¶ms);
|
||||
//};
|
||||
|
||||
|
||||
#endif // CRUDTAB_H
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue