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

Static method in QEvent returning type name

    XMLWordPrintable

Details

    Description

      For debugging, it would be convenient for QEvent to offer a static method which returns the name of a given event type, e.g.

      static const QString QEvent::typeString(QEvent::Type typeIn)
      {
      switch (typeIn)
      {
      case QEvent::None:
      return "None";
      case QEvent::Timer:
      return "Timer";
      case QEvent::MouseButtonPress:
      return "MouseButtonPress";

      etc. QEvent has some support for QDebug::operator<<() but this doesn't seem to be entirely complete.

      Attachments

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

        Activity

          People

            sorvig Morten Sørvig
            admin Administrator
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes