Skip to content

Commit

Permalink
Add progressbar and spinner to layout (open-eid#1157)
Browse files Browse the repository at this point in the history
IB-7652

Signed-off-by: Raul Metsma <[email protected]>
  • Loading branch information
metsma authored Feb 7, 2023
1 parent 1e9f205 commit 7425df4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions client/dialogs/PinPopup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ PinPopup::PinPopup(PinFlags flags, const QString &title, TokenFlags count, QWidg
, ui(new Ui::PinPopup)
{
ui->setupUi(this);
setWindowFlags( Qt::Dialog | Qt::FramelessWindowHint );
setWindowFlag(Qt::FramelessWindowHint);
for(QLineEdit *w: findChildren<QLineEdit*>())
w->setAttribute(Qt::WA_MacShowFocusRect, false);

Expand Down Expand Up @@ -103,9 +103,9 @@ PinPopup::PinPopup(PinFlags flags, const QString &title, TokenFlags count, QWidg
ui->ok->hide();
ui->cancel->hide();
QSvgWidget *movie = new QSvgWidget(QStringLiteral(":/images/wait.svg"), this);
movie->resize(ui->pin->size().height(), ui->pin->size().height());
movie->move(ui->pin->geometry().center() - movie->geometry().center());
movie->setFixedSize(ui->pin->size().height(), ui->pin->size().height());
movie->show();
ui->PinPopupLayout->addWidget(movie, 0, Qt::AlignCenter);
}
if( flags & PinpadFlag )
{
Expand All @@ -118,6 +118,7 @@ PinPopup::PinPopup(PinFlags flags, const QString &title, TokenFlags count, QWidg
progress->setTextVisible( false );
progress->resize( 200, 30 );
progress->move( 153, 122 );
ui->PinPopupLayout->addWidget(progress);
QTimeLine *statusTimer = new QTimeLine( progress->maximum() * 1000, this );
statusTimer->setEasingCurve(QEasingCurve::Linear);
statusTimer->setFrameRange( progress->maximum(), progress->minimum() );
Expand Down

0 comments on commit 7425df4

Please sign in to comment.