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:
Tomaz Canabrava
2018-07-04 11:07:39 +02:00
parent 3013bdb599
commit 83ebda5bf4
11 changed files with 275 additions and 1536 deletions

View File

@@ -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;
}