Changeset View
Changeset View
Standalone View
Standalone View
src/dialog/searchdialog.cpp
Show First 20 Lines • Show All 60 Lines • ▼ Show 20 Line(s) | 53 | { | |||
---|---|---|---|---|---|
61 | const QDate currDate = QDate::currentDate(); | 61 | const QDate currDate = QDate::currentDate(); | ||
62 | m_ui->startDate->setDate(currDate); | 62 | m_ui->startDate->setDate(currDate); | ||
63 | m_ui->endDate->setDate(currDate.addYears(1)); | 63 | m_ui->endDate->setDate(currDate.addYears(1)); | ||
64 | 64 | | |||
65 | connect(m_ui->searchEdit, &QLineEdit::textChanged, this, &SearchDialog::searchTextChanged); | 65 | connect(m_ui->searchEdit, &QLineEdit::textChanged, this, &SearchDialog::searchTextChanged); | ||
66 | 66 | | |||
67 | // Results list view | 67 | // Results list view | ||
68 | QVBoxLayout *layout = new QVBoxLayout; | 68 | QVBoxLayout *layout = new QVBoxLayout; | ||
69 | layout->setMargin(0); | 69 | layout->setContentsMargins(0, 0, 0, 0); | ||
70 | listView = new EventViews::ListView(m_calendarview->calendar(), this); | 70 | listView = new EventViews::ListView(m_calendarview->calendar(), this); | ||
71 | layout->addWidget(listView); | 71 | layout->addWidget(listView); | ||
72 | m_ui->listViewFrame->setLayout(layout); | 72 | m_ui->listViewFrame->setLayout(layout); | ||
73 | 73 | | |||
74 | QDialogButtonBox *buttonBox = new QDialogButtonBox( | 74 | QDialogButtonBox *buttonBox = new QDialogButtonBox( | ||
75 | QDialogButtonBox::Close | QDialogButtonBox::Help, this); | 75 | QDialogButtonBox::Close | QDialogButtonBox::Help, this); | ||
76 | QVBoxLayout *mainLayout = new QVBoxLayout(this); | 76 | QVBoxLayout *mainLayout = new QVBoxLayout(this); | ||
77 | mainLayout->addWidget(mainWidget); | 77 | mainLayout->addWidget(mainWidget); | ||
▲ Show 20 Lines • Show All 198 Lines • Show Last 20 Lines |