mirror of
https://invent.kde.org/system/dolphin
synced 2024-11-05 18:47:12 +00:00
Merge remote-tracking branch 'origin/KDE/4.10'
This commit is contained in:
commit
d15823f4d0
1 changed files with 4 additions and 4 deletions
|
@ -175,13 +175,13 @@ Nepomuk2::Query::Term DolphinFacetsWidget::facetsTerm() const
|
|||
if (!m_anytime->isChecked()) {
|
||||
QDate date = QDate::currentDate(); // represents m_today
|
||||
if (m_yesterday->isChecked()) {
|
||||
date.addDays(-1);
|
||||
date = date.addDays(-1);
|
||||
} else if (m_thisWeek->isChecked()) {
|
||||
date.addDays(1 - date.dayOfWeek());
|
||||
date = date.addDays(1 - date.dayOfWeek());
|
||||
} else if (m_thisMonth->isChecked()) {
|
||||
date.addDays(1 - date.day());
|
||||
date = date.addDays(1 - date.day());
|
||||
} else if (m_thisYear->isChecked()) {
|
||||
date.addDays(1 - date.dayOfYear());
|
||||
date = date.addDays(1 - date.dayOfYear());
|
||||
}
|
||||
|
||||
Nepomuk2::Query::ComparisonTerm term(Nepomuk2::Vocabulary::NIE::lastModified(),
|
||||
|
|
Loading…
Reference in a new issue