Select a bps user. More...
#include <bpsdialog.h>
Public Member Functions | |
| BpsSelectUserDialog (QWidget *aParent, const QString &aTitle, BpsDatastore *aDatastore) | |
| void | setUserKey (const QVariant &aUserKey) |
| Set the current user key. | |
| QVariant | userKey () const |
Select a bps user.
Example:
BpsSelectUserDialog dlg(this, tr("Select new owner"), ds); BpsSettings s; s.open(bps->userStatusPath()+bStr("/SelectUser"); QRect g = s.value("geometry").toRect(); if (!g.isNull()) dlg.setGeometry(g); dlg.setUserKey(currentUserKey); if (dlg.exec() == QDialog::Accepted && dlg.userKey().isValid()) currentUserKey = dlg.userKey(); s.setValue("geometry", dlg.geometry());
| BpsSelectUserDialog::BpsSelectUserDialog | ( | QWidget * | aParent, |
| const QString & | aTitle, | ||
| BpsDatastore * | aDatastore | ||
| ) |
| aParent | The parent widget. |
| aTitle | The window title. |
| aDatastore | The opened bps datastore. |
| void BpsSelectUserDialog::setUserKey | ( | const QVariant & | aUserKey | ) |
Set the current user key.
Typically you would set the text before calling exec or show.
| aUserKey | The key of the user (t_users.c_key). |
| QVariant BpsSelectUserDialog::userKey | ( | ) | const |