diff --git a/AuthDialog.cpp b/AuthDialog.cpp
--- a/AuthDialog.cpp
+++ b/AuthDialog.cpp
@@ -323,7 +323,15 @@
{
setupUi(this);
- app_label->setText(appname);
+ // better N/A than a blank space
+ if (appname.isEmpty()) {
+ QFont nameFont = app_label->font();
+ nameFont.setItalic(true);
+ app_label->setFont(nameFont);
+ app_label->setText(i18n("Not Applicable"));
+ } else {
+ app_label->setText(appname);
+ }
foreach(const QString &key, details.keys()) { //krazy:exclude=foreach (Details is not a map/hash, but rather a method)
int row = gridLayout->rowCount() + 1;
@@ -333,12 +341,27 @@
"provided by polkit", "%1:", key));
gridLayout->addWidget(keyLabel, row, 0);
+ keyLabel->setAlignment(Qt::AlignRight);
+ QFont lblFont(keyLabel->font());
+ lblFont.setBold(true);
+ keyLabel->setFont(lblFont);
+
QLabel *valueLabel = new QLabel(this);
valueLabel->setText(details.lookup(key));
gridLayout->addWidget(valueLabel, row, 1);
}
- action_label->setText(actionDescription.description());
+ // replace blank description
+ // neither isEmpty() or isNull() worked (?)
+ if (actionDescription.description() == "") {
+ QFont descrFont(action_label->font());
+ descrFont.setItalic(true);
+ action_label->setFont(descrFont);
+ action_label->setText(i18n("Not Applicable"));
+ } else {
+ action_label->setText(actionDescription.description());
+ }
+
action_id_label->setText(actionDescription.actionId());
QString vendor = actionDescription.vendorName();
diff --git a/authdetails.ui b/authdetails.ui
--- a/authdetails.ui
+++ b/authdetails.ui
@@ -19,15 +19,27 @@
-
+
+
+ 75
+ true
+
+
Action:
+
+ Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter
+
-
- Action:
+ <null>
+
+
+ Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop
@@ -38,38 +50,62 @@
- -
+
-
Vendor:
-
+
-
+
+ false
+
+
true
- -
+
-
+
+
+ 75
+ true
+
+
Vendor:
+
+ Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter
+
-
+
+
+ 75
+ true
+
+
Application:
+
+ Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter
+
-
Application:
+
+ Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop
+
-
@@ -85,6 +121,22 @@
+ -
+
+
+
+ 75
+ true
+
+
+
+ Action ID:
+
+
+ Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter
+
+
+