Add recordpanel beside datagrid
This commit is contained in:
parent
d178d5191c
commit
04ce099adf
12 changed files with 538 additions and 8 deletions
|
|
@ -5,9 +5,12 @@
|
|||
|
||||
class QAbstractItemModel;
|
||||
class QAction;
|
||||
class QModelIndex;
|
||||
class QSortFilterProxyModel;
|
||||
class QSplitter;
|
||||
class QTableView;
|
||||
class QToolBar;
|
||||
class RecordPanel;
|
||||
|
||||
/** Sortable and editable grid shared by the CRUD tab and the query result tab.
|
||||
*/
|
||||
|
|
@ -26,6 +29,7 @@ private slots:
|
|||
void onPendingChangesChanged(bool hasChanges);
|
||||
void onSave();
|
||||
void onRevert();
|
||||
void onCurrentRowChanged(const QModelIndex ¤t);
|
||||
|
||||
private:
|
||||
/// Closes an open cell editor so its value is written to the model before saving or reverting
|
||||
|
|
@ -33,10 +37,14 @@ private:
|
|||
|
||||
QTableView *m_view = nullptr;
|
||||
QSortFilterProxyModel *m_proxy = nullptr;
|
||||
QSplitter *m_splitter = nullptr;
|
||||
RecordPanel *m_recordPanel = nullptr;
|
||||
QToolBar *m_toolbar = nullptr;
|
||||
QAction *m_actSave = nullptr;
|
||||
QAction *m_actRevert = nullptr;
|
||||
QAction *m_actRecord = nullptr;
|
||||
QMetaObject::Connection m_pendingChangesConnection;
|
||||
QMetaObject::Connection m_currentRowConnection;
|
||||
};
|
||||
|
||||
#endif // DATAGRIDWIDGET_H
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue