* @brief MainWindow::initStatusBar init statusBar with default message and logo */
| 199 | * @brief MainWindow::initStatusBar init statusBar with default message and logo |
| 200 | */ |
| 201 | void MainWindow::initStatusBar() { |
| 202 | ui->statusBar->showMessage(tr("Welcome to QtPass %1").arg(VERSION), 2000); |
| 203 | |
| 204 | QPixmap logo = QPixmap::fromImage(QImage(":/artwork/icon.svg")) |
| 205 | .scaledToHeight(statusBar()->height()); |
| 206 | auto *logoApp = new QLabel(statusBar()); |
| 207 | logoApp->setPixmap(logo); |
| 208 | statusBar()->addPermanentWidget(logoApp); |
| 209 | } |
| 210 | |
| 211 | auto MainWindow::getCurrentTreeViewIndex() -> QModelIndex { |
| 212 | return ui->treeView->currentIndex(); |
nothing calls this directly
no test coverage detected