summaryrefslogtreecommitdiffstats
path: root/src/loginform.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/loginform.cpp')
-rw-r--r--src/loginform.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/loginform.cpp b/src/loginform.cpp
index 50bd08e..7c4deaa 100644
--- a/src/loginform.cpp
+++ b/src/loginform.cpp
@@ -472,7 +472,7 @@ void LoginForm::keyPressEvent(QKeyEvent *event)
void LoginForm::resetForm()
{
- std::cerr << "PageCount: " << pageCount;
+ std::cerr << "PageCount: " << pageCount << std::endl;
if (pageCount > 1) {
ui->loginChooser->setCurrentWidget(ui->welcomePage);
}
@@ -505,7 +505,7 @@ void LoginForm::setBrowserSize()
browser->setFixedSize(s);
browser->setGeometry(QRect(QPoint(0, 0), s));
}
- QTimer::singleShot(10, [=]() {
+ QTimer::singleShot(10, [this, f]() {
int pw = 0, ph = 0;
if (this->parentWidget() != nullptr) {
this->parentWidget()->pos();
@@ -515,6 +515,12 @@ void LoginForm::setBrowserSize()
this->resize(*f);
this->setFixedSize(*f);
this->setGeometry(pw, ph, f->width(), f->height());
+ auto s = ui->shibPage->size();
+ std::cerr << "Delayed resize to " << s.width() << " " << s.height() << std::endl;
+ if (browser != nullptr) {
+ browser->setFixedSize(s);
+ browser->setGeometry(QRect(QPoint(0, 0), s));
+ }
emit resized();
});
}