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

Consider controller like approach for findText() workflow

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • None
    • WebEngine
    • 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

          Activity

            People

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

              Dates

                Created:
                Updated: