18 #ifndef PILOTSWIDGET_H
19 #define PILOTSWIDGET_H
22 #include <QItemSelection>
23 #include <QSqlTableModel>
26 #include "src/classes/asettings.h"
27 #include "src/classes/pilot.h"
28 #include "src/gui/dialogues/newpilotdialog.h"
43 void tableView_selectionChanged();
44 void tableView_headerClicked(
int);
45 void on_newPilotButton_clicked();
46 void on_deletePilotButton_clicked();
47 void onDeleteUnsuccessful();
48 void pilot_editing_finished();
49 void on_pilotSearchLineEdit_textChanged(
const QString &arg1);
52 void onDisplayModel_dataBaseUpdated();
57 QSqlTableModel *model;
61 QItemSelectionModel* selectionModel;
65 QVector<qint32> selectedPilots;
67 void setupModelAndView();
70 #endif // PILOTSWIDGET_H