94 hSeparatorLine->setFrameShape(QFrame::HLine);
95 hSeparatorLine->setFrameShadow(QFrame::Sunken);
99 m_buttonBox->setStandardButtons(QDialogButtonBox::Ok
100 | QDialogButtonBox::Cancel
101 | QDialogButtonBox::RestoreDefaults);
104 QHBoxLayout *rangeButtonsLayout =
new QHBoxLayout();
108 QVBoxLayout* rangeListLayout =
new QVBoxLayout;
111 rangeListLayout->addLayout(rangeButtonsLayout);
113 QHBoxLayout* nameEditLayout =
new QHBoxLayout();
117 QVBoxLayout* rangeEditLayout =
new QVBoxLayout();
118 rangeEditLayout->addLayout(nameEditLayout);
124 QHBoxLayout *topLayout =
new QHBoxLayout;
125 topLayout->addLayout(rangeListLayout);
126 topLayout->addLayout(rangeEditLayout);
128 QVBoxLayout *vboxLayout =
new QVBoxLayout(
this);
129 vboxLayout->addLayout(topLayout);
130 vboxLayout->addWidget(hSeparatorLine);
148 static QRegularExpression
const re(
149 QStringLiteral(R
"PCRE(\s*-\s*)PCRE"));
153 QStringLiteral(
"-"));
157 auto *
const module =
158 backend.findModuleByName(moduleName);
163 module->swordModule().getKey())
165 range.toUtf8().constData(),
168 if (verses.getCount() > 0) {
169 for (
int i = 0; i < verses.getCount(); i++) {
170 auto const *
const elementText =
171 verses.getElement(i)->getRangeText();
173 QString::fromUtf8(elementText),
185 this, &CRangeChooserDialog::reject);
204 QPushButton * defaultsButton =
m_buttonBox->button(QDialogButtonBox::RestoreDefaults);
205 BT_CONNECT(defaultsButton, &QPushButton::clicked,
210 btConfig().getSearchScopesForCurrentLocale(
212 for (
auto it = map.begin(); it != map.end(); ++it)