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

Qt 5 to-do in QTextHtmlParser

    XMLWordPrintable

Details

    • Task
    • Resolution: Done
    • P2: Important
    • 5.15.0
    • None
    • GUI: Text handling
    • None
    • 8fdd400d99bf380660151c3d41c21b51cd492f30

    Description

      qtbase/src/gui/text/qtexthtmlparser.cpp
         // set element specific attributes
          switch (id) {
              case Html_a:
                  charFormat.setAnchor(true);
                  for (int i = 0; i < attributes.count(); i += 2) {
                      const QString key = attributes.at(i);
                      if (key.compare(QLatin1String("href"), Qt::CaseInsensitive) == 0
                          && !attributes.at(i + 1).isEmpty()) {
                          hasHref = true;
                          charFormat.setUnderlineStyle(QTextCharFormat::SingleUnderline);
                          charFormat.setForeground(Qt::blue); // ### Qt5: QApplication::palette().link());
                      }
                  }
      

      Attachments

        Issue Links

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

          Activity

            People

              esabraha Eskil Abrahamsen Blomfeldt
              jasmcdon Jason McDonald (Closed Nokia Identity. Please assign to "macadder" instead) (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes