~ubuntu-branches/ubuntu/lucid/kmess/lucid

« back to all changes in this revision

Viewing changes to src/kmessview.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Mark Purcell
  • Date: 2009-12-05 21:19:26 UTC
  • mfrom: (1.1.7 upstream) (0.1.8 sid)
  • Revision ID: james.westby@ubuntu.com-20091205211926-r26u8j38kysf6o2p
Tags: 2.0.2-1
* New upstream release 
  - Fixes friendly names (LP: #485640)
* Update Homepage: http://kmess.org
* Add Build-Depends: libphonon-dev | libqt4-phonon-dev (ubuntu friendly)
* kmess.1 fix lintian:hyphen-used-as-minus-sign

Show diffs side-by-side

added added

removed removed

Lines of Context:
121
121
  delete contactCopyMapper_;
122
122
  delete contactMoveMapper_;
123
123
 
 
124
  delete selectionModel_;
 
125
  delete viewModel_;
 
126
  selectionModel_ = 0;
 
127
  viewModel_ = 0;
 
128
  
124
129
#ifdef KMESSDEBUG_KMESSVIEW_GENERAL
125
130
  kDebug() << "DESTROYED.";
126
131
#endif
384
389
  updateTimer_.stop();
385
390
 
386
391
  contactListView_->setModel( 0 );
387
 
 
388
 
  delete selectionModel_;
389
 
  delete viewModel_;
390
 
  selectionModel_ = 0;
391
 
  viewModel_ = 0;
392
392
}
393
393
 
394
394
 
699
699
  moveGroupDown_ = new KAction( KIcon("arrow-down"),  i18n("Move Group &Down"), this );
700
700
  moveGroupUp_   = new KAction( KIcon("arrow-up"),    i18n("Move Group &Up"),   this );
701
701
  removeGroup_   = new KAction( KIcon("edit-delete"), i18n("Re&move Group"),    this );
702
 
  renameGroup_   = new KAction( KIcon("edit"),        i18n("Re&name Group"),    this );
 
702
  renameGroup_   = new KAction( KIcon("edit-rename"), i18n("Re&name Group"),    this );
703
703
 
704
704
  // Connect the actions
705
705
  connect( moveGroupDown_, SIGNAL(activated()),   this,  SLOT(     slotMoveGroupDown()) );
784
784
// A group was expanded or collapsed
785
785
void KMessView::slotGroupChanged( const QModelIndex &index )
786
786
{
 
787
  Q_ASSERT( viewModel_ != 0 );
 
788
 
787
789
  // When searching, the expanded status of the groups is altered, but the settings
788
790
  // should not be applied to the actual groups
789
791
  if( ! viewModel_->filterRegExp().isEmpty() )
2002
2004
// Update the expanded status of the list groups
2003
2005
void KMessView::slotUpdateGroups()
2004
2006
{
 
2007
  Q_ASSERT( viewModel_ != 0 );
 
2008
 
2005
2009
  // When searching, the expanded status of the groups is altered, but the settings
2006
2010
  // should not be applied to the actual groups
2007
2011
  if( ! viewModel_->filterRegExp().isEmpty() )