Changeset cf385cd


Ignore:
Timestamp:
06/28/11 23:31:33 (10 years ago)
Author:
Philipp Spitzer <philipp@…>
Branches:
master, qt5
Children:
bdeb1ff
Parents:
0145b04
Message:

Removed many of the qDebug() output lines (see ticket #10).

Location:
src
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • src/gui/conferenceeditor.cpp

    r0145b04 rcf385cd  
    199199void ConferenceEditor::importFinished(const QString& title)
    200200{
    201     qDebug() << __PRETTY_FUNCTION__ << title;
    202201    addBtn->show();
    203202    // removeItem should be shown later, but it takes some time,
  • src/gui/daynavigatorwidget.cpp

    r0145b04 rcf385cd  
    4343    Q_ASSERT(aStartDate<=aEndDate);
    4444
    45     //qDebug() << "DayNavigatorWidget::setDates(): " << aStartDate << ", " << aEndDate;
    4645    mStartDate = aStartDate;
    4746    mEndDate = aEndDate;
     
    6766void DayNavigatorWidget::prevDayButtonClicked()
    6867{
    69     //qDebug() << mStartDate << ":" << mCurDate << ":" << mEndDate;
    7068    if(mCurDate>mStartDate)
    7169    {
     
    8987void DayNavigatorWidget::nextDayButtonClicked()
    9088{
    91     //qDebug() << mStartDate << ":" << mCurDate << ":" << mEndDate;
    9289    if(mCurDate<mEndDate)
    9390    {
  • src/gui/eventdialog.cpp

    r0145b04 rcf385cd  
    8787    }
    8888
    89     qDebug() << " FAVOURITE [" << event.id() << "] -> " << event.isFavourite();
    90 
    9189    // have to emit 'eventHasChanged' signal on all events in conflict
    9290    for(int i=0; i<conflicts.count(); i++)
     
    121119        Alarm alarm;
    122120        int cookie = alarm.addAlarm(event.id(),QDateTime::currentDateTime().addSecs(10));
    123         qDebug() << "cookie: " << cookie;
    124121#endif /* MAEMO */
    125122    }
    126123    event.update("alarm");
    127     qDebug() << " ALARM [" << event.id() << "] -> " << event.hasAlarm();
    128124    // since the Alarm icon has changed, update TreeView accordingly
    129125    // all TreeViews have to listen on this signal
  • src/gui/mainwindow.cpp

    r0145b04 rcf385cd  
    7070        AppSettings::setDirectConnection(true);
    7171
     72    /*
    7273    if(AppSettings::isDirectConnection())
    7374    {
    7475        qDebug() << "Setting-up proxy: " << AppSettings::proxyAddress() << ":" << AppSettings::proxyPort();
    7576    }
     77    */
    7678    QNetworkProxy proxy(
    7779            AppSettings::isDirectConnection() ? QNetworkProxy::NoProxy : QNetworkProxy::HttpProxy,
     
    222224    dialog.exec();
    223225
    224     qDebug() << "Setting-up proxy: " << AppSettings::proxyAddress() << ":" << AppSettings::proxyPort();
    225226    QNetworkProxy proxy(
    226227            AppSettings::isDirectConnection() ? QNetworkProxy::NoProxy : QNetworkProxy::HttpProxy,
     
    279280    else
    280281    {
    281         qDebug() << __PRETTY_FUNCTION__ << ": have data";
    282282        importData(aReply->readAll(), aReply->url().toEncoded());
    283283    }
     
    291291void MainWindow::importFromNetwork(const QString& url)
    292292{
    293     qDebug() << __PRETTY_FUNCTION__;
    294293    QNetworkRequest request;
    295294    request.setUrl(QUrl(url));
     
    301300void MainWindow::importFromFile(const QString& filename)
    302301{
    303     qDebug() << __PRETTY_FUNCTION__;
    304302    QFile file(filename);
    305303    if (!file.open(QIODevice::ReadOnly | QIODevice::Text)) {   
  • src/gui/searchhead.cpp

    r0145b04 rcf385cd  
    4141void SearchHead::searchButtonClicked()
    4242{
    43     // qDebug() << "SearchHead::searchButtonClicked()";
    4443    emit( searchClicked() );
    4544}
  • src/mvc/eventmodel.cpp

    r0145b04 rcf385cd  
    201201void EventModel::clearModel()
    202202{
    203     // qDebug() << __PRETTY_FUNCTION__ << this << mEvents.count();
    204203    mGroups.clear();
    205204    mEvents.clear();
     
    215214    if(Conference::getAll().count())
    216215    {
    217         qDebug() << "Loading Conference Data: [" << Conference::getById(aConferenceId).title() << "] " << aDate;
    218216        mEvents = Event::getByDate(QDate(aDate.year(), aDate.month(), aDate.day()), aConferenceId, "start");
    219217    }
     
    227225    if(Conference::getAll().count())
    228226    {
    229         qDebug() << "Loading FAV Conference Data: [" << Conference::getById(aConferenceId).title() << "] " << aDate;
    230227        mEvents = Event::getFavByDate(QDate(aDate.year(), aDate.month(), aDate.day()), aConferenceId);
    231228    }
     
    239236    if(Conference::getAll().count())
    240237    {
    241         // qDebug() << "Loading search result Data: [" << Conference::getById(aConferenceId).title() << "] " << aDate;
    242238        try{
    243239            mEvents = Event::getSearchResultByDate(QDate(aDate.year(), aDate.month(), aDate.day()), aConferenceId, "start");
     
    262258    if (Conference::getAll().count())
    263259    {
    264         qDebug() << "Loading Conference Data (by Track): [" << Conference::getById(aConferenceId).title() << "] " << aDate;
    265260        mEvents = Event::getByDate(QDate(aDate.year(), aDate.month(), aDate.day()), aConferenceId, "xid_track, start");
    266261    }
     
    273268    if (Conference::getAll().count())
    274269    {
    275         qDebug() << "Loading Conference Data (by Room): [" << Conference::getById(aConferenceId).title() << "] " << aDate;
    276270        mEvents = Event::getByDateAndRoom(QDate(aDate.year(), aDate.month(), aDate.day()), aConferenceId);
    277271    }
     
    285279    if(Conference::getAll().count())
    286280    {
    287         qDebug() << "Loading Conference Data: [" << Conference::getById(aConferenceId).title() << "] scheduled NOW";
    288281        mEvents = Event::nowEvents(aConferenceId, "start");
    289282    }
     
    297290    if(Conference::getAll().count())
    298291    {
    299         qDebug() << "Loading Conference Data: [" << Conference::getById(aConferenceId).title() << "] in conflict with " << aEventId;
    300292        mEvents = Event::conflictEvents(aEventId, aConferenceId);
    301293    }
  • src/mvc/treeview.cpp

    r0145b04 rcf385cd  
    7777                event.update("favourite");
    7878
    79                 qDebug() << " FAVOURITE [" << qVariantValue<QString>(aIndex.data()) << "] -> " << event.isFavourite();
    80 
    8179                if(event.isFavourite())
    8280                {
     
    119117                    //int cookie = alarm.addAlarm(event.id(),QDateTime::currentDateTime().addSecs(10)); // testing
    120118                    int cookie = alarm.addAlarm(event.id(),event.start().addSecs(-15*60)); // 15 minutes before real start
    121                     qDebug() << "cookie: " << cookie;
    122119#endif /* MAEMO */
    123120                }
    124121                event.update("alarm");
    125                 qDebug() << " ALARM [" << qVariantValue<QString>(aIndex.data()) << "] -> " << event.hasAlarm();
    126122                // since the Alarm icon has changed, update TreeView accordingly
    127123                // all TreeViews have to listen on this signal
     
    133129            {
    134130                // handle Alarm Control clicked
    135                 qDebug() << "MAP CLICKED: " << qVariantValue<QString>(aIndex.data());
    136131                emit(requestForMap(aIndex));
    137132                handled = true;
     
    141136        {
    142137
    143             qDebug() << "WARNING CLICKED: " << qVariantValue<QString>(aIndex.data());
    144138            emit(requestForConflicts(aIndex));
    145139            handled = true;
  • src/orm/ormrecord.h

    r0145b04 rcf385cd  
    152152            throw OrmSqlException(query.lastError().text());
    153153        }
    154         else
    155         {
    156             /*qDebug() << "SQL OK";*/
    157         }
    158154    }
    159155
     
    163159        objects << hydrate(query.record());
    164160    }
    165     /*qDebug() << "Fetch done";*/
    166161    return objects;
    167162}
  • src/sql/sqlengine.cpp

    r0145b04 rcf385cd  
    133133void SqlEngine::addEventToDB(QHash<QString,QString> &aEvent)
    134134{
    135     //LOG_DEBUG(QString("Adding event '%1' to DB").arg(*aEvent));
    136 
    137135    QSqlDatabase db = QSqlDatabase::database();
    138136
     
    148146            track = Track::retrieveByName(conference, name);
    149147            trackId = track.id();
    150             /*qDebug() << QString("DEBUG: Track %1 in DB").arg(name);*/
    151148        }
    152149        catch (OrmNoObjectException &e) {
     
    154151            track.setName(name);
    155152            trackId = track.insert();
    156             /*qDebug() << QString("DEBUG: Track %1 added to DB").arg(name);*/
    157153        }
    158154        QDateTime startDateTime;
    159155        startDateTime.setTimeSpec(Qt::UTC);
    160156        startDateTime = QDateTime(QDate::fromString(aEvent["date"],DATE_FORMAT),QTime::fromString(aEvent["start"],TIME_FORMAT),Qt::UTC);
    161         // qDebug() << "startDateTime: " << startDateTime.toString();
    162157
    163158        bool event_exists = false;
     
    276271        query.bindValue(":room_id", aRoom["id"]);
    277272        if (!query.exec()) qDebug() << "Could not 'execute insert into event_room' query:" << query.lastError();
    278         //LOG_AUTOTEST(query);
    279273    }
    280274}
     
    294288        query.bindValue(":url", aLink["url"]);
    295289        if (!query.exec()) qDebug() << "Error executing 'insert into link' query: " << query.lastError();
    296         //LOG_AUTOTEST(query);
    297290    }
    298291}
     
    388381bool SqlEngine::execQuery(QSqlDatabase &aDatabase, const QString &aQuery)
    389382{
    390     //qDebug() << "\nSQL: " << aQuery;
    391 
    392383    QSqlQuery sqlQuery(aDatabase);
    393384    if( !sqlQuery.exec(aQuery) ){
     
    395386       return false;
    396387    }
    397     else{
    398        //qDebug() << "SQL OK.\n";
    399        return true;
    400     }
     388    return true;
    401389}
    402390
    403391bool SqlEngine::execQueryWithParameter(QSqlDatabase &aDatabase, const QString &aQuery, const QHash<QString, QVariant>& params)
    404392{
    405     qDebug() << "SQL:" << aQuery << "params:" << params;
    406 
    407393    QSqlQuery sqlQuery(aDatabase);
    408394    sqlQuery.prepare(aQuery);
     
    414400       return false;
    415401    }
    416     else{
    417        //qDebug() << "SQL OK.\n";
    418        return true;
    419     }
     402    return true;
    420403}
    421404
Note: See TracChangeset for help on using the changeset viewer.