Menu to for going to specific column
Columns are sorted alphabetically.
This commit is contained in:
parent
a7d4a5f13d
commit
c20427e10d
2 changed files with 52 additions and 7 deletions
|
|
@ -14,6 +14,7 @@ namespace Ui {
|
|||
|
||||
class OpenDatabase;
|
||||
class CrudModel;
|
||||
class QMenu;
|
||||
|
||||
class CrudTab : public QWidget {
|
||||
Q_OBJECT
|
||||
|
|
@ -34,11 +35,15 @@ private:
|
|||
CrudModel *m_crudModel = nullptr;
|
||||
QSortFilterProxyModel *m_SortFilterProxy = nullptr;
|
||||
|
||||
QMenu *headerContextMenu = nullptr;
|
||||
|
||||
void initActions();
|
||||
void buildHeaderContextMenu();
|
||||
|
||||
private slots:
|
||||
void on_actionRemove_rows_triggered();
|
||||
void headerCustomContextMenu(const QPoint &pos);
|
||||
void gotoColumn(QString column);
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue