[kde-doc-english] KDE/kdepim/korganizer/incidenceeditor
David Faure
faure at kde.org
Sat Feb 27 01:06:15 CET 2010
SVN commit 1096596 by dfaure:
GUI: Improve usability of the "Pick Date" button: show Yes/No dialog so the user
can choose to use the suggested date, or to ignore the suggestion.
BUG: 228694
M +7 -5 koeditorfreebusy.cpp
--- trunk/KDE/kdepim/korganizer/incidenceeditor/koeditorfreebusy.cpp #1096595:1096596
@@ -566,13 +566,15 @@
QString(),
"MeetingTimeOKFreeBusy" );
} else {
- emit dateTimesChanged( start.dateTime(), end.dateTime() );
- slotUpdateGanttView( start.dateTime(), end.dateTime() );
- KMessageBox::information(
+ if ( KMessageBox::questionYesNo(
this,
- i18nc( "@info", "The meeting has been moved to\nStart: %1\nEnd: %2.",
+ i18nc( "@info", "<html>The next available slot for the meeting is:<br/>Start: %1<br/>End: %2.<br/>Would you like to move the meeting to this slot?</html>",
start.dateTime().toString(), end.dateTime().toString() ), QString(),
- "MeetingMovedFreeBusy" );
+ KStandardGuiItem::yes(), KStandardGuiItem::no(),
+ "MeetingMovedFreeBusy") == KMessageBox::Yes ) {
+ emit dateTimesChanged( start.dateTime(), end.dateTime() );
+ slotUpdateGanttView( start.dateTime(), end.dateTime() );
+ }
}
} else {
KMessageBox::sorry( this, i18nc( "@info", "No suitable date found." ) );
More information about the kde-doc-english
mailing list