Advertisement
Guest User

pacjenci_window.h

a guest
Jan 9th, 2016
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #ifndef PACJENCI_WINDOW_H
  2. #define PACJENCI_WINDOW_H
  3. #include <QMainWindow>
  4. #include <QTSql>
  5. #include <QDebug>
  6. namespace Ui {
  7. class pacjenci_window;
  8. }
  9.  
  10. class pacjenci_window : public QMainWindow {
  11.     Q_OBJECT
  12.  
  13. public:
  14.     explicit pacjenci_window(QWidget *parent = 0);
  15.     ~pacjenci_window();
  16.  
  17. private slots:
  18.     void on_dodaj_clicked();
  19.  
  20.     void on_aktualizuj_clicked();
  21.  
  22.     void on_usun_clicked();
  23.  
  24.     void on_table_select_activated(const QModelIndex &index);
  25.  
  26. private:
  27.     Ui::pacjenci_window *ui;
  28.     QSqlDatabase db; //database
  29.     QSqlQuery sQuery; //select query
  30.     QSqlQuery uQuery; //update/insert query
  31.     QSqlQuery dQuery; //delete/drop query
  32.     QSqlQueryModel *modelQuery; //tableview model
  33.     //function to fill elements in window from query
  34.     void FillForm();
  35. };
  36.  
  37. #endif // PACJENCI_WINDOW_H
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement