88 QSizePolicy sizePolicy(QSizePolicy::Preferred, QSizePolicy::Fixed);
89 this->setSizePolicy(sizePolicy);
108 m_searchButton->setToolTip(tr(
"Start to search the text in the chosen works"));
122 QHBoxLayout* typeSelectorLayout =
new QHBoxLayout();
123 int tsLeft, tsTop, tsRight, tsBottom;
125 typeSelectorLayout->getContentsMargins(&tsLeft, &tsTop, &tsRight, &tsBottom);
126 typeSelectorLayout->setContentsMargins(
131 typeSelectorLayout->setSpacing(typeSelectorLayout->spacing()
133 QHBoxLayout* fullButtonLayout =
new QHBoxLayout();
140 m_typeAndButton->setToolTip(tr(
"All of the words (AND is added between the words)"));
141 m_typeOrButton->setToolTip(tr(
"Some of the words (OR is added between the words)"));
144 m_helpLabel =
new QLabel(tr(
" (<a href='syntax_help'>full syntax</a>)"));
145 m_helpLabel->setToolTip(tr(
"Click the link to get help for search syntax"));
151 typeSelectorLayout->addLayout(fullButtonLayout);
152 gridLayout->addLayout(typeSelectorLayout, 1, 1, 1, -1, Qt::AlignLeft | Qt::AlignTop);
161 QSizePolicy sizePolicy2(QSizePolicy::Expanding, QSizePolicy::Fixed);
162 sizePolicy2.setHorizontalStretch(0);
163 sizePolicy2.setVerticalStretch(0);
166 m_rangeChooserCombo->setToolTip(tr(
"Choose the scope (books/chapters/verses to search in).<br />Applicable for Bibles and commentaries."));
171 sizePolicy2.setHeightForWidth(
m_searchTextCombo->sizePolicy().hasHeightForWidth());
191 setMinimumSize(minimumSizeHint());
210 std::move(startSearch));
219 [
this](
int const index) {
221 for (
auto const & name
223 QStringLiteral(
", ")))
232 dlg->setAttribute(Qt::WA_DeleteOnClose);
237 this, &BtSearchOptionsArea::slotValidateText);
330 QStringLiteral(
"properties/searchTexts"));
334 this, &BtSearchOptionsArea::slotValidateText);
336 for (
auto const & text : texts)
341 this, &BtSearchOptionsArea::slotValidateText);
347 QStringLiteral(
"history/searchModuleHistory")));
QStringList historyItems() const
void addToHistory(const QString &item)