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)
virtual int heightForWidth(int w) const
bool isHidden() const
int width() const
A problem with the user name as entered.
Definition: kpassworddialog.h:104
int combinedLayoutSpacing(QFlags< QSizePolicy::ControlType > controls1, QFlags< QSizePolicy::ControlType > controls2, Qt::Orientation orientation, QStyleOption *option, QWidget *widget) const
QStyle * style() const
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
virtual QWidget * widget()
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
const_iterator constFind(const Key &key) const
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
void adjustSize()
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
void setWindowIcon(const QIcon &icon)
int width() const
If this flag is set, there will be an additional line to let the user enter the domain.
Definition: kpassworddialog.h:88
void setBold(bool enable)
QList< Key > keys() const
void setMinimumSize(const QSize &)
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 setFocus()
void setUsernameReadOnly(bool readOnly)
Sets the username field read-only and sets the focus to the password field.
Definition: kpassworddialog.cpp:321
void setTabOrder(QWidget *first, QWidget *second)
bool isEmpty() const
const_iterator constEnd() const
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
iterator begin()
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
const QFont & font() const
void setDefaultButton(ButtonCode id)
Sets the button that will be activated when the Enter key is pressed.
Definition: kdialog.cpp:287
sizeHint
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
int width() const
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
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
void setKnownLogins(const QMap< QString, QString > &knownLogins)
Presets a number of login+password pairs that the user can choose from.
Definition: kpassworddialog.cpp:330
int count(const Key &key) const
void setWordWrap(bool on)
KPasswordDialog(QWidget *parent=0L, const KPasswordDialogFlags &flags=0, const KDialog::ButtonCodes otherButtons=0)
create a password dialog
Definition: kpassworddialog.cpp:65
const T value(const Key &key) const
singleShot
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:24:00 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:24:00 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.