Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions client/dialogs/SignatureDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,22 +128,22 @@ SignatureDialog::SignatureDialog(const DigiDocSignature &signature, QWidget *par
lbl->setFocusPolicy(cnt->text().isEmpty() ? Qt::NoFocus : Qt::TabFocus);
cnt->setFocusPolicy(cnt->text().isEmpty() ? Qt::NoFocus : Qt::TabFocus);
};
setFocus(d->lblSigningCity, d->signerCity);
setFocus(d->lblSigningState, d->signerState);
setFocus(d->lblSigningCountry, d->signerCountry);
setFocus(d->lblSigningZip, d->signerZip);
setFocus(d->lblRole, d->signerRoles);
setFocus(d->labelCity, d->signerCity);
setFocus(d->labelState, d->signerState);
setFocus(d->labelCountry, d->signerCountry);
setFocus(d->labelZip, d->signerZip);
setFocus(d->labelRoles, d->signerRoles);

// Certificate info
QTreeWidget *t = d->signatureView;
t->header()->setSectionResizeMode(0, QHeaderView::Fixed);
t->header()->resizeSection(0, 244);

auto addCert = [this](QTreeWidget *t, const QString &title, const QString &title2, const SslCertificate &cert) {
auto addCert = [this](QTreeWidget *t, const QString &title, const QString &title2, const QSslCertificate &cert) {
if(cert.isNull())
return;
addItem(t, title, cert);
addItem(t, title2, cert.issuerInfo(QSslCertificate::CommonName));
addItem(t, title2, cert.issuerInfo(QSslCertificate::CommonName).join(' '));
};
auto addTime = [this](QTreeWidget *t, const QString &title, const QDateTime &time) {
if(time.isNull())
Expand Down
124 changes: 66 additions & 58 deletions client/dialogs/SignatureDialog.ui
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,25 @@
<rect>
<x>0</x>
<y>0</y>
<width>1013</width>
<height>600</height>
<width>1090</width>
<height>816</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">#SignatureDialog {
background-color: #ffffff;
<string notr="true">QWidget {
font-family: Roboto, Helvetica;
font-size: 14px;
color: #07142A;
}
#SignatureDialog {
background-color: #FFFFFF;
border-radius: 4px;
}
#lblSignerHeader, #lblSignatureHeader {
font-family: Roboto, Helvetica;
font-size: 22px;
color: #003168
color: #003168;
}
#status, #warning, #lblNotice {
font-family: Roboto, Helvetica;
font-size: 12px;
color: #091A36;
padding: 2px 10px;
Expand Down Expand Up @@ -67,36 +71,21 @@ background-color: #EAF8EA;
</property>
<item row="0" column="0">
<widget class="QWidget" name="leftPane" native="true">
<property name="minimumSize">
<size>
<width>505</width>
<height>0</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">#leftPane {
border-right: 1px solid #E7EAEF;
}
#info, #error {
font-family: Roboto, Helvetica;
font-size: 14px;
color: #07142A;
}
#lblSigningCity, #lblSigningCounty, #lblSigningState, #lblSigningZip, #lblRole {
font-family: Roboto, Helvetica;
font-size: 14px;
color: #07142A;
}
#signerCity, #signerCountry, #signerState, #signerZip, #signerRoles {
font-family: Roboto, Helvetica;
font-size: 16px;
color: #607496;
border: 1px solid #C4CBD8;
border-radius: 4px;
background-color: #F3F5F7;
padding: 10px 14px;
}
</string>
#showErrors, #showRole {
border-right: none; /*Workaround for right padding*/
}</string>
</property>
<layout class="QVBoxLayout" name="leftPaneLayout" stretch="0,0,0,0,1,0,0,0">
<property name="spacing">
Expand All @@ -112,10 +101,16 @@ padding: 10px 14px;
<number>24</number>
</property>
<property name="bottomMargin">
<number>32</number>
<number>24</number>
</property>
<item>
<widget class="QLabel" name="lblSignerHeader">
<property name="minimumSize">
<size>
<width>506</width>
<height>0</height>
</size>
</property>
<property name="focusPolicy">
<enum>Qt::TabFocus</enum>
</property>
Expand Down Expand Up @@ -161,6 +156,12 @@ padding: 10px 14px;
</item>
<item>
<widget class="AccordionTitle" name="showErrors">
<property name="minimumSize">
<size>
<width>0</width>
<height>40</height>
</size>
</property>
<property name="cursor">
<cursorShape>PointingHandCursor</cursorShape>
</property>
Expand Down Expand Up @@ -207,6 +208,12 @@ background: none;
</item>
<item>
<widget class="AccordionTitle" name="showRole">
<property name="minimumSize">
<size>
<width>0</width>
<height>40</height>
</size>
</property>
<property name="cursor">
<cursorShape>PointingHandCursor</cursorShape>
</property>
Expand Down Expand Up @@ -237,12 +244,12 @@ background: none;
<number>0</number>
</property>
<item>
<layout class="QVBoxLayout" name="layoutRole">
<layout class="QVBoxLayout" name="signerRolesLayout">
<property name="spacing">
<number>6</number>
</property>
<item>
<widget class="QLabel" name="lblRole">
<widget class="QLabel" name="labelRoles">
<property name="text">
<string>Role / resolution</string>
</property>
Expand Down Expand Up @@ -270,12 +277,12 @@ background: none;
</layout>
</item>
<item>
<layout class="QVBoxLayout" name="layoutCity">
<layout class="QVBoxLayout" name="signerCityLayout">
<property name="spacing">
<number>6</number>
</property>
<item>
<widget class="QLabel" name="lblSigningCity">
<widget class="QLabel" name="labelCity">
<property name="text">
<string>City</string>
</property>
Expand All @@ -294,12 +301,12 @@ background: none;
</layout>
</item>
<item>
<layout class="QVBoxLayout" name="layoutState">
<layout class="QVBoxLayout" name="signerStateLayout">
<property name="spacing">
<number>6</number>
</property>
<item>
<widget class="QLabel" name="lblSigningState">
<widget class="QLabel" name="labelState">
<property name="text">
<string>State</string>
</property>
Expand All @@ -318,12 +325,12 @@ background: none;
</layout>
</item>
<item>
<layout class="QVBoxLayout" name="layoutCountry">
<layout class="QVBoxLayout" name="signerCountryLayout">
<property name="spacing">
<number>6</number>
</property>
<item>
<widget class="QLabel" name="lblSigningCountry">
<widget class="QLabel" name="labelCountry">
<property name="text">
<string>Country</string>
</property>
Expand All @@ -342,12 +349,12 @@ background: none;
</layout>
</item>
<item>
<layout class="QVBoxLayout" name="layoutZip">
<layout class="QVBoxLayout" name="signerZipLayout">
<property name="spacing">
<number>6</number>
</property>
<item>
<widget class="QLabel" name="lblSigningZip">
<widget class="QLabel" name="labelZip">
<property name="text">
<string>Zip</string>
</property>
Expand All @@ -358,6 +365,9 @@ background: none;
<property name="textFormat">
<enum>Qt::PlainText</enum>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
<property name="textInteractionFlags">
<set>Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse</set>
</property>
Expand Down Expand Up @@ -399,10 +409,16 @@ background: none;
<number>24</number>
</property>
<property name="bottomMargin">
<number>32</number>
<number>24</number>
</property>
<item>
<widget class="QLabel" name="lblSignatureHeader">
<property name="minimumSize">
<size>
<width>488</width>
<height>0</height>
</size>
</property>
<property name="focusPolicy">
<enum>Qt::TabFocus</enum>
</property>
Expand All @@ -416,31 +432,21 @@ background: none;
</item>
<item>
<widget class="QTreeWidget" name="signatureView">
<property name="minimumSize">
<size>
<width>460</width>
<height>450</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">QLabel {
font-family: Roboto, Helvetica;
font-size: 12px;
color: #07142A;
}
QPushButton {
font-family: Roboto, Helvetica;
font-size: 12px;
text-align: left;
text-decoration: underline;
color: #2F70B6;
border: none;
}
QHeaderView::section {
font-family: Roboto, Helvetica;
font-size: 14px;
border: none;
border-bottom: 1px solid #E7EAEF;
border: 1px solid #E7EAEF;
border-width: 0px 0px 1px 0px;
padding: 0px 0px 8px 5px;
background-color: #FFFFFF;
}</string>
</property>
Expand All @@ -457,7 +463,10 @@ background-color: #FFFFFF;
<enum>QAbstractItemView::SelectRows</enum>
</property>
<property name="indentation">
<number>0</number>
<number>5</number>
</property>
<property name="rootIsDecorated">
<bool>false</bool>
</property>
<property name="columnCount">
<number>2</number>
Expand Down Expand Up @@ -496,27 +505,23 @@ border-top: 1px solid #E7EAEF;
background-color: #F3F5F7;
}
#title {
font-family: Roboto, Helvetica;
color: #07142A;
font-size: 14px;
font-weight: 700;
}
#navigationArea {
border-top: 1px solid #E7EAEF;
background-color: #F3F5F7;
}
QPushButton {
padding: 10px 12px;
border: 1px solid #2F70B6;
border-radius: 4px;
color: #ffffff;
background-color: #2F70B6;
font-size: 12px;
font-weight: 700;
}
QPushButton:hover, QPushButton:focus {
border-color: #2B66A6;
background-color: #2B66A6;
}
QPushButton:pressed {
border-color: #215081;
background-color: #215081;
}</string>
</property>
Expand Down Expand Up @@ -605,6 +610,9 @@ background-color: #215081;
<property name="text">
<string>Close</string>
</property>
<property name="default">
<bool>true</bool>
</property>
</widget>
</item>
</layout>
Expand Down
Loading
Loading