~ubuntu-branches/ubuntu/trusty/kdepimlibs/trusty-proposed

« back to all changes in this revision

Viewing changes to akonadi/contact/editor/nameeditwidget.cpp

  • Committer: Package Import Robot
  • Author(s): Rohan Garg
  • Date: 2014-03-04 20:42:13 UTC
  • mfrom: (1.1.108)
  • Revision ID: package-import@ubuntu.com-20140304204213-798awk5jmwtjcvg5
Tags: 4:4.12.3-0ubuntu1
New upstream bugfix release

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
  setFocusProxy( mNameEdit );
45
45
  setFocusPolicy( Qt::StrongFocus );
46
46
 
47
 
  QToolButton *button = new QToolButton;
48
 
  button->setText( i18n( "..." ) );
49
 
  layout->addWidget( button );
 
47
  mButtonEdit = new QToolButton;
 
48
  mButtonEdit->setText(i18n("..."));
 
49
  layout->addWidget(mButtonEdit);
 
50
 
50
51
 
51
52
  connect( mNameEdit, SIGNAL(textChanged(QString)), this, SLOT(textChanged(QString)) );
52
 
  connect( button, SIGNAL(clicked()), this, SLOT(openNameEditDialog()) );
 
53
  connect( mButtonEdit, SIGNAL(clicked()), this, SLOT(openNameEditDialog()) );
53
54
}
54
55
 
55
56
NameEditWidget::~NameEditWidget()
59
60
void NameEditWidget::setReadOnly( bool readOnly )
60
61
{
61
62
  mNameEdit->setReadOnly( readOnly );
 
63
  mButtonEdit->setEnabled(!readOnly);
62
64
}
63
65
 
64
66
void NameEditWidget::loadContact( const KABC::Addressee &contact )