KDEUI
kpassworddialog.cpp
Go to the documentation of this file.
226 d->ui.formLayout->getContentsMargins(&gridMarginLeft, &gridMarginTop, &gridMarginRight, &gridMarginBottom);
231 spacing = style()->combinedLayoutSpacing(QSizePolicy::Label, QSizePolicy::LineEdit, Qt::Horizontal, 0, this);
257 int w = sizeHint().width() - firstColumnWidth - ( 2 * marginHint() ) - gridMarginLeft - gridMarginRight - spacing;
308 d->ui.prompt->setMinimumHeight( d->ui.prompt->heightForWidth( width() - ( 2 * marginHint() ) ) );
If this flag is set, the Anonymous Login checkbox will be displayed.
Definition: kpassworddialog.h:83
static int marginHint()
Returns the number of pixels that should be used between a dialog edge and the outermost widget(s) ac...
Definition: kdialog.cpp:427
QString i18n(const char *text)
A problem with the user name as entered.
Definition: kpassworddialog.h:104
bool keepPassword() const
Determines whether supplied authorization should persist even after the application has been closed...
Definition: kpassworddialog.cpp:217
Show Cancel-button. (this button reject()s the dialog; result set to QDialog::Rejected) ...
Definition: kdialog.h:144
QString label(StandardShortcut id)
Returns a localized label for user-visible display.
Definition: kstandardshortcut.cpp:267
If this flag is set, the login lineedit will be in read only mode.
Definition: kpassworddialog.h:78
void setKeepPassword(bool b)
Check or uncheck the "keep password" checkbox.
Definition: kpassworddialog.cpp:212
static QRect desktopGeometry(const QPoint &point)
This function returns the desktop geometry for an application that needs to set the geometry of a wid...
Definition: kglobalsettings.cpp:732
void showErrorMessage(const QString &message, const ErrorType type=PasswordError)
Shows an error message in the dialog box.
Definition: kpassworddialog.cpp:264
If this flag is set, the "keep this password" checkbox will been shown, otherwise, it will not be shown and keepPassword will have no effect.
Definition: kpassworddialog.h:69
QString password() const
Returns the password entered by the user.
Definition: kpassworddialog.cpp:177
virtual void setCaption(const QString &caption)
Make a KDE compliant caption.
Definition: kdialog.cpp:469
If this flag is set, there will be an additional line to let the user enter the domain.
Definition: kpassworddialog.h:88
Error preventing further attempts, will result in disabling most of the interface.
Definition: kpassworddialog.h:114
If this flag is set, the domain lineedit will be in read only mode.
Definition: kpassworddialog.h:93
void setUsernameReadOnly(bool readOnly)
Sets the username field read-only and sets the focus to the password field.
Definition: kpassworddialog.cpp:321
QString username() const
Returns the username entered by the user.
Definition: kpassworddialog.cpp:172
void addCommentLine(const QString &label, const QString &comment)
Adds a comment line to the dialog.
Definition: kpassworddialog.cpp:222
void setPixmap(const QPixmap &)
set an image that appears next to the prompt.
Definition: kpassworddialog.cpp:136
void setButtons(ButtonCodes buttonMask)
Creates (or recreates) the button box and all the buttons in it.
Definition: kdialog.cpp:206
friend class KPasswordDialogPrivate
Definition: kpassworddialog.h:304
If this flag is set, there will be an additional line to let the user enter his login.
Definition: kpassworddialog.h:74
Show Ok button. (this button accept()s the dialog; result set to QDialog::Accepted) ...
Definition: kdialog.h:141
void setDefaultButton(ButtonCode id)
Sets the button that will be activated when the Enter key is pressed.
Definition: kdialog.cpp:287
void setAnonymousMode(bool anonymous)
set anonymous mode (all other fields will be grayed out)
Definition: kpassworddialog.cpp:192
A dialog for requesting a password and optionaly a login from the end user.
Definition: kpassworddialog.h:56
void enableButton(ButtonCode id, bool state)
Enable or disable (gray out) a general action button.
Definition: kdialog.cpp:661
void setPrompt(const QString &prompt)
Sets the prompt to show to the user.
Definition: kpassworddialog.cpp:304
virtual bool checkPassword()
Virtual function that can be overridden to provide password checking in derived classes.
Definition: kpassworddialog.cpp:411
void setKnownLogins(const QMap< QString, QString > &knownLogins)
Presets a number of login+password pairs that the user can choose from.
Definition: kpassworddialog.cpp:330
KPasswordDialog(QWidget *parent=0L, const KPasswordDialogFlags &flags=0, const KDialog::ButtonCodes otherButtons=0)
create a password dialog
Definition: kpassworddialog.cpp:65
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:49:15 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:49:15 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.