MCPcopy Create free account
hub / github.com/KDE/kdevelop / ContainerTabBar

Class ContainerTabBar

kdevplatform/sublime/container.cpp:92–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90// class ContainerTabBar
91
92class ContainerTabBar : public QTabBar
93{
94 Q_OBJECT
95
96public:
97 explicit ContainerTabBar(Container* container)
98 : QTabBar(container), m_container(container)
99 {
100 if (QApplication::style()->objectName() == QLatin1String("macintosh")) {
101 static QPointer<QStyle> qTabBarStyle = QStyleFactory::create(QStringLiteral("fusion"));
102 if (qTabBarStyle) {
103 setStyle(qTabBarStyle);
104 }
105 }
106 // configure the QTabBar style so it behaves as appropriately as possible,
107 // even if we end up using the native Macintosh style because the user's
108 // Qt doesn't have the Fusion style installed.
109 setDocumentMode(true);
110 setUsesScrollButtons(true);
111 setElideMode(Qt::ElideNone);
112 }
113
114 bool event(QEvent* ev) override {
115 if(ev->type() == QEvent::ToolTip)

Callers

nothing calls this directly

Calls 2

createFunction · 0.85
ifFunction · 0.50

Tested by

no test coverage detected