Changeset View
Changeset View
Standalone View
Standalone View
krusader/panelmanager.cpp
Show First 20 Lines • Show All 57 Lines • ▼ Show 20 Line(s) | 53 | { | |||
---|---|---|---|---|---|
58 | 58 | | |||
59 | // new tab button | 59 | // new tab button | ||
60 | _newTab = new QToolButton(this); | 60 | _newTab = new QToolButton(this); | ||
61 | _newTab->setAutoRaise(true); | 61 | _newTab->setAutoRaise(true); | ||
62 | _newTab->setText(i18n("Open a new tab in home")); | 62 | _newTab->setText(i18n("Open a new tab in home")); | ||
63 | _newTab->setToolTip(i18n("Open a new tab in home")); | 63 | _newTab->setToolTip(i18n("Open a new tab in home")); | ||
64 | _newTab->setIcon(Icon("tab-new")); | 64 | _newTab->setIcon(Icon("tab-new")); | ||
65 | _newTab->adjustSize(); | 65 | _newTab->adjustSize(); | ||
66 | connect(_newTab, &QToolButton::clicked, this, QOverload<>::of(&PanelManager::slotNewTab)); | 66 | connect(_newTab, &QToolButton::clicked, this, static_cast<void (PanelManager::*)()>(&PanelManager::slotNewTab)); | ||
67 | 67 | | |||
68 | // tab-bar | 68 | // tab-bar | ||
69 | _tabbar = new PanelTabBar(this, _actions); | 69 | _tabbar = new PanelTabBar(this, _actions); | ||
70 | connect(_tabbar, &PanelTabBar::currentChanged, this, &PanelManager::slotCurrentTabChanged); | 70 | connect(_tabbar, &PanelTabBar::currentChanged, this, &PanelManager::slotCurrentTabChanged); | ||
71 | connect(_tabbar, &PanelTabBar::tabCloseRequested, this, QOverload<int>::of(&PanelManager::slotCloseTab)); | 71 | connect(_tabbar, &PanelTabBar::tabCloseRequested, this, static_cast<void (PanelManager::*)(int)>(&PanelManager::slotCloseTab)); | ||
72 | connect(_tabbar, &PanelTabBar::closeCurrentTab, this, QOverload<>::of(&PanelManager::slotCloseTab)); | 72 | connect(_tabbar, &PanelTabBar::closeCurrentTab, this, static_cast<void (PanelManager::*)()>(&PanelManager::slotCloseTab)); | ||
73 | connect(_tabbar, &PanelTabBar::newTab, this, [=] (const QUrl &url) { slotNewTab(url); }); | 73 | connect(_tabbar, &PanelTabBar::newTab, this, [=] (const QUrl &url) { slotNewTab(url); }); | ||
74 | connect(_tabbar, &PanelTabBar::draggingTab, this, &PanelManager::slotDraggingTab); | 74 | connect(_tabbar, &PanelTabBar::draggingTab, this, &PanelManager::slotDraggingTab); | ||
75 | connect(_tabbar, &PanelTabBar::draggingTabFinished, this, &PanelManager::slotDraggingTabFinished); | 75 | connect(_tabbar, &PanelTabBar::draggingTabFinished, this, &PanelManager::slotDraggingTabFinished); | ||
76 | 76 | | |||
77 | auto *tabbarLayout = new QHBoxLayout; | 77 | auto *tabbarLayout = new QHBoxLayout; | ||
78 | tabbarLayout->setSpacing(0); | 78 | tabbarLayout->setSpacing(0); | ||
79 | tabbarLayout->setContentsMargins(0, 0, 0, 0); | 79 | tabbarLayout->setContentsMargins(0, 0, 0, 0); | ||
80 | 80 | | |||
▲ Show 20 Lines • Show All 382 Lines • Show Last 20 Lines |