Changeset View
Changeset View
Standalone View
Standalone View
src/kpagewidget.cpp
Show First 20 Lines • Show All 75 Lines • ▼ Show 20 Line(s) | |||||
76 | } | 76 | } | ||
77 | 77 | | |||
78 | KPageWidget::~KPageWidget() | 78 | KPageWidget::~KPageWidget() | ||
79 | { | 79 | { | ||
80 | } | 80 | } | ||
81 | 81 | | |||
82 | KPageWidgetItem *KPageWidget::addPage(QWidget *widget, const QString &name) | 82 | KPageWidgetItem *KPageWidget::addPage(QWidget *widget, const QString &name) | ||
83 | { | 83 | { | ||
84 | // force layout margin to zero so that it aligns well with title widget | | |||
85 | if (widget->layout()) { | | |||
86 | widget->layout()->setContentsMargins(0, 0, 0, 0); | | |||
87 | } | | |||
88 | | ||||
89 | return d_func()->model()->addPage(widget, name); | 84 | return d_func()->model()->addPage(widget, name); | ||
90 | } | 85 | } | ||
91 | 86 | | |||
92 | void KPageWidget::addPage(KPageWidgetItem *item) | 87 | void KPageWidget::addPage(KPageWidgetItem *item) | ||
93 | { | 88 | { | ||
94 | d_func()->model()->addPage(item); | 89 | d_func()->model()->addPage(item); | ||
95 | } | 90 | } | ||
96 | 91 | | |||
▲ Show 20 Lines • Show All 48 Lines • Show Last 20 Lines |