Commit b6b2d04d authored by Ingo Klöcker's avatar Ingo Klöcker
Browse files

Make card information also selectable by keyboard

Re-order the labels for correct tab order.

GnuPG-bug-id: 4876
parent fa20a4de
Pipeline #62573 passed with stage
in 13 minutes and 28 seconds
......@@ -44,8 +44,8 @@ using namespace Kleo::SmartCard;
P15CardWidget::P15CardWidget(QWidget *parent)
: QWidget{parent}
, mSerialNumber{new QLabel{this}}
, mVersionLabel{new QLabel{this}}
, mSerialNumber{new QLabel{this}}
, mStatusLabel{new QLabel{this}}
, mOpenPGPKeysSection{new QWidget{this}}
, mOpenPGPKeysWidget{new OpenPGPKeyCardWidget{this}}
......@@ -70,11 +70,11 @@ P15CardWidget::P15CardWidget(QWidget *parent)
// Version and Serialnumber
cardInfoGrid->addWidget(mVersionLabel, row++, 0, 1, 2);
mVersionLabel->setTextInteractionFlags(Qt::TextBrowserInteraction);
mVersionLabel->setTextInteractionFlags(Qt::TextBrowserInteraction | Qt::TextSelectableByKeyboard);
cardInfoGrid->addWidget(new QLabel(i18n("Serial number:")), row, 0);
cardInfoGrid->addWidget(mSerialNumber, row++, 1);
mSerialNumber->setTextInteractionFlags(Qt::TextBrowserInteraction);
mSerialNumber->setTextInteractionFlags(Qt::TextBrowserInteraction | Qt::TextSelectableByKeyboard);
cardInfoGrid->setColumnStretch(cardInfoGrid->columnCount(), 1);
}
......
......@@ -37,8 +37,8 @@ private:
private:
std::string mCardSerialNumber;
QLabel *mSerialNumber = nullptr;
QLabel *mVersionLabel = nullptr;
QLabel *mSerialNumber = nullptr;
QLabel *mStatusLabel = nullptr;
QWidget *mOpenPGPKeysSection = nullptr;
OpenPGPKeyCardWidget *mOpenPGPKeysWidget = nullptr;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment