D24633: KOrganizer : Fix Get Hot New Stuff

Laurent Montel noreply at phabricator.kde.org
Mon Oct 14 16:30:28 BST 2019


mlaurent added a comment.


  Now I think that kns3 must be adapt and not created a workaround for it.

INLINE COMMENTS

> actionmanager.cpp:1194
> +
> +    // set values for this part
> +    QCoreApplication::setApplicationName(QStringLiteral("korganizer"));

void KAboutData::setApplicationData(const KAboutData &aboutData)
{

  if (s_registry->m_appData) {
      *s_registry->m_appData = aboutData;
  } else {
      s_registry->m_appData = new KAboutData(aboutData);
  }
  
  // For applicationDisplayName & desktopFileName, which are only properties of QGuiApplication,
  // we have to try to set them via the property system, as the static getter methods are
  // part of QtGui only. Disadvantage: requires an app instance.
  // So set either all or none of the properties & warn about it
  QCoreApplication *app = QCoreApplication::instance();
  if (app) {
      app->setApplicationVersion(aboutData.version());
      app->setApplicationName(aboutData.componentName());
      app->setOrganizationDomain(aboutData.organizationDomain());
      app->setProperty("applicationDisplayName", aboutData.displayName());
      app->setProperty("desktopFileName", aboutData.desktopFileName());
  } else {
      qCWarning(KABOUTDATA) << "Could not initialize the equivalent properties of Q*Application: no instance (yet) existing.";
  }

} 
so I don't see why you want to change diplayname/organization etc.

REPOSITORY
  R210 KOrganizer

REVISION DETAIL
  https://phabricator.kde.org/D24633

To: winterz, mlaurent
Cc: kde-pim, fbampaloukas, dvasin, rodsevich, winterz, vkrause, mlaurent, knauss, dvratil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20191014/b44e7136/attachment-0001.html>


More information about the kde-pim mailing list