Blame view

editdialog.h 537 Bytes
Imanol-Mikel Barba Sabariego authored
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#ifndef EDITDIALOG_H
#define EDITDIALOG_H

#include <QDialog>
#include <QSqlQueryModel>

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