Changeset 67:578192d6fe64 in SMSSender for src/ui/models/loadedaccountmodel.cpp


Ignore:
Timestamp:
Feb 7, 2010 4:11:28 PM (12 years ago)
Author:
Sämy Zehnder <saemy.zehnder@…>
Branch:
3.0
Convert:
svn:3639001d-8e34-449c-bb86-3782b86c4877/branches/3.0@66
Message:
  • added synchttp
  • backup before removing these diamond interfaces...
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/ui/models/loadedaccountmodel.cpp

    r57 r67  
    88#include "loadedaccountmodel.h"
    99
    10 LoadedAccountModel::LoadedAccountModel() {
    11     // TODO Auto-generated constructor stub
     10#include "accounttreemodel.h"
    1211
     12bool LoadedAccountModel::filterAcceptsRow(int source_row, const QModelIndex& source_parent) const {
     13    AccountTreeModel* srcModel = static_cast<AccountTreeModel*>(sourceModel());
     14    const QModelIndex& idx     = srcModel->index(source_row, 0, source_parent);
     15    if (idx.isValid()) {
     16        IAccount* account          = srcModel->dataObject(idx);
     17
     18        return (account != NULL) && account->isInitialized() && account->isEnabled();
     19    } else
     20        return false;
    1321}
    14 
    15 LoadedAccountModel::~LoadedAccountModel() {
    16     // TODO Auto-generated destructor stub
    17 }
Note: See TracChangeset for help on using the changeset viewer.