Changeset View
Changeset View
Standalone View
Standalone View
src/ksieveui/editor/sieveeditorwidget.cpp
Show First 20 Lines • Show All 146 Lines • ▼ Show 20 Line(s) | 139 | } | |||
---|---|---|---|---|---|
147 | QHBoxLayout *nameLayout = new QHBoxLayout; | 147 | QHBoxLayout *nameLayout = new QHBoxLayout; | ||
148 | QLabel *label = new QLabel(i18n("Script name:")); | 148 | QLabel *label = new QLabel(i18n("Script name:")); | ||
149 | nameLayout->addWidget(label); | 149 | nameLayout->addWidget(label); | ||
150 | mScriptName = new QLineEdit; | 150 | mScriptName = new QLineEdit; | ||
151 | mScriptName->setReadOnly(true); | 151 | mScriptName->setReadOnly(true); | ||
152 | nameLayout->addWidget(mScriptName); | 152 | nameLayout->addWidget(mScriptName); | ||
153 | lay->addLayout(nameLayout); | 153 | lay->addLayout(nameLayout); | ||
154 | 154 | | |||
155 | lay->setMargin(0); | 155 | lay->setContentsMargins(0, 0, 0, 0); | ||
156 | mStackedWidget = new QStackedWidget; | 156 | mStackedWidget = new QStackedWidget; | ||
157 | 157 | | |||
158 | mTextModeWidget = new SieveEditorTextModeWidget; | 158 | mTextModeWidget = new SieveEditorTextModeWidget; | ||
159 | connect(mTextModeWidget, &SieveEditorTextModeWidget::valueChanged, this, &SieveEditorWidget::slotModified); | 159 | connect(mTextModeWidget, &SieveEditorTextModeWidget::valueChanged, this, &SieveEditorWidget::slotModified); | ||
160 | if (menuBar) { | 160 | if (menuBar) { | ||
161 | menuBar->setTextModeWidget(mTextModeWidget); | 161 | menuBar->setTextModeWidget(mTextModeWidget); | ||
162 | } | 162 | } | ||
163 | mStackedWidget->addWidget(mTextModeWidget); | 163 | mStackedWidget->addWidget(mTextModeWidget); | ||
▲ Show 20 Lines • Show All 587 Lines • Show Last 20 Lines |