18 #ifndef LOGBOOKWIDGET_H
19 #define LOGBOOKWIDGET_H
22 #include <QItemSelection>
23 #include <QSqlTableModel>
24 #include <QMessageBox>
28 #include "src/gui/widgets/settingswidget.h"
29 #include "src/database/dbcompletiondata.h"
56 void flightsTableView_selectionChanged();
57 void on_tableView_customContextMenuRequested(
const QPoint &pos);
58 void on_actionDelete_Flight_triggered();
60 void on_tableView_doubleClicked();
61 void on_flightSearchLlineEdit_textChanged(
const QString &arg1);
62 void on_flightSearchComboBox_currentIndexChanged(
int);
64 void on_viewsComboBox_currentIndexChanged(
int index);
66 void on_actionEdit_Flight_triggered();
67 void on_actionEdit_Sim_triggered();
75 Ui::LogbookWidget *ui;
79 QSqlTableModel* displayModel;
81 QItemSelectionModel* selectionModel;
85 QList<int> selectedEntries;
87 void setupModelAndView(
int view_id);
88 void connectSignalsAndSlots();
101 inline bool isFlight(
int model_row_id) {
return model_row_id > 0; }
Provides data for QCompleters and QHashs.
Definition: dbcompletiondata.h:48
A Row representing a Flight entry. See Row class for details.
Definition: row.h:133