Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-80858

Consider controller like approach for findText() workflow

    XMLWordPrintable

    Details

    • Type: Suggestion
    • Status: Reported
    • Priority: P3: Somewhat important
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: WebEngine
    • Labels:
      None

      Description

      Current API for finding text on the page is simply wonky.

      Attached below is draft of the API proposed for QtWebKit to allow for user friendly way to handle text search.

      QWebFindController
      {
      	void clear();
      	void findNext();
      	void findPrevious();
      	void setText(const QString &text);
      	void setOptions(FindFlags options);
      	QString text() const;
      	FindFlags options() const;
      	int matchesCount() const;
      	int currentMatch() const;
      	bool hasResults() bool const;
      	bool isFinished() bool const;signals:
      	void resultsChanged(); // matches changed (due to content changes or setters find*() calls)
      	void findFinished(); // find*() calls finished
      }
      

        Attachments

          Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            Activity

              People

              Assignee:
              qt_webengine_team Qt WebEngine Team
              Reporter:
              emdek MichaƂ Dutkiewicz
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:

                  Gerrit Reviews

                  There are no open Gerrit changes