MCPcopy Create free account
hub / github.com/IJHack/QtPass / initStatusBar

Method initStatusBar

src/mainwindow.cpp:201–209  ·  view source on GitHub ↗

* @brief MainWindow::initStatusBar init statusBar with default message and logo */

Source from the content-addressed store, hash-verified

199 * @brief MainWindow::initStatusBar init statusBar with default message and logo
200 */
201void 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
211auto MainWindow::getCurrentTreeViewIndex() -> QModelIndex {
212 return ui->treeView->currentIndex();

Callers

nothing calls this directly

Calls 1

showMessageMethod · 0.80

Tested by

no test coverage detected