Skip to content

Commit

Permalink
Use auto layout (open-eid#1138)
Browse files Browse the repository at this point in the history
IB-7581

Signed-off-by: Raul Metsma <[email protected]>

Signed-off-by: Raul Metsma <[email protected]>
  • Loading branch information
metsma authored Dec 23, 2022
1 parent 218a7c1 commit b54f88e
Show file tree
Hide file tree
Showing 3 changed files with 181 additions and 214 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,7 @@ jobs:
with:
patterns: |
-**/*autogen*/**
-**/common/qtsingleapplication/**
-**:cpp/poorly-documented-function
input: sarif-results/cpp.sarif
output: sarif-results/cpp.sarif
Expand Down
16 changes: 5 additions & 11 deletions client/dialogs/PinPopup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,13 @@
#include "SslCertificate.h"

#include <QtCore/QTimeLine>
#include <QtGui/QMovie>
#include <QtGui/QRegularExpressionValidator>
#include <QtGui/QTextDocument>
#include <QtWidgets/QLineEdit>
#include <QtWidgets/QProgressBar>
#include <QtWidgets/QPushButton>
#include <QSvgWidget>

#include <QTextDocument>

PinPopup::PinPopup(PinFlags flags, const SslCertificate &c, TokenFlags count, QWidget *parent)
: PinPopup(flags, c.toString(c.showCN() ? QStringLiteral("<b>CN,</b> serialNumber") : QStringLiteral("<b>GN SN,</b> serialNumber")), count, parent)
{
Expand All @@ -49,18 +47,13 @@ PinPopup::PinPopup(PinFlags flags, const QString &title, TokenFlags count, QWidg
{
ui->setupUi(this);
setWindowFlags( Qt::Dialog | Qt::FramelessWindowHint );
setFixedSize( size() );
for(QLineEdit *w: findChildren<QLineEdit*>())
w->setAttribute(Qt::WA_MacShowFocusRect, false);

QFont regular = Styles::font( Styles::Regular, 14 );
QFont condensed14 = Styles::font( Styles::Condensed, 14 );

ui->labelNameId->setFont(Styles::font(Styles::Regular, 20, QFont::DemiBold));
ui->label->setFont( regular );
ui->ok->setFont( condensed14 );
ui->cancel->setFont( condensed14 );
ui->ok->setEnabled( false );
ui->label->setFont(Styles::font(Styles::Regular, 14));
ui->ok->setFont(Styles::font(Styles::Condensed, 14));
ui->cancel->setFont(ui->ok->font());

connect( ui->ok, &QPushButton::clicked, this, &PinPopup::accept );
connect( ui->cancel, &QPushButton::clicked, this, &PinPopup::reject );
Expand Down Expand Up @@ -142,6 +135,7 @@ PinPopup::PinPopup(PinFlags flags, const QString &title, TokenFlags count, QWidg
ui->label->setBuddy( ui->pin );
ui->ok->setDisabled(true);
}
adjustSize();
}

PinPopup::~PinPopup()
Expand Down
Loading

0 comments on commit b54f88e

Please sign in to comment.