Changeset 27102d5
- Timestamp:
- 01/18/10 10:22:57 (13 years ago)
- Branches:
- master, qt5
- Children:
- 8f25cb1
- Parents:
- 8035cef
- Location:
- src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mvc/event.cpp
r8035cef r27102d5 65 65 } 66 66 67 -
src/mvc/event.h
r8035cef r27102d5 27 27 public: 28 28 static Event getById(int id, int conferenceId); 29 static Event getVirtualById(int id, int conferenceId); 29 30 static QList<Event> getByDate(const QDate& date, int conferenceId); 30 31 static QList<Event> getFavByDate(const QDate& date, int conferenceId); // get Favourities by Date -
src/mvc/eventmodel.cpp
r8035cef r27102d5 48 48 { 49 49 if (index.internalId() == 0) 50 { 50 { //range of time data 51 //qDebug() << qVariantValue<QString>(mGroups.at(index.row()).mTitle); 51 52 return mGroups.at(index.row()).mTitle; 52 53 } 53 else 54 else //event data 54 55 { 56 //qDebug() << qVariantValue<QString>(static_cast<Event*>(index.internalPointer())->id()); 57 //return static_cast<Event*>(index.internalPointer())->id(); 58 //qDebug() << Event::getVirtualById(static_cast<Event*>(index.internalPointer())->id(), 1).title();// Id Conference is 1 by now 59 //return 1; 55 60 return static_cast<Event*>(index.internalPointer())->id(); 56 61 } -
src/orm/ormrecord.h
r8035cef r27102d5 189 189 } 190 190 191 191 192 template <typename T> 192 193 QString OrmRecord<T>::selectQueryJoin2T(const QString &key) -
src/sql/sqlengine.cpp
r8035cef r27102d5 52 52 QDir::home().mkdir(".fosdem"); 53 53 databaseName = QDir::homePath() + "/.fosdem/" + "fosdem.sqlite"; 54 54 qDebug()<<databaseName; 55 55 login("QSQLITE",databaseName); 56 56 } … … 120 120 } 121 121 } 122 122 123 123 124 void SqlEngine::addPersonToDB(QHash<QString,QString> &aPerson) … … 233 234 FOREIGN KEY(xid_activity) REFERENCES ACTIVITY(id))"); 234 235 235 query.exec("CREATE VIRTUAL TABLE VIRTUAL_EVENT using fts3 ( \ 236 // TBD Virtual tables compatibility (waiting for Marek). Temporary non virtual VIRTUAL_TABLE below: To be deleted 237 /* query.exec("CREATE VIRTUAL TABLE VIRTUAL_EVENT using fts3 ( \ 236 238 xid_conference INTEGER NOT NULL, \ 237 239 id INTEGER NOT NULL , \ … … 241 243 description VARCHAR, \ 242 244 PRIMARY KEY (xid_conference,id))"); 245 */ 246 query.exec("CREATE TABLE VIRTUAL_EVENT ( \ 247 xid_conference INTEGER NOT NULL, \ 248 id INTEGER NOT NULL , \ 249 tag VARCHAR,title VARCHAR NOT NULL , \ 250 subtitle VARCHAR, \ 251 abstract VARCHAR, \ 252 description VARCHAR, \ 253 PRIMARY KEY (xid_conference,id))"); 243 254 244 255 query.exec("CREATE TABLE EVENT_PERSON ( \
Note: See TracChangeset
for help on using the changeset viewer.