98 hSeparatorLine->setFrameShape(QFrame::HLine);
99 hSeparatorLine->setFrameShadow(QFrame::Sunken);
103 m_buttonBox->setStandardButtons(QDialogButtonBox::Ok
104 | QDialogButtonBox::Cancel
105 | QDialogButtonBox::RestoreDefaults);
108 QHBoxLayout *rangeButtonsLayout =
new QHBoxLayout();
112 QVBoxLayout* rangeListLayout =
new QVBoxLayout;
115 rangeListLayout->addLayout(rangeButtonsLayout);
117 QHBoxLayout* nameEditLayout =
new QHBoxLayout();
121 QVBoxLayout* rangeEditLayout =
new QVBoxLayout();
122 rangeEditLayout->addLayout(nameEditLayout);
128 QHBoxLayout *topLayout =
new QHBoxLayout;
129 topLayout->addLayout(rangeListLayout);
130 topLayout->addLayout(rangeEditLayout);
132 QVBoxLayout *vboxLayout =
new QVBoxLayout(
this);
133 vboxLayout->addLayout(topLayout);
134 vboxLayout->addWidget(hSeparatorLine);
152 static QRegularExpression
const re(
153 QStringLiteral(R
"PCRE(\s*-\s*)PCRE"));
157 QStringLiteral(
"-"));
161 auto *
const module =
162 backend.findModuleByName(moduleName);
167 module->swordModule().getKey())
169 range.toUtf8().constData(),
172 if (verses.getCount() > 0) {
173 for (
int i = 0; i < verses.getCount(); i++) {
174 auto const *
const elementText =
175 verses.getElement(i)->getRangeText();
177 QString::fromUtf8(elementText),
189 this, &CRangeChooserDialog::reject);
208 QPushButton * defaultsButton =
m_buttonBox->button(QDialogButtonBox::RestoreDefaults);
209 BT_CONNECT(defaultsButton, &QPushButton::clicked,
214 btConfig().getSearchScopesForCurrentLocale(
216 for (
auto it = map.begin(); it != map.end(); ++it)