Changeset View
Changeset View
Standalone View
Standalone View
src/Application.cpp
Show First 20 Lines • Show All 416 Lines • ▼ Show 20 Line(s) | 416 | if (m_parser->isSet(QStringLiteral("show-menubar"))) { | |||
---|---|---|---|---|---|
417 | window->setMenuBarInitialVisibility(true); | 417 | window->setMenuBarInitialVisibility(true); | ||
418 | } | 418 | } | ||
419 | if (m_parser->isSet(QStringLiteral("hide-menubar"))) { | 419 | if (m_parser->isSet(QStringLiteral("hide-menubar"))) { | ||
420 | window->setMenuBarInitialVisibility(false); | 420 | window->setMenuBarInitialVisibility(false); | ||
421 | } | 421 | } | ||
422 | if (m_parser->isSet(QStringLiteral("fullscreen"))) { | 422 | if (m_parser->isSet(QStringLiteral("fullscreen"))) { | ||
423 | window->viewFullScreen(true); | 423 | window->viewFullScreen(true); | ||
424 | } | 424 | } | ||
425 | | ||||
426 | // override default tabbbar visibility | | |||
427 | // FIXME: remove those magic number | | |||
428 | // see ViewContainer::NavigationVisibility | | |||
429 | if (m_parser->isSet(QStringLiteral("show-tabbar"))) { | | |||
430 | // always show | | |||
431 | window->viewManager()->setNavigationVisibility(0); | | |||
432 | } | | |||
433 | if (m_parser->isSet(QStringLiteral("hide-tabbar"))) { | | |||
sandsmark: «konsole --hide-tabbar» and «konsole --show-tabbar» don't work anymore, I can't see them… | |||||
434 | // never show | | |||
435 | window->viewManager()->setNavigationVisibility(2); | | |||
436 | } | | |||
437 | } | 425 | } | ||
438 | return window; | 426 | return window; | ||
439 | } | 427 | } | ||
440 | 428 | | |||
441 | // Loads a profile. | 429 | // Loads a profile. | ||
442 | // If --profile <name> is given, loads profile <name>. | 430 | // If --profile <name> is given, loads profile <name>. | ||
443 | // If --fallback-profile is given, loads profile FALLBACK/. | 431 | // If --fallback-profile is given, loads profile FALLBACK/. | ||
444 | // Else loads the default profile. | 432 | // Else loads the default profile. | ||
▲ Show 20 Lines • Show All 164 Lines • Show Last 20 Lines |
«konsole --hide-tabbar» and «konsole --show-tabbar» don't work anymore, I can't see them getting checked for anywhere else.