Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef PACJENCI_WINDOW_H
- #define PACJENCI_WINDOW_H
- #include <QMainWindow>
- #include <QTSql>
- #include <QDebug>
- namespace Ui {
- class pacjenci_window;
- }
- class pacjenci_window : public QMainWindow {
- Q_OBJECT
- public:
- explicit pacjenci_window(QWidget *parent = 0);
- ~pacjenci_window();
- private slots:
- void on_dodaj_clicked();
- void on_aktualizuj_clicked();
- void on_usun_clicked();
- void on_table_select_activated(const QModelIndex &index);
- private:
- Ui::pacjenci_window *ui;
- QSqlDatabase db; //database
- QSqlQuery sQuery; //select query
- QSqlQuery uQuery; //update/insert query
- QSqlQuery dQuery; //delete/drop query
- QSqlQueryModel *modelQuery; //tableview model
- //function to fill elements in window from query
- void FillForm();
- };
- #endif // PACJENCI_WINDOW_H
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement