Changeset View
Changeset View
Standalone View
Standalone View
src/dolphintabwidget.cpp
Show All 22 Lines | |||||
23 | #include "dolphintabbar.h" | 23 | #include "dolphintabbar.h" | ||
24 | #include "dolphintabpage.h" | 24 | #include "dolphintabpage.h" | ||
25 | #include "dolphinviewcontainer.h" | 25 | #include "dolphinviewcontainer.h" | ||
26 | 26 | | |||
27 | #include <KConfigGroup> | 27 | #include <KConfigGroup> | ||
28 | #include <KRun> | 28 | #include <KRun> | ||
29 | #include <KShell> | 29 | #include <KShell> | ||
30 | #include <kio/global.h> | 30 | #include <kio/global.h> | ||
31 | #include <KAcceleratorManager> | ||||
31 | 32 | | |||
32 | #include <QApplication> | 33 | #include <QApplication> | ||
33 | #include <QDropEvent> | 34 | #include <QDropEvent> | ||
34 | 35 | | |||
35 | DolphinTabWidget::DolphinTabWidget(QWidget* parent) : | 36 | DolphinTabWidget::DolphinTabWidget(QWidget* parent) : | ||
36 | QTabWidget(parent), | 37 | QTabWidget(parent), | ||
37 | m_placesSelectorVisible(true), | 38 | m_placesSelectorVisible(true), | ||
38 | m_lastViewedTab(0) | 39 | m_lastViewedTab(0) | ||
39 | { | 40 | { | ||
41 | KAcceleratorManager::setNoAccel(this); | ||||
42 | | ||||
40 | connect(this, &DolphinTabWidget::tabCloseRequested, | 43 | connect(this, &DolphinTabWidget::tabCloseRequested, | ||
41 | this, QOverload<int>::of(&DolphinTabWidget::closeTab)); | 44 | this, QOverload<int>::of(&DolphinTabWidget::closeTab)); | ||
42 | connect(this, &DolphinTabWidget::currentChanged, | 45 | connect(this, &DolphinTabWidget::currentChanged, | ||
43 | this, &DolphinTabWidget::currentTabChanged); | 46 | this, &DolphinTabWidget::currentTabChanged); | ||
44 | 47 | | |||
45 | DolphinTabBar* tabBar = new DolphinTabBar(this); | 48 | DolphinTabBar* tabBar = new DolphinTabBar(this); | ||
46 | connect(tabBar, &DolphinTabBar::openNewActivatedTab, | 49 | connect(tabBar, &DolphinTabBar::openNewActivatedTab, | ||
47 | this, QOverload<int>::of(&DolphinTabWidget::openNewActivatedTab)); | 50 | this, QOverload<int>::of(&DolphinTabWidget::openNewActivatedTab)); | ||
▲ Show 20 Lines • Show All 388 Lines • Show Last 20 Lines |