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

« back to all changes in this revision

Viewing changes to kmail/newidentitydialog.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:
62
62
  l->setBuddy( mLineEdit );
63
63
  hlay->addWidget( l );
64
64
  hlay->addWidget( mLineEdit, 1 );
65
 
  connect( mLineEdit, SIGNAL(textChanged(const QString&)),
66
 
           this, SLOT(slotEnableOK(const QString&)) );
 
65
  connect( mLineEdit, SIGNAL(textChanged(QString)),
 
66
           this, SLOT(slotEnableOK(QString)) );
67
67
 
68
68
  mButtonGroup = new QButtonGroup( page );
69
69
 
110
110
 
111
111
NewIdentityDialog::DuplicateMode NewIdentityDialog::duplicateMode() const
112
112
{
113
 
  int id = mButtonGroup->checkedId();
 
113
  const int id = mButtonGroup->checkedId();
114
114
  assert( id == (int)Empty
115
115
          || id == (int)ControlCenter
116
116
          || id == (int)ExistingEntry );
120
120
void NewIdentityDialog::slotEnableOK( const QString & proposedIdentityName )
121
121
{
122
122
  // OK button is disabled if
123
 
  QString name = proposedIdentityName.trimmed();
 
123
  const QString name = proposedIdentityName.trimmed();
124
124
  // name isn't empty
125
125
  if ( name.isEmpty() ) {
126
126
    enableButtonOk( false );