https://bugs.kde.org/show_bug.cgi?id=386701

            Bug ID: 386701
           Summary: K4AboutData::operator KAboutData() does not convert
                    the credits
           Product: frameworks-kdelibs4support
           Version: 5.38.0
          Platform: Fedora RPMs
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

K4AboutData::operator KAboutData() does not convert the credits. I had to
manually add:
#if KDE_IS_VERSION(5, 0, 0)
  // Workaround: K4AboutData fails to do this.
  KAboutData aboutData5 = KAboutData::applicationData();
  if (aboutData5.credits().isEmpty()) // do not duplicate if fixed upstream
    aboutData5.addCredit(aboutData.credits().first().name());
  KAboutData::setApplicationData(aboutData5);
#endif
to my application to work around that.

Note that I use:
#if KDE_IS_VERSION(5, 0, 0)
#include <K4AboutData>
#else
#define K4AboutData KAboutData
#endif
to get the code to compile with either kdelibs 4 or KF5.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to