- Timestamp:
- 06/28/11 23:31:33 (12 years ago)
- Branches:
- master, qt5
- Children:
- bdeb1ff
- Parents:
- 0145b04
- Location:
- src
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
src/gui/conferenceeditor.cpp
r0145b04 rcf385cd 199 199 void ConferenceEditor::importFinished(const QString& title) 200 200 { 201 qDebug() << __PRETTY_FUNCTION__ << title;202 201 addBtn->show(); 203 202 // removeItem should be shown later, but it takes some time, -
src/gui/daynavigatorwidget.cpp
r0145b04 rcf385cd 43 43 Q_ASSERT(aStartDate<=aEndDate); 44 44 45 //qDebug() << "DayNavigatorWidget::setDates(): " << aStartDate << ", " << aEndDate;46 45 mStartDate = aStartDate; 47 46 mEndDate = aEndDate; … … 67 66 void DayNavigatorWidget::prevDayButtonClicked() 68 67 { 69 //qDebug() << mStartDate << ":" << mCurDate << ":" << mEndDate;70 68 if(mCurDate>mStartDate) 71 69 { … … 89 87 void DayNavigatorWidget::nextDayButtonClicked() 90 88 { 91 //qDebug() << mStartDate << ":" << mCurDate << ":" << mEndDate;92 89 if(mCurDate<mEndDate) 93 90 { -
src/gui/eventdialog.cpp
r0145b04 rcf385cd 87 87 } 88 88 89 qDebug() << " FAVOURITE [" << event.id() << "] -> " << event.isFavourite();90 91 89 // have to emit 'eventHasChanged' signal on all events in conflict 92 90 for(int i=0; i<conflicts.count(); i++) … … 121 119 Alarm alarm; 122 120 int cookie = alarm.addAlarm(event.id(),QDateTime::currentDateTime().addSecs(10)); 123 qDebug() << "cookie: " << cookie;124 121 #endif /* MAEMO */ 125 122 } 126 123 event.update("alarm"); 127 qDebug() << " ALARM [" << event.id() << "] -> " << event.hasAlarm();128 124 // since the Alarm icon has changed, update TreeView accordingly 129 125 // all TreeViews have to listen on this signal -
src/gui/mainwindow.cpp
r0145b04 rcf385cd 70 70 AppSettings::setDirectConnection(true); 71 71 72 /* 72 73 if(AppSettings::isDirectConnection()) 73 74 { 74 75 qDebug() << "Setting-up proxy: " << AppSettings::proxyAddress() << ":" << AppSettings::proxyPort(); 75 76 } 77 */ 76 78 QNetworkProxy proxy( 77 79 AppSettings::isDirectConnection() ? QNetworkProxy::NoProxy : QNetworkProxy::HttpProxy, … … 222 224 dialog.exec(); 223 225 224 qDebug() << "Setting-up proxy: " << AppSettings::proxyAddress() << ":" << AppSettings::proxyPort();225 226 QNetworkProxy proxy( 226 227 AppSettings::isDirectConnection() ? QNetworkProxy::NoProxy : QNetworkProxy::HttpProxy, … … 279 280 else 280 281 { 281 qDebug() << __PRETTY_FUNCTION__ << ": have data";282 282 importData(aReply->readAll(), aReply->url().toEncoded()); 283 283 } … … 291 291 void MainWindow::importFromNetwork(const QString& url) 292 292 { 293 qDebug() << __PRETTY_FUNCTION__;294 293 QNetworkRequest request; 295 294 request.setUrl(QUrl(url)); … … 301 300 void MainWindow::importFromFile(const QString& filename) 302 301 { 303 qDebug() << __PRETTY_FUNCTION__;304 302 QFile file(filename); 305 303 if (!file.open(QIODevice::ReadOnly | QIODevice::Text)) { -
src/gui/searchhead.cpp
r0145b04 rcf385cd 41 41 void SearchHead::searchButtonClicked() 42 42 { 43 // qDebug() << "SearchHead::searchButtonClicked()";44 43 emit( searchClicked() ); 45 44 } -
src/mvc/eventmodel.cpp
r0145b04 rcf385cd 201 201 void EventModel::clearModel() 202 202 { 203 // qDebug() << __PRETTY_FUNCTION__ << this << mEvents.count();204 203 mGroups.clear(); 205 204 mEvents.clear(); … … 215 214 if(Conference::getAll().count()) 216 215 { 217 qDebug() << "Loading Conference Data: [" << Conference::getById(aConferenceId).title() << "] " << aDate;218 216 mEvents = Event::getByDate(QDate(aDate.year(), aDate.month(), aDate.day()), aConferenceId, "start"); 219 217 } … … 227 225 if(Conference::getAll().count()) 228 226 { 229 qDebug() << "Loading FAV Conference Data: [" << Conference::getById(aConferenceId).title() << "] " << aDate;230 227 mEvents = Event::getFavByDate(QDate(aDate.year(), aDate.month(), aDate.day()), aConferenceId); 231 228 } … … 239 236 if(Conference::getAll().count()) 240 237 { 241 // qDebug() << "Loading search result Data: [" << Conference::getById(aConferenceId).title() << "] " << aDate;242 238 try{ 243 239 mEvents = Event::getSearchResultByDate(QDate(aDate.year(), aDate.month(), aDate.day()), aConferenceId, "start"); … … 262 258 if (Conference::getAll().count()) 263 259 { 264 qDebug() << "Loading Conference Data (by Track): [" << Conference::getById(aConferenceId).title() << "] " << aDate;265 260 mEvents = Event::getByDate(QDate(aDate.year(), aDate.month(), aDate.day()), aConferenceId, "xid_track, start"); 266 261 } … … 273 268 if (Conference::getAll().count()) 274 269 { 275 qDebug() << "Loading Conference Data (by Room): [" << Conference::getById(aConferenceId).title() << "] " << aDate;276 270 mEvents = Event::getByDateAndRoom(QDate(aDate.year(), aDate.month(), aDate.day()), aConferenceId); 277 271 } … … 285 279 if(Conference::getAll().count()) 286 280 { 287 qDebug() << "Loading Conference Data: [" << Conference::getById(aConferenceId).title() << "] scheduled NOW";288 281 mEvents = Event::nowEvents(aConferenceId, "start"); 289 282 } … … 297 290 if(Conference::getAll().count()) 298 291 { 299 qDebug() << "Loading Conference Data: [" << Conference::getById(aConferenceId).title() << "] in conflict with " << aEventId;300 292 mEvents = Event::conflictEvents(aEventId, aConferenceId); 301 293 } -
src/mvc/treeview.cpp
r0145b04 rcf385cd 77 77 event.update("favourite"); 78 78 79 qDebug() << " FAVOURITE [" << qVariantValue<QString>(aIndex.data()) << "] -> " << event.isFavourite();80 81 79 if(event.isFavourite()) 82 80 { … … 119 117 //int cookie = alarm.addAlarm(event.id(),QDateTime::currentDateTime().addSecs(10)); // testing 120 118 int cookie = alarm.addAlarm(event.id(),event.start().addSecs(-15*60)); // 15 minutes before real start 121 qDebug() << "cookie: " << cookie;122 119 #endif /* MAEMO */ 123 120 } 124 121 event.update("alarm"); 125 qDebug() << " ALARM [" << qVariantValue<QString>(aIndex.data()) << "] -> " << event.hasAlarm();126 122 // since the Alarm icon has changed, update TreeView accordingly 127 123 // all TreeViews have to listen on this signal … … 133 129 { 134 130 // handle Alarm Control clicked 135 qDebug() << "MAP CLICKED: " << qVariantValue<QString>(aIndex.data());136 131 emit(requestForMap(aIndex)); 137 132 handled = true; … … 141 136 { 142 137 143 qDebug() << "WARNING CLICKED: " << qVariantValue<QString>(aIndex.data());144 138 emit(requestForConflicts(aIndex)); 145 139 handled = true; -
src/orm/ormrecord.h
r0145b04 rcf385cd 152 152 throw OrmSqlException(query.lastError().text()); 153 153 } 154 else155 {156 /*qDebug() << "SQL OK";*/157 }158 154 } 159 155 … … 163 159 objects << hydrate(query.record()); 164 160 } 165 /*qDebug() << "Fetch done";*/166 161 return objects; 167 162 } -
src/sql/sqlengine.cpp
r0145b04 rcf385cd 133 133 void SqlEngine::addEventToDB(QHash<QString,QString> &aEvent) 134 134 { 135 //LOG_DEBUG(QString("Adding event '%1' to DB").arg(*aEvent));136 137 135 QSqlDatabase db = QSqlDatabase::database(); 138 136 … … 148 146 track = Track::retrieveByName(conference, name); 149 147 trackId = track.id(); 150 /*qDebug() << QString("DEBUG: Track %1 in DB").arg(name);*/151 148 } 152 149 catch (OrmNoObjectException &e) { … … 154 151 track.setName(name); 155 152 trackId = track.insert(); 156 /*qDebug() << QString("DEBUG: Track %1 added to DB").arg(name);*/157 153 } 158 154 QDateTime startDateTime; 159 155 startDateTime.setTimeSpec(Qt::UTC); 160 156 startDateTime = QDateTime(QDate::fromString(aEvent["date"],DATE_FORMAT),QTime::fromString(aEvent["start"],TIME_FORMAT),Qt::UTC); 161 // qDebug() << "startDateTime: " << startDateTime.toString();162 157 163 158 bool event_exists = false; … … 276 271 query.bindValue(":room_id", aRoom["id"]); 277 272 if (!query.exec()) qDebug() << "Could not 'execute insert into event_room' query:" << query.lastError(); 278 //LOG_AUTOTEST(query);279 273 } 280 274 } … … 294 288 query.bindValue(":url", aLink["url"]); 295 289 if (!query.exec()) qDebug() << "Error executing 'insert into link' query: " << query.lastError(); 296 //LOG_AUTOTEST(query);297 290 } 298 291 } … … 388 381 bool SqlEngine::execQuery(QSqlDatabase &aDatabase, const QString &aQuery) 389 382 { 390 //qDebug() << "\nSQL: " << aQuery;391 392 383 QSqlQuery sqlQuery(aDatabase); 393 384 if( !sqlQuery.exec(aQuery) ){ … … 395 386 return false; 396 387 } 397 else{ 398 //qDebug() << "SQL OK.\n"; 399 return true; 400 } 388 return true; 401 389 } 402 390 403 391 bool SqlEngine::execQueryWithParameter(QSqlDatabase &aDatabase, const QString &aQuery, const QHash<QString, QVariant>& params) 404 392 { 405 qDebug() << "SQL:" << aQuery << "params:" << params;406 407 393 QSqlQuery sqlQuery(aDatabase); 408 394 sqlQuery.prepare(aQuery); … … 414 400 return false; 415 401 } 416 else{ 417 //qDebug() << "SQL OK.\n"; 418 return true; 419 } 402 return true; 420 403 } 421 404
Note: See TracChangeset
for help on using the changeset viewer.