Changeset View
Changeset View
Standalone View
Standalone View
src/dolphintabpage.cpp
Show All 23 Lines | |||||
24 | 24 | | |||
25 | #include <QSplitter> | 25 | #include <QSplitter> | ||
26 | #include <QVBoxLayout> | 26 | #include <QVBoxLayout> | ||
27 | 27 | | |||
28 | DolphinTabPage::DolphinTabPage(const QUrl &primaryUrl, const QUrl &secondaryUrl, QWidget* parent) : | 28 | DolphinTabPage::DolphinTabPage(const QUrl &primaryUrl, const QUrl &secondaryUrl, QWidget* parent) : | ||
29 | QWidget(parent), | 29 | QWidget(parent), | ||
30 | m_primaryViewActive(true), | 30 | m_primaryViewActive(true), | ||
31 | m_splitViewEnabled(false), | 31 | m_splitViewEnabled(false), | ||
32 | m_active(true) | 32 | m_active(true), | ||
33 | m_uuid(QUuid::createUuid()) | ||||
33 | { | 34 | { | ||
34 | QVBoxLayout* layout = new QVBoxLayout(this); | 35 | QVBoxLayout* layout = new QVBoxLayout(this); | ||
35 | layout->setSpacing(0); | 36 | layout->setSpacing(0); | ||
36 | layout->setContentsMargins(0, 0, 0, 0); | 37 | layout->setContentsMargins(0, 0, 0, 0); | ||
37 | 38 | | |||
38 | m_splitter = new QSplitter(Qt::Horizontal, this); | 39 | m_splitter = new QSplitter(Qt::Horizontal, this); | ||
39 | m_splitter->setChildrenCollapsible(false); | 40 | m_splitter->setChildrenCollapsible(false); | ||
40 | layout->addWidget(m_splitter); | 41 | layout->addWidget(m_splitter); | ||
▲ Show 20 Lines • Show All 333 Lines • ▼ Show 20 Line(s) | 370 | { | |||
374 | connect(view, &DolphinView::activated, | 375 | connect(view, &DolphinView::activated, | ||
375 | this, &DolphinTabPage::slotViewActivated); | 376 | this, &DolphinTabPage::slotViewActivated); | ||
376 | 377 | | |||
377 | connect(view, &DolphinView::toggleActiveViewRequested, | 378 | connect(view, &DolphinView::toggleActiveViewRequested, | ||
378 | this, &DolphinTabPage::switchActiveView); | 379 | this, &DolphinTabPage::switchActiveView); | ||
379 | 380 | | |||
380 | return container; | 381 | return container; | ||
381 | } | 382 | } | ||
383 | | ||||
384 | QUuid DolphinTabPage::getUuid() const | ||||
385 | { | ||||
386 | return m_uuid; | ||||
387 | } |