2022-05-10 10:06:48 +00:00
|
|
|
// Copyright (C) 2016 The Qt Company Ltd.
|
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
#ifndef BOOKWINDOW_H
|
|
|
|
#define BOOKWINDOW_H
|
|
|
|
|
2011-05-08 07:13:40 +00:00
|
|
|
#include <QtWidgets>
|
2011-04-27 10:05:43 +00:00
|
|
|
#include <QtSql>
|
|
|
|
|
|
|
|
#include "ui_bookwindow.h"
|
|
|
|
|
|
|
|
|
|
|
|
class BookWindow: public QMainWindow
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
BookWindow();
|
|
|
|
|
2018-06-13 11:04:10 +00:00
|
|
|
private slots:
|
|
|
|
void about();
|
|
|
|
|
2011-04-27 10:05:43 +00:00
|
|
|
private:
|
|
|
|
void showError(const QSqlError &err);
|
|
|
|
Ui::BookWindow ui;
|
|
|
|
QSqlRelationalTableModel *model;
|
|
|
|
int authorIdx, genreIdx;
|
2018-06-13 11:04:10 +00:00
|
|
|
|
|
|
|
void createMenuBar();
|
2011-04-27 10:05:43 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|