Changeset 44:e087b878bc49 in SMSSender for src/ui/models/accountmodel.cpp
- Timestamp:
- Jan 28, 2010 3:54:36 PM (12 years ago)
- Branch:
- 3.0
- Convert:
- svn:3639001d-8e34-449c-bb86-3782b86c4877/branches/3.0@43
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/ui/models/accountmodel.cpp
r43 r44 7 7 { 8 8 connect(BCAccountManager::instance(), SIGNAL(accountAdded(IAccount*)), 9 this, SLOT(account DataChanged(IAccount*)));9 this, SLOT(accountUpdated(IAccount*))); 10 10 connect(BCAccountManager::instance(), SIGNAL(accountDataChanged(IAccount*)), 11 this, SLOT(account DataChanged(IAccount*)));11 this, SLOT(accountUpdated(IAccount*))); 12 12 connect(BCAccountManager::instance(), SIGNAL(accountRemoved(IAccount*)), 13 this, SLOT(account DataChanged(IAccount*)));13 this, SLOT(accountUpdated(IAccount*))); 14 14 } 15 15 AccountModel::~AccountModel() { 16 16 disconnect(BCAccountManager::instance(), SIGNAL(accountAdded(IAccount*)), 17 this, SLOT(account DataChanged(IAccount*)));17 this, SLOT(accountUpdated(IAccount*))); 18 18 disconnect(BCAccountManager::instance(), SIGNAL(accountDataChanged(IAccount*)), 19 this, SLOT(account DataChanged(IAccount*)));19 this, SLOT(accountUpdated(IAccount*))); 20 20 disconnect(BCAccountManager::instance(), SIGNAL(accountRemoved(IAccount*)), 21 this, SLOT(account DataChanged(IAccount*)));21 this, SLOT(accountUpdated(IAccount*))); 22 22 } 23 23 … … 27 27 QModelIndex idx_start = index(row, 0); 28 28 QModelIndex idx_end = index(row, COL_COUNT); 29 emit dataChanged(idx_start, idx_end); 29 30 if (idx_start.isValid() && idx_end.isValid()) { 31 emit dataChanged(idx_start, idx_end); 32 } else { 33 reset(); 34 } 30 35 } 31 36
Note: See TracChangeset
for help on using the changeset viewer.