~ubuntu-branches/ubuntu/quantal/kdepim/quantal

« back to all changes in this revision

Viewing changes to kmail/identitylistview.cpp

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2011-12-15 14:17:51 UTC
  • mto: This revision was merged to the branch mainline in revision 193.
  • Revision ID: package-import@ubuntu.com-20111215141751-bmhdpiwl23wd9w26
Tags: upstream-4.7.90
ImportĀ upstreamĀ versionĀ 4.7.90

Show diffs side-by-side

added added

removed removed

Lines of Context:
128
128
    setColumnWidth( 0, 175 );
129
129
 
130
130
    setContextMenuPolicy( Qt::CustomContextMenu );
131
 
    connect( this, SIGNAL( customContextMenuRequested( const QPoint& ) ),
132
 
             this, SLOT( slotCustomContextMenuRequested( const QPoint& ) ) );
 
131
    connect( this, SIGNAL(customContextMenuRequested(QPoint)),
 
132
             this, SLOT(slotCustomContextMenuRequested(QPoint)) );
133
133
  }
134
134
 
135
135
  void IdentityListView::editItem( QTreeWidgetItem *item, int column )
154
154
  {
155
155
    kDebug() << "after editing";
156
156
 
157
 
    if ( selectedItems().size() > 0 ) {
 
157
    if ( !selectedItems().isEmpty() ) {
158
158
      IdentityListViewItem *item = dynamic_cast<IdentityListViewItem*>( selectedItems()[0] );
159
159
 
160
160
      QLineEdit *edit = dynamic_cast<QLineEdit*>( editor ); // krazy:exclude=qclasses