1 #ifndef AIRPORTWIDGET_H 
    2 #define AIRPORTWIDGET_H 
    5 #include <QSqlTableModel> 
   21     void on_searchLineEdit_textChanged(
const QString &arg1);
 
   23     void on_searchComboBox_currentIndexChanged(
int index);
 
   25     void on_newAirportPushButton_clicked();
 
   28     Ui::AirportWidget *ui;
 
   29     QSqlTableModel *model;
 
   32     void setupModelAndeView();
 
   35     inline const static QString TABLE_NAME = QStringLiteral(
"airports");
 
   36     inline const static QHash<int, QString> FILTER_MAP = {
 
   37         {0, QStringLiteral(
"icao LIKE \"%")},
 
   38         {1, QStringLiteral(
"iata LIKE \"%")},
 
   39         {2, QStringLiteral(
"name LIKE \"%")},
 
   40         {3, QStringLiteral(
"country LIKE \"%")},
 
   42     inline const static QHash<int, QString> HEADER_MAP = {
 
   43         {0, QStringLiteral(
"ICAO")},
 
   44         {1, QStringLiteral(
"IATA")},
 
   45         {2, QStringLiteral(
"Name")},
 
   46         {3, QStringLiteral(
"Country")},