Changeset View
Changeset View
Standalone View
Standalone View
app/mainwindow.cpp
Show First 20 Lines • Show All 1520 Lines • ▼ Show 20 Line(s) | |||||
1521 | { | 1521 | { | ||
1522 | guiFactory()->configureShortcuts(); | 1522 | guiFactory()->configureShortcuts(); | ||
1523 | guiFactory()->refreshActionProperties(); | 1523 | guiFactory()->refreshActionProperties(); | ||
1524 | } | 1524 | } | ||
1525 | 1525 | | |||
1526 | void MainWindow::toggleMenuBar() | 1526 | void MainWindow::toggleMenuBar() | ||
1527 | { | 1527 | { | ||
1528 | if (!d->mFullScreenAction->isChecked()) { | 1528 | if (!d->mFullScreenAction->isChecked()) { | ||
1529 | if (!d->mShowMenuBarAction->isChecked()) { | ||||
1530 | const QString accel = d->mShowMenuBarAction->shortcut().toString(); | ||||
1531 | KMessageBox::information(this, i18n("This will hide the menu bar completely." | ||||
1532 | " You can show it again by typing %1.", accel), | ||||
1533 | i18n("Hide menu bar"), QLatin1String("HideMenuBarWarning")); | ||||
1534 | } | ||||
1529 | menuBar()->setVisible(d->mShowMenuBarAction->isChecked()); | 1535 | menuBar()->setVisible(d->mShowMenuBarAction->isChecked()); | ||
1530 | } | 1536 | } | ||
1531 | } | 1537 | } | ||
1532 | 1538 | | |||
1533 | void MainWindow::loadConfig() | 1539 | void MainWindow::loadConfig() | ||
1534 | { | 1540 | { | ||
1535 | d->mDirModel->setBlackListedExtensions(GwenviewConfig::blackListedExtensions()); | 1541 | d->mDirModel->setBlackListedExtensions(GwenviewConfig::blackListedExtensions()); | ||
1536 | d->mDirModel->adjustKindFilter(MimeTypeUtils::KIND_VIDEO, GwenviewConfig::listVideos()); | 1542 | d->mDirModel->adjustKindFilter(MimeTypeUtils::KIND_VIDEO, GwenviewConfig::listVideos()); | ||
▲ Show 20 Lines • Show All 182 Lines • Show Last 20 Lines |