Skip to content

Comments

Less modal#11461

Merged
TheOneRing merged 2 commits intomasterfrom
work/modal
Jan 17, 2024
Merged

Less modal#11461
TheOneRing merged 2 commits intomasterfrom
work/modal

Conversation

@TheOneRing
Copy link
Contributor

@TheOneRing TheOneRing commented Jan 5, 2024

@TheOneRing TheOneRing force-pushed the work/modal branch 4 times, most recently from 2fa3b1f to 7982bde Compare January 11, 2024 12:33
@TheOneRing

This comment was marked as outdated.

@TheOneRing TheOneRing changed the title Wip: Less modal Less modal Jan 16, 2024
@TheOneRing TheOneRing force-pushed the work/modal branch 3 times, most recently from 33db464 to 8b96f2f Compare January 16, 2024 15:59
@TheOneRing TheOneRing marked this pull request as ready for review January 16, 2024 16:13
@TheOneRing TheOneRing requested a review from a team January 16, 2024 16:13
@TheOneRing TheOneRing added this to the Desktop 6.0 milestone Jan 16, 2024
@michaelstingl
Copy link
Contributor

@tbsbdr I built new testpilotcloud builds with the latest changes:

testpilotcloud-6.0.0.13136-daily20240116-arm64.pkg
testpilotcloud-6.0.0.13136-daily20240116-x86_64.pkg

}
}

void SettingsDialog::requestModality(Account *accout)
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
void SettingsDialog::requestModality(Account *accout)
void SettingsDialog::requestModality(Account *account)

// create a widget filling the stacked widget
// this widget contains a wrapping group box with widget as content
auto *outerWidget = new QWidget;
auto *groupBox = new QGroupBox;
Copy link
Contributor

Choose a reason for hiding this comment

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

Could be owned by the widget, couldn't it?

Life cycle wise, at a first glance, I cannot tell where this object is deleted. Should be documented.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It will get owned by AccountSettings once added to the layout.

Copy link
Contributor

Choose a reason for hiding this comment

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

I see. Might be worth adding a short comment.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thats how qt works

Q_PROPERTY(AccountStatePtr accountState MEMBER _accountState)

public:
enum class ModalWidgetSizePolicy { Minimum = QSizePolicy::Minimum, Expanding = QSizePolicy::Expanding };
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we really need both?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, see the screenshot, if we bloat the login dialog to full-screen it looks horrible.

QAction *_toggleSignInOutAction;
QAction *_toggleReconnect;
// are we already in the destructor
bool _goingDown = false;
Copy link
Contributor

Choose a reason for hiding this comment

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

So Qt can execute signal handlers if the object is being deleted in parallel?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We connect to destroyed which can happen if the widget is closed but also when the parent is destroyed.

@fmoc
Copy link
Contributor

fmoc commented Jan 17, 2024

This will need sophisticated testing.

@TheOneRing TheOneRing merged commit 11fb8f9 into master Jan 17, 2024
@delete-merged-branch delete-merged-branch bot deleted the work/modal branch January 17, 2024 16:50
@saw-jan
Copy link
Member

saw-jan commented Jan 19, 2024

Tested with ownCloud 6.0.0.13155-daily20240119 [fd02c0]

Screenshot from 2024-01-19 13-10-07 Screenshot from 2024-01-19 13-10-31 Screenshot from 2024-01-19 13-11-12
Screenshot from 2024-01-19 13-11-33 Screenshot from 2024-01-19 13-12-26 Screenshot from 2024-01-19 13-12-48
Screenshot from 2024-01-19 13-13-26 Screenshot from 2024-01-19 13-13-31 Screenshot from 2024-01-19 13-13-58
Screenshot from 2024-01-19 13-14-04

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

4 participants