Skip to content

Conversation

@TheOneRing
Copy link
Contributor

No description provided.

@TheOneRing

This comment was marked as outdated.

@TheOneRing TheOneRing requested a review from Copilot May 28, 2025 11:44
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds handling of the Enter/Return key to advance the server URL wizard page, replaces a custom PostfixLineEdit with a plain QLineEdit plus validation/fixup logic, and updates several page classes to use const qualifiers on validateInput.

  • Connects the new requestNext signal to advance the wizard when Enter is pressed
  • Removes PostfixLineEdit widget and related files
  • Introduces a UrlValidator, fixupUrl helper, and keyPressEvent override to enforce HTTPS and URL correctness

Reviewed Changes

Copilot reviewed 12 out of 12 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/gui/newwizard/states/serverurlsetupwizardstate.cpp Wired up requestNext signal and simplified URL assignment
src/gui/newwizard/postfixlineedit.h / postfixlineedit.cpp Deleted custom postfix line edit implementation
src/gui/newwizard/pages/serverurlsetupwizardpage.ui Swapped OCC::PostfixLineEdit for QLineEdit and removed custom widget entries
src/gui/newwizard/pages/serverurlsetupwizardpage.h Changed return type of userProvidedUrl, made validateInput const, added keyPressEvent
src/gui/newwizard/pages/serverurlsetupwizardpage.cpp Added UrlValidator, fixupUrl, updated URL logic, implemented Enter key handling
src/gui/newwizard/pages/oauthcredentialssetupwizardpage.h/cpp Marked validateInput as const override
src/gui/newwizard/pages/accountconfiguredwizardpage.h/cpp Marked validateInput as const override
src/gui/newwizard/pages/abstractsetupwizardpage.h Changed validateInput to const, added new requestNext signal
src/gui/newwizard/CMakeLists.txt Removed postfixlineedit.cpp from build

@TheOneRing TheOneRing merged commit b3eae33 into main May 28, 2025
3 checks passed
@TheOneRing TheOneRing deleted the work/url branch May 28, 2025 13:27
@openclouders openclouders mentioned this pull request May 28, 2025
1 task
@openclouders openclouders mentioned this pull request Jun 12, 2025
1 task
@openclouders openclouders mentioned this pull request Jun 25, 2025
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make when adding new Client that enter of keyboard works to go to next page

2 participants