Source Code (Use browser search to find items of interest.)
Class Index
abbrowser'NewFieldDialog (./kdepim/abbrowser/entryeditorwidget.h:152)
class NewFieldDialog : public QDialog
{
Q_OBJECT
public:
/*
* Constructs a new NewFieldDialog dialog.
*/
NewFieldDialog( QWidget *parent, bool modal = false );
/*
* The name of the new name/value pair.
*/
QString field() const;
/*
* The value of the new name/value pair.
*/
QString value() const;
private:
QLineEdit *leField;
QLineEdit *leValue;
};
abbrowser'NewFieldDialog::NewFieldDialog() (./kdepim/abbrowser/entryeditorwidget.cpp:945)
NewFieldDialog::NewFieldDialog( QWidget *parent, bool modal = false )
: QDialog( parent, "", modal )
{
setCaption( "Create Custom Field" );
QGridLayout *hbl = new QGridLayout( this, 3, 2, 10 );
hbl->setSpacing( 5 );
QLabel *lField = new QLabel( i18n( "Field name" ), this );
hbl->addWidget( lField, 0, 0 );
lField->setAlignment( QLabel::AlignTop | QLabel::AlignLeft );
leField = new QLineEdit( this );
hbl->addWidget( leField, 0, 1 );
QLabel *lValue = new QLabel( i18n( "Value" ), this );
hbl->addWidget( lValue, 1, 0 );
lValue->setAlignment( QLabel::AlignTop | QLabel::AlignLeft );
leValue = new QLineEdit( this );
hbl->addWidget( leValue, 1, 1 );
QHBox *tf = new QHBox( this );
tf->setSpacing( 10 );
QPushButton *pbOk = new QPushButton( i18n("OK"), tf );
QPushButton *pbCancel = new QPushButton( i18n("Cancel"), tf );
hbl->addMultiCellWidget( tf, 2, 2, 0, 1, QGridLayout::AlignRight );
hbl->activate();
setMinimumSize( sizeHint() );
resize( sizeHint() );
setMaximumHeight( height() );
connect( pbOk, SIGNAL( clicked() ), this, SLOT( accept() ));
connect( pbCancel, SIGNAL( clicked()), this, SLOT( reject() ));
};
abbrowser'NewFieldDialog::field() (./kdepim/abbrowser/entryeditorwidget.cpp:980)
QString NewFieldDialog::field() const
{
return "X-CUSTOM-" + leField->text();
}
abbrowser'NewFieldDialog::value() (./kdepim/abbrowser/entryeditorwidget.cpp:985)
QString NewFieldDialog::value() const
{
return leValue->text();
}