[Kde-imaging] [Bug 118936] kipi calendar wizard should default to next year
Tom Albers
tomalbers at kde.nl
Wed Dec 28 16:06:29 CET 2005
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=118936
tomalbers kde nl changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
------- Additional Comments From tomalbers kde nl 2005-12-28 16:06 -------
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);
}
More information about the Kde-imaging
mailing list