Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Port LoginRequiredDialog to an AccountModalWidget #11614

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

erikjv
Copy link
Contributor

@erikjv erikjv commented Apr 23, 2024

And thereby not embed a complete QDialog in the settings window.

Fixes: #11592

And thereby not embed a complete `QDialog` in the settings window.

Fixes: #11592
@erikjv erikjv requested a review from TheOneRing April 23, 2024 13:15
@erikjv erikjv self-assigned this Apr 23, 2024
@erikjv
Copy link
Contributor Author

erikjv commented Apr 23, 2024

No time has been spend yet on the look, so the "new" look for now is:

Screenshot 2024-04-23 at 15 16 13

@erikjv
Copy link
Contributor Author

erikjv commented Apr 24, 2024

How about this:

Screenshot 2024-04-24 at 12 14 27

@@ -27,10 +28,19 @@ class AccountModalWidget : public QWidget
public:
AccountModalWidget(const QString &title, QWidget *widget, QWidget *parent);

enum DialogCode { Rejected, Accepted };
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

enum class. and q_emum please.
Would Result be a better name?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@erikjv
Copy link
Contributor Author

erikjv commented Apr 24, 2024

Wizard with basic auth

Screenshot 2024-04-24 at 13 33 45

src/gui/creds/httpcredentialsgui.cpp Outdated Show resolved Hide resolved
src/gui/creds/httpcredentialsgui.cpp Outdated Show resolved Hide resolved
@erikjv erikjv force-pushed the work/port-LoginRequiredDialog branch from 59dcb89 to 73f38e9 Compare May 7, 2024 15:02
@erikjv erikjv requested a review from TheOneRing May 7, 2024 15:03
Copy link
Member

@TheOneRing TheOneRing left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is addModalLegacyDialog still used anywhere, if not could you open a follow-up and remove it?

@erikjv
Copy link
Contributor Author

erikjv commented May 8, 2024

Is addModalLegacyDialog still used anywhere, if not could you open a follow-up and remove it?

The share dialog and the folder wizard still use it.

@erikjv erikjv requested a review from TheOneRing May 8, 2024 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Port LoginRequiredDialog from a QDialog to an AccountModalWidget
2 participants