#ifndef EDITDIALOG_H #define EDITDIALOG_H #include #include namespace Ui { class EditDialog; } class EditDialog : public QDialog { Q_OBJECT public slots: void edit(); public: explicit EditDialog(QWidget *parent = 0); ~EditDialog(); private: Ui::EditDialog *ui; QWidget *parent; QSqlQueryModel tableViewModel; QString previousAssignatura; void showValues(); void populateAssignatures(QString selected); signals: void requestClose(); }; #endif // EDITDIALOG_H