Book Shelf
Loading...
Searching...
No Matches
mainwindow.h
Go to the documentation of this file.
1
10#ifndef MAINWINDOW_H
11#define MAINWINDOW_H
12
13
14class BookProxyModel;
15class BookTableModel;
16class BookView;
17class QLineEdit;
18class QPushButton;
19class QTableView;
20
21#include <QMainWindow>
22
23
28class MainWindow : public QMainWindow
29{
30 Q_OBJECT
31
32public:
38 MainWindow(QWidget *parent = nullptr);
39
45
46private:
51 void setupUI();
52
53private slots:
58 void addBook();
59
64 void exportBooks();
65
70 void clearFilter();
71
72private:
73 BookTableModel *bookTableModel;
74 BookProxyModel *bookProxyModel;
75 QTableView *bookTableView;
76 QAction *actionAddBook;
77 QAction *actionExportBooks;
78 QAction *actionClose;
79 QLineEdit *lineEditSearch;
80 QPushButton *pushButtonClear;
81};
82#endif // MAINWINDOW_H
The BookProxyModel class is a proxy model that filters the book table model.
Definition bookproxymodel.h:21
The BookTableModel class is a table model that stores a list of books.
Definition booktablemodel.h:23
This class is the main window of the application.
Definition mainwindow.h:29
MainWindow(QWidget *parent=nullptr)
Construct a new MainWindow object.
Definition mainwindow.cpp:29
~MainWindow()
Destroy the MainWindow object.
Definition mainwindow.cpp:55