mirror of
https://invent.kde.org/system/dolphin
synced 2024-08-22 01:40:02 +00:00
Merge remote-tracking branch 'origin/KDE/4.10'
This commit is contained in:
commit
913e49e915
|
@ -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