Changeset 508de33 for src/mvc/room.h
- Timestamp:
- 05/05/10 15:58:23 (13 years ago)
- Branches:
- master, qt5
- Children:
- 525448c
- Parents:
- 0d995ed
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mvc/room.h
r0d995ed r508de33 36 36 void setName(const QString & type) { setValue("name", type); } 37 37 // TODO: make naming consistent - either "picture" or "map" 38 QVariant map() const { return value("picture"); } 38 QVariant map() const { return value("picture"); } 39 bool hasMap() const 40 { 41 // empty strings also treasted as NULL, 42 // as storing NULLs requires rewrite of storing code and DB scheme 43 return !isNull("picture") and !value("picture").toString().isEmpty(); 44 } 39 45 int insert(); 40 46 public:
Note: See TracChangeset
for help on using the changeset viewer.