From fc5dca07e6469019870a9316d5642416277f7207 Mon Sep 17 00:00:00 2001 From: laserpants Date: Sun, 20 Mar 2016 00:11:32 +0300 Subject: [PATCH] add AppBar example to menu bar --- mainwindow.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index cd3846a..d7700c1 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -82,7 +82,7 @@ void MainWindow::showWidget(QAction *action) { QString text(action->text()); if ("AppBar" == text) { - _layout->setCurrentWidget(_about); + _layout->setCurrentWidget(_appBarExamples); } else if ("FlatButton" == text) { _layout->setCurrentWidget(_flatButtonExamples); } else if ("IconButton" == text) { @@ -100,6 +100,7 @@ void MainWindow::_initWidget() _layout->addWidget(_about); _layout->addWidget(_flatButtonExamples); _layout->addWidget(_iconButtonExamples); + _layout->addWidget(_appBarExamples); setCentralWidget(widget); }