mirror of
https://github.com/KDE/konsole.git
synced 2026-06-11 15:35:09 -04:00
Use QTabBar: drop tons of code
Summary: this is a WIP, I don't plan to merge this yet, there are many thigns to solve. Drop the handmade TabWidget used inside of konsole in favor of Qt's QTabWidget This drops tons of code we manually did, but it also drops a bit of functionality. Missing features: - Close Button - New Tab on double click - Drag'n Drop - Detach and lots of testing. Subscribers: konsole-devel Tags: #konsole Differential Revision: https://phabricator.kde.org/D13882
This commit is contained in:
@@ -422,18 +422,6 @@ MainWindow *Application::processWindowArgs(bool &createdNewMainWindow)
|
||||
if (m_parser->isSet(QStringLiteral("fullscreen"))) {
|
||||
window->viewFullScreen(true);
|
||||
}
|
||||
|
||||
// override default tabbbar visibility
|
||||
// FIXME: remove those magic number
|
||||
// see ViewContainer::NavigationVisibility
|
||||
if (m_parser->isSet(QStringLiteral("show-tabbar"))) {
|
||||
// always show
|
||||
window->viewManager()->setNavigationVisibility(0);
|
||||
}
|
||||
if (m_parser->isSet(QStringLiteral("hide-tabbar"))) {
|
||||
// never show
|
||||
window->viewManager()->setNavigationVisibility(2);
|
||||
}
|
||||
}
|
||||
return window;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user