diff --git a/AuthDialog.h b/AuthDialog.h --- a/AuthDialog.h +++ b/AuthDialog.h @@ -86,7 +86,6 @@ private slots: void openUrl(const QString&); - void openAction(const QString&); }; #endif // AUTHDIALOG_H diff --git a/AuthDialog.cpp b/AuthDialog.cpp --- a/AuthDialog.cpp +++ b/AuthDialog.cpp @@ -339,9 +339,7 @@ } action_label->setText(actionDescription.description()); - - action_label->setTipText(i18n("Click to edit %1", actionDescription.actionId())); - action_label->setUrl(actionDescription.actionId()); + action_id_label->setText(actionDescription.actionId()); QString vendor = actionDescription.vendorName(); QString vendorUrl = actionDescription.vendorUrl(); @@ -360,16 +358,9 @@ } connect(vendorUL, SIGNAL(leftClickedUrl(QString)), SLOT(openUrl(QString))); - connect(action_label, SIGNAL(leftClickedUrl(QString)), SLOT(openAction(QString))); } void AuthDetails::openUrl(const QString& url) { QDesktopServices::openUrl(QUrl(url)); } - -void AuthDetails::openAction(const QString &url) -{ - // FIXME what's this? :) - QProcess::startDetached("polkit-kde-authorization", QStringList() << url); -} diff --git a/authdetails.ui b/authdetails.ui --- a/authdetails.ui +++ b/authdetails.ui @@ -1,82 +1,90 @@ - + + AuthDetails - - + + 0 0 273 - 80 + 111 - - + + 0 0 - - - - - Application: + + + + + Action: - - - + + + Action: - - - - Vendor: + + + + Qt::Horizontal - - - + + + Vendor: - + - + true - - - - Action: - - - - - - true + + + + Vendor: - - - - Qt::Horizontal + + + + Application: - - - + + + Application: + + + + IBeamCursor + + + Action ID: + + + Qt::TextSelectableByMouse + + +