Ignore:
Timestamp:
09/24/13 23:14:58 (9 years ago)
Author:
Philipp Spitzer <philipp@…>
Branches:
master, qt5
Children:
54b69e2
Parents:
d942dc3
Message:

Now the application compiles for QT5.

Note that the location of the database in Linux has changed from
~/.local/share/data/Toastfreeware/ConfClerk
to
~/.local/share/Toastfreeware/ConfClerk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mvc/eventmodel.cpp

    rd942dc3 r4b6ae6b  
    4545void EventModel::createTimeGroups()
    4646{
     47    beginResetModel();
     48
    4749    mGroups.clear();
    4850    mParents.clear();
     
    9193    mGroups.last().setTitle(mEvents);
    9294
    93     reset();
     95    endResetModel();
    9496}
    9597
     
    175177    if (!parent.isValid())
    176178    {
    177         return createIndex(row, column, 0);
     179        return createIndex(row, column, (quintptr) 0);
    178180    }
    179181    else if (parent.internalId() == 0)
     
    200202        Event * event = static_cast<Event*>(index.internalPointer());
    201203
    202         return createIndex(mParents[event->id()], 0, 0);
     204        return createIndex(mParents[event->id()], 0, (quintptr) 0);
    203205    }
    204206
     
    229231void EventModel::clearModel()
    230232{
     233    beginResetModel();
    231234    mGroups.clear();
    232235    mEvents.clear();
    233236    mParents.clear();
    234 
    235     reset();
     237    endResetModel();
    236238}
    237239
Note: See TracChangeset for help on using the changeset viewer.