~zsombi/ubuntu-ui-toolkit/popover-dismiss-buttons

« back to all changes in this revision

Viewing changes to modules/Ubuntu/Components/plugin/alarmmanager_p.h

prereq merge

Show diffs side-by-side

added added

removed removed

Lines of Context:
101
101
        return QDateTime(dt.date(), time, dt.timeSpec());
102
102
    }
103
103
 
 
104
    // the function normalizes and transcodes the date into UTC/LocalTime equivalent
 
105
    static QDateTime transcodeDate(const QDateTime &dt, Qt::TimeSpec targetSpec) {
 
106
        if (dt.timeSpec() == targetSpec) {
 
107
            return normalizeDate(dt);
 
108
        }
 
109
        return QDateTime(dt.date(), normalizeDate(dt).time(), targetSpec);
 
110
    }
 
111
 
104
112
    unsigned int changes;
105
113
    QVariant cookie;
106
114