1
0
mirror of https://github.com/altlinux/admc.git synced 2025-03-28 06:50:48 +03:00

add manual action to toolbar

This commit is contained in:
Dmitry Degtyarev 2021-08-19 16:22:49 +04:00
parent 199d9d5889
commit 171537abcc
2 changed files with 5 additions and 1 deletions

@ -52,6 +52,8 @@ MainWindow::MainWindow()
connection_options_dialog = new ConnectionOptionsDialog(this);
manual_action = new QAction(QIcon::fromTheme("help-faq"), tr("&Manual"), this);
message_log_dock = new QDockWidget();
message_log_dock->setWindowTitle(tr("Message Log"));
message_log_dock->setWidget(g_status()->message_log());
@ -109,7 +111,6 @@ void MainWindow::setup_menubar() {
auto quit_action = new QAction(tr("&Quit"), this);
quit_action->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_Q));
auto manual_action = new QAction(tr("&Manual"), this);
auto about_action = new QAction(tr("&About ADMC"), this);
auto confirm_actions_action = settings_make_and_connect_action(SETTING_confirm_actions, tr("&Confirm actions"), this);
@ -254,6 +255,8 @@ void MainWindow::connect_to_server() {
central_widget->add_actions(action_menu, navigation_menu, view_menu, preferences_menu, toolbar);
toolbar->addAction(manual_action);
connect_action->setEnabled(false);
}
}

@ -40,6 +40,7 @@ protected:
private:
QAction *connect_action;
QAction *manual_action;
ConnectionOptionsDialog *connection_options_dialog;
QDockWidget *message_log_dock;
QToolBar *toolbar;