Changeset 489f262 for src/model/event.h


Ignore:
Timestamp:
12/31/09 12:24:20 (13 years ago)
Author:
komarma <komarma@…>
Branches:
master, qt5
Children:
d0d0a66
Parents:
20a6010
Message:

Fixing datetime conversion

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/model/event.h

    r20a6010 r489f262  
    3131    int duration() const { return value("duration").toInt(); }
    3232    int activityId() const { return value("xid_activity").toInt(); }
    33     int typeId() const { return value("type").toInt(); }
    34     int languageId() const { return value("language").toInt(); }
     33    QString type() const { return value("type").toString(); }
     34    QString language() const { return value("language").toString(); }
    3535
    3636    void setId(int id) { setValue("id", id); }
     
    3939    void setDuration(int duration) { setValue("duration", duration); }
    4040    void setActivityId(int activityId) { setValue("xid_activity", activityId); }
    41     void setTypeId(int typeId) { setValue("type", typeId); }
    42     void setLanguageId(int languageId) { setValue("language", languageId); }
     41    void setType(const QString& type) { setValue("type", type); }
     42    void setLanguage(const QString& language) { setValue("language", language); }
    4343
    4444friend class EventTest;
Note: See TracChangeset for help on using the changeset viewer.