21 #include "ui_searchsettingsform.h"
32 ui->choiceDateButton->setEnabled(
false);
33 ui->startDateLabel->setEnabled(
false);
35 ui->choiceDateButton->setAttribute(Qt::WA_LayoutUsesWidgetRect);
36 ui->choiceDateButton->setObjectName(QStringLiteral(
"choiceDateButton"));
40 #if (QT_VERSION >= QT_VERSION_CHECK(5, 15, 0))
41 connect(
ui->startSearchComboBox, QOverload<int>::of(&QComboBox::currentIndexChanged),
43 connect(
ui->startSearchComboBox,
static_cast<void(QComboBox::*)(
int)
>(&QComboBox::currentIndexChanged),
61 if (
ui->regularRadioButton->isChecked()) {
63 }
else if (
ui->registerCheckBox->isChecked() &&
ui->wordsOnlyRadioButton->isChecked()) {
65 }
else if (
ui->registerCheckBox->isChecked() &&
ui->regularRadioButton->isChecked()) {
67 }
else if (
ui->registerCheckBox->isChecked()) {
69 }
else if (
ui->wordsOnlyRadioButton->isChecked()) {
75 switch (
ui->startSearchComboBox->currentIndex()) {
120 ui->choiceDateButton->setEnabled(
true);
121 ui->startDateLabel->setEnabled(
true);
123 ui->choiceDateButton->setProperty(
"state", QStringLiteral(
"green"));
132 ui->choiceDateButton->setEnabled(
false);
133 ui->startDateLabel->setEnabled(
false);
135 ui->choiceDateButton->setProperty(
"state", QString());
151 ui->regularRadioButton->setChecked(
false);
160 ui->wordsOnlyRadioButton->setChecked(
false);
169 dlg.
setTitle(tr(
"Select Date Dialog"));