* @brief MainWindow::initToolBarButtons init main ToolBar and connect actions */
| 165 | * @brief MainWindow::initToolBarButtons init main ToolBar and connect actions |
| 166 | */ |
| 167 | void MainWindow::initToolBarButtons() { |
| 168 | connect(ui->actionAddPassword, &QAction::triggered, this, |
| 169 | &MainWindow::addPassword); |
| 170 | connect(ui->actionAddFolder, &QAction::triggered, this, |
| 171 | &MainWindow::addFolder); |
| 172 | connect(ui->actionEdit, &QAction::triggered, this, &MainWindow::onEdit); |
| 173 | connect(ui->actionDelete, &QAction::triggered, this, &MainWindow::onDelete); |
| 174 | connect(ui->actionPush, &QAction::triggered, this, &MainWindow::onPush); |
| 175 | connect(ui->actionUpdate, &QAction::triggered, this, &MainWindow::onUpdate); |
| 176 | connect(ui->actionUsers, &QAction::triggered, this, &MainWindow::onUsers); |
| 177 | connect(ui->actionConfig, &QAction::triggered, this, &MainWindow::onConfig); |
| 178 | connect(ui->actionOtp, &QAction::triggered, this, &MainWindow::onOtp); |
| 179 | |
| 180 | ui->actionAddPassword->setIcon( |
| 181 | QIcon::fromTheme("document-new", QIcon(":/icons/document-new.svg"))); |
| 182 | ui->actionAddFolder->setIcon( |
| 183 | QIcon::fromTheme("folder-new", QIcon(":/icons/folder-new.svg"))); |
| 184 | ui->actionEdit->setIcon(QIcon::fromTheme( |
| 185 | "document-properties", QIcon(":/icons/document-properties.svg"))); |
| 186 | ui->actionDelete->setIcon( |
| 187 | QIcon::fromTheme("edit-delete", QIcon(":/icons/edit-delete.svg"))); |
| 188 | ui->actionPush->setIcon( |
| 189 | QIcon::fromTheme("go-up", QIcon(":/icons/go-top.svg"))); |
| 190 | ui->actionUpdate->setIcon( |
| 191 | QIcon::fromTheme("go-down", QIcon(":/icons/go-bottom.svg"))); |
| 192 | ui->actionUsers->setIcon(QIcon::fromTheme( |
| 193 | "x-office-address-book", QIcon(":/icons/x-office-address-book.svg"))); |
| 194 | ui->actionConfig->setIcon(QIcon::fromTheme( |
| 195 | "applications-system", QIcon(":/icons/applications-system.svg"))); |
| 196 | } |
| 197 | |
| 198 | /** |
| 199 | * @brief MainWindow::initStatusBar init statusBar with default message and logo |
nothing calls this directly
no outgoing calls
no test coverage detected