Diff of /trunk/extragear/base/polkit-kde-1/agent/AuthDialog.cpp
Parent Directory
|
Revision Log
|
Patch
| 216 |
} |
} |
| 217 |
|
|
| 218 |
QStandardItem *item = new QStandardItem(display); |
QStandardItem *item = new QStandardItem(display); |
| 219 |
item->setData(qVariantFromValue<PolkitQt1::Identity *> (identity), Qt::UserRole); |
item->setData(qVariantFromValue<QString> (identity->toString()), Qt::UserRole); |
| 220 |
|
|
| 221 |
// load user icon face |
// load user icon face |
| 222 |
if (!user.faceIconPath().isEmpty()) { |
if (!user.faceIconPath().isEmpty()) { |
| 236 |
|
|
| 237 |
PolkitQt1::Identity *AuthDialog::adminUserSelected() |
PolkitQt1::Identity *AuthDialog::adminUserSelected() |
| 238 |
{ |
{ |
| 239 |
return qVariantValue<PolkitQt1::Identity *> (m_userModelSIM->data( |
return PolkitQt1::Identity::fromString(qVariantValue<QString> ( |
| 240 |
m_userModelSIM->index(userCB->currentIndex(), 0), Qt::UserRole)); |
m_userModelSIM->item(userCB->currentIndex())->data(Qt::UserRole))); |
| 241 |
} |
} |
| 242 |
|
|
| 243 |
void AuthDialog::on_userCB_currentIndexChanged(int /*index*/) |
void AuthDialog::on_userCB_currentIndexChanged(int /*index*/) |
|
|
Legend:
| Removed lines/characters |
|
| Changed lines/characters |
| |
Added lines/characters |
|
|