Uploaded image for project: 'Qt Solutions'
  1. Qt Solutions
  2. QTSOLBUG-91

QtPieMenu throws a warning during compile

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P4: Low
    • Next Patch Release
    • Some Release
    • Pie Menu
    • None
    • Using Qt v4.6.0 on SuSE v11.2 with KDE v4.3
      Using gcc (SUSE Linux) 4.3.2 [gcc-4_3-branch revision 141291]

    Description

      Using %p with printf/qWarning and providing a reference to an icon throws an error

      A possible fix:

      > cat qtpiemenu.cpp.diff
      — qtpiemenu.cpp.orig 2009-12-01 14:15:49.000000000 +0100
      +++ qtpiemenu.cpp 2009-12-01 14:16:50.000000000 +0100
      @@ -402,7 +402,7 @@
      void QtPieMenu::setItemIcon(const QIcon &icon, int index)
      {
      if (!itemAt(index))

      { - qWarning("QtPieMenu::setItemIcon(%p, %i) index of of range", &icon, index); + qWarning("QtPieMenu::setItemIcon(%p, %i) index of of range", static_cast<const void *>(&icon), index); return; }

      Attachments

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

        Activity

          People

            vgt Eirik Aavitsland
            jirauser24743 user-678dd (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes