Uploaded image for project: 'Qt Mobility'
  1. Qt Mobility
  2. QTMOBILITY-280

QValueSpacePublisher's setValue function doesn't work with empty path

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • 1.1.0
    • 1.0.0
    • Publish & Subscribe
    • None
    • windows mingw 3.81
    • eec0e5d695be53ca4a907dfa40aceeb638671d6a

      The setValue documentation tells that empty path will "set the value of this publisher's path." However the following code will create empty subPath:

      QString itemPath = "/Settings/Nokia/General/Mappings";
      qDebug() << "paths:" << QValueSpaceSubscriber(itemPath).subPaths();
      QValueSpacePublisher pub(itemPath);
      pub.setValue("", value);
      pub.sync();
      qDebug() << "paths:" << QValueSpaceSubscriber(itemPath).subPaths();

      prints out following:
      paths: ()
      paths: ("")

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

            amccarth Aaron McCarthy (closed Nokia identity) (Inactive)
            saulaukk Sauli Laukka
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes