Using QDataWidgetMapper in ItemDetailMapper to work with the model data (current index of the TableView).

This commit is contained in:
2025-12-22 11:21:44 +01:00
parent 8d523bb5bc
commit b3f83ccdb0
6 changed files with 185 additions and 8 deletions

View File

@ -37,6 +37,7 @@ class MainWindow : public QMainWindow {
private slots:
void showStatusMessage(const QString text);
void onCurrentChanged(const QModelIndex& current, const QModelIndex& previous);
void onSelectionChanged(const QItemSelection& selected, const QItemSelection& deselected);
void onAboutClicked();
@ -47,6 +48,7 @@ class MainWindow : public QMainWindow {
/// slots for menu actions
void openNewItemDialog();
void openEditItemDialog();
void deleteCurrentItem();
void deleteSelectedtItems();
void onCleanStateChanged(bool clean);