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

error: Not a signal or slot declaration in code generated by qt_add_dbus_interface

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P1: Critical
    • None
    • 6.6
    • Build tools: moc, D-Bus
    • None
    • aea92807b (6.5.0)

    Description

      In KWallet we use qt_add_dbus_interface to generated code from a DBus XML file. The file contains a method declaration like this:

       

      <method name="pamOpen">
        <arg name="wallet" type="s" direction="in"/>
        <arg name="passwordHash" type="ay" direction="in"/>
        <arg name="sessionTimeout" type="i" direction="in"/>
        <annotation name="org.freedesktop.DBus.Method.NoReply" value="true"/>
      </method>

      This results in the following generated code:

       

       

      Q_NOREPLY inline void pamOpen(const QString &wallet, const QByteArray &passwordHash, int sessionTimeout){
      ...
      }

       

       

      When compiling this results in

       

      /home/nico/kde6/build/kwallet/src/api/KWallet/kwallet_interface.h:210:1: error: Not a signal or slot declaration 

      where line 210 is the aforementioned function definition.

       

      This is with Qt from dev branch (qtbase commit 360f69b74b5e28ea1cfb0ed1ead624d0323dfe09). The same code worked fine with an earlier version of dev/6.5

       

       

      Attachments

        Issue Links

          Activity

            People

              fabiankosmale Fabian Kosmale
              nicolasfella Nicolas Fella
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated: