~ubuntu-branches/ubuntu/jaunty/quassel/jaunty-backports

« back to all changes in this revision

Viewing changes to src/client/networkmodel.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Scott Kitterman
  • Date: 2009-02-06 08:15:36 UTC
  • mfrom: (1.1.12 upstream)
  • Revision ID: james.westby@ubuntu.com-20090206081536-w43riu692dxjjpl2
Tags: 0.4.0~git090206-0ubuntu1
* New upstream git snapshot
  - Added toolbar to u/i (initial drop - still more work to do)
  - Add more post KDE 4.2 oxygen icons
  - Redesigned web preview to hog fewer resources
  - Continued bug fixing
* Add new icons to debian/quassel-data.install
* Remove scalable Oxygen icons from the binary (not used and saves space)
* Build with full debugging enabled
* Explicitly set -DEMBED_DATA=off instead of just unsetting it (clearer)

Show diffs side-by-side

added added

removed removed

Lines of Context:
331
331
 
332
332
QVariant QueryBufferItem::data(int column, int role) const {
333
333
  switch(role) {
 
334
  case Qt::EditRole:
 
335
    return BufferItem::data(column, Qt::DisplayRole);
334
336
  case NetworkModel::IrcUserRole:
335
337
    return QVariant::fromValue<QObject *>(_ircUser);
336
338
  case NetworkModel::UserAwayRole:
958
960
  return _bufferItemCache[bufferId]->lastSeenMarkerMsgId();
959
961
}
960
962
 
 
963
MsgId NetworkModel::lastSeenMsgId(const BufferId &bufferId) {
 
964
  BufferItem *bufferItem = findBufferItem(bufferId);
 
965
  if(!bufferItem) {
 
966
    qDebug() << "NetworkModel::lastSeenMsgId(): buffer is unknown:" << bufferId;
 
967
    return MsgId();
 
968
  }
 
969
  return bufferItem->lastSeenMsgId();
 
970
}
 
971
 
961
972
void NetworkModel::setLastSeenMsgId(const BufferId &bufferId, const MsgId &msgId) {
962
973
  BufferItem *bufferItem = findBufferItem(bufferId);
963
974
  if(!bufferItem) {