| Summary: | Calendar wizard should default to next year | ||
|---|---|---|---|
| Product: | [Applications] digikam | Reporter: | Thomas Bettler <thomas.bettler> |
| Component: | Plugin-Generic-Calendar | Assignee: | Digikam Developers <digikam-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | caulier.gilles |
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Gentoo Packages | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | 0.1.0 | |
| Sentry Crash Report: | |||
|
Description
Thomas Bettler
2005-12-24 01:18:34 UTC
SVN commit 492038 by toma:
Put in an extra warning for making a calendar for a year in the past and for the current year if it is in the second half of the year...
BUG: 118936
M +15 -5 calwizard.cpp
--- trunk/extragear/libs/kipi-plugins/calendar/calwizard.cpp #492037:492038
@@ -224,17 +224,27 @@
printList.append(month);
}
}
-
+
if (!monthNumbers_.empty()) {
QString year = QString::number(cSettings_->getYear());
- wPrintLabel_->setText(i18n("Click Next to start Printing\n\n"
+
+ QString extra;
+ if (QDate::currentDate().month() >= 6 &&
+ QDate::currentDate().year() >= cSettings_->getYear())
+ extra = "<br><br><b>"+i18n("Please note that you are making a "
+ "calendar for the current year or a year in the "
+ "past.")+"</b>";
+
+ wPrintLabel_->setText(i18n("Click Next to start Printing<br><br>"
"Following months will be printed for year %1:").arg(year)
- + QString("\n")
- + printList.join("\n"));
+ + QString("<br>")
+ + printList.join("<br>") + extra);
+ wPrintLabel_->setTextFormat(Qt::RichText);
+
setNextEnabled(wPrint_, true);
}
else {
- wPrintLabel_->setText(i18n("No valid images selected for months\n"
+ wPrintLabel_->setText(i18n("No valid images selected for months<br>"
"Click Back to select images"));
setNextEnabled(wPrint_, false);
}
Thank you. That's great! |