Changeset e619be9 in confclerk_git for src/gui/mainwindow.cpp


Ignore:
Timestamp:
04/16/13 23:01:40 (9 years ago)
Author:
Philipp Spitzer <philipp@…>
Branches:
master, qt5
Children:
0bd1252
Parents:
3a09de6
Message:

Formatted alarm message (closes ticket #46).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/gui/mainwindow.cpp

    r3a09de6 re619be9  
    235235    if (events.size() == 1) {
    236236        event = events.first();
    237         title = tr("Next event at %1").arg(event.start().toString());
    238         message = tr("Title: %1\nRoom: %2").arg(event.title()).arg(event.room()->name());
     237        title = tr("Next event at %1").arg(event.start().toString("HH:mm"));
     238        message = tr("\"%1\"\n(%2)").arg(event.title()).arg(event.room()->name());
    239239    } else {
    240240        title = tr("%1 upcoming events").arg(events.size());
    241241        QStringList messages;
    242242        foreach (event, events) {
    243             messages += tr("Start: %1; Title: %2; Room: %3").arg(event.start().toString()).arg(event.title()).arg(event.room()->name());
     243            messages += tr("%1: \"%2\" (%3)").arg(event.start().toString("HH:mm")).arg(event.title()).arg(event.room()->name());
    244244        }
    245245        message = messages.join("\n");
Note: See TracChangeset for help on using the changeset viewer.