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

Q_FLAG Documentation typo

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Done
    • Affects Version/s: 5.12.7
    • Fix Version/s: 5.15.0 RC
    • Component/s: Documentation
    • Labels:
      None
    • Environment:
      Fedora 31
      Qt 5.12.7
      GCC 64bit
    • Platform/s:
      All
    • Commits:
      0c651768475aa882d606efe51d10fedc44b87566 (qt/qtbase/5.15)

      Description

      There is a typo within the usage example of Q_FLAG

      https://doc.qt.io/qt-5/qobject.html#Q_FLAG

      I believe it should be
      Q_FLAG(LoadHints)
      instead of
      Q_FLAG(LoadHint)
      At least this fixed my usage issues of Q_FLAG:

      moc_uLog.cpp:214:67: error: conversion from ‘QFlag’ to ‘ULog::ULogLevel’ is ambiguous

      214 | case 1: _t->setLogLevel(QFlag(reinterpret_cast<int>(_v))); break;

             |                                                                                                    ^

        Attachments

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

          Activity

            People

            Assignee:
            vhilshei Volker Hilsheimer
            Reporter:
            umbraadmortem Raphael Gstettenhofer
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes