summaryrefslogtreecommitdiffstats
path: root/examples/sql/books/bookwindow.h
diff options
context:
space:
mode:
authorPaul Wicking <paul.wicking@qt.io>2018-06-13 13:04:10 +0200
committerPaul Wicking <paul.wicking@qt.io>2018-06-21 14:23:27 +0000
commitf415f50619ceedff05bcf97336cf05374130a2a7 (patch)
treecd0259257a22f0f52e72c8055bd003945eaf1a27 /examples/sql/books/bookwindow.h
parent06996e1d0e90fa89d3f18456da91d80c9a6a95f8 (diff)
Doc: Add menu bar to Books example
Add menu bar with Help->About that contains a short description of the example application. Remove redundant title string between menu and application content. Task-number: QTBUG-68652 Change-Id: I31fb386ab9c01eff86b8ed3ef274ba8cfdb0148b Reviewed-by: Topi Reiniƶ <topi.reinio@qt.io>
Diffstat (limited to 'examples/sql/books/bookwindow.h')
-rw-r--r--examples/sql/books/bookwindow.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/examples/sql/books/bookwindow.h b/examples/sql/books/bookwindow.h
index 4b2be0e729..ec6b935242 100644
--- a/examples/sql/books/bookwindow.h
+++ b/examples/sql/books/bookwindow.h
@@ -63,11 +63,16 @@ class BookWindow: public QMainWindow
public:
BookWindow();
+private slots:
+ void about();
+
private:
void showError(const QSqlError &err);
Ui::BookWindow ui;
QSqlRelationalTableModel *model;
int authorIdx, genreIdx;
+
+ void createMenuBar();
};
#endif