Changeset View
Changeset View
Standalone View
Standalone View
src/lib/kaboutdata.cpp
Show First 20 Lines • Show All 468 Lines • ▼ Show 20 Line(s) | 462 | public: | |||
---|---|---|---|---|---|
469 | QString _copyrightStatement; | 469 | QString _copyrightStatement; | ||
470 | QString _otherText; | 470 | QString _otherText; | ||
471 | QString _homepageAddress; | 471 | QString _homepageAddress; | ||
472 | QList<KAboutPerson> _authorList; | 472 | QList<KAboutPerson> _authorList; | ||
473 | QList<KAboutPerson> _creditList; | 473 | QList<KAboutPerson> _creditList; | ||
474 | QList<KAboutPerson> _translatorList; | 474 | QList<KAboutPerson> _translatorList; | ||
475 | QList<KAboutLicense> _licenseList; | 475 | QList<KAboutLicense> _licenseList; | ||
476 | QString productName; | 476 | QString productName; | ||
477 | #if KCOREADDONS_BUILD_DEPRECATED_SINCE(5, 2) | ||||
477 | QString programIconName; | 478 | QString programIconName; | ||
479 | #endif | ||||
478 | QVariant programLogo; | 480 | QVariant programLogo; | ||
479 | QString customAuthorPlainText, customAuthorRichText; | 481 | QString customAuthorPlainText, customAuthorRichText; | ||
480 | bool customAuthorTextEnabled; | 482 | bool customAuthorTextEnabled; | ||
481 | 483 | | |||
482 | QString organizationDomain; | 484 | QString organizationDomain; | ||
483 | QString _ocsProviderUrl; | 485 | QString _ocsProviderUrl; | ||
484 | QString desktopFileName; | 486 | QString desktopFileName; | ||
485 | 487 | | |||
▲ Show 20 Lines • Show All 120 Lines • ▼ Show 20 Line(s) | 598 | { | |||
606 | return *this; | 608 | return *this; | ||
607 | } | 609 | } | ||
608 | 610 | | |||
609 | KAboutData KAboutData::fromPluginMetaData(const KPluginMetaData &plugin) | 611 | KAboutData KAboutData::fromPluginMetaData(const KPluginMetaData &plugin) | ||
610 | { | 612 | { | ||
611 | KAboutData ret(plugin.pluginId(), plugin.name(), plugin.version(), plugin.description(), | 613 | KAboutData ret(plugin.pluginId(), plugin.name(), plugin.version(), plugin.description(), | ||
612 | KAboutLicense::byKeyword(plugin.license()).key(), plugin.copyrightText(), | 614 | KAboutLicense::byKeyword(plugin.license()).key(), plugin.copyrightText(), | ||
613 | plugin.extraInformation(), plugin.website()); | 615 | plugin.extraInformation(), plugin.website()); | ||
616 | #if KCOREADDONS_BUILD_DEPRECATED_SINCE(5, 2) | ||||
614 | ret.d->programIconName = plugin.iconName(); | 617 | ret.d->programIconName = plugin.iconName(); | ||
618 | #endif | ||||
615 | ret.d->_authorList = plugin.authors(); | 619 | ret.d->_authorList = plugin.authors(); | ||
616 | ret.d->_translatorList = plugin.translators(); | 620 | ret.d->_translatorList = plugin.translators(); | ||
617 | ret.d->_creditList = plugin.otherContributors(); | 621 | ret.d->_creditList = plugin.otherContributors(); | ||
618 | return ret; | 622 | return ret; | ||
619 | } | 623 | } | ||
620 | 624 | | |||
621 | 625 | | |||
622 | KAboutData &KAboutData::addAuthor(const QString &name, | 626 | KAboutData &KAboutData::addAuthor(const QString &name, | ||
▲ Show 20 Lines • Show All 187 Lines • ▼ Show 20 Line(s) | |||||
810 | /// @internal | 814 | /// @internal | ||
811 | /// Return the program name. It is always pre-allocated. | 815 | /// Return the program name. It is always pre-allocated. | ||
812 | /// Needed for KCrash in particular. | 816 | /// Needed for KCrash in particular. | ||
813 | const char *KAboutData::internalProgramName() const | 817 | const char *KAboutData::internalProgramName() const | ||
814 | { | 818 | { | ||
815 | return d->_internalProgramName.constData(); | 819 | return d->_internalProgramName.constData(); | ||
816 | } | 820 | } | ||
817 | 821 | | |||
822 | #if KCOREADDONS_BUILD_DEPRECATED_SINCE(5, 2) | ||||
818 | QString KAboutData::programIconName() const | 823 | QString KAboutData::programIconName() const | ||
819 | { | 824 | { | ||
820 | return d->programIconName.isEmpty() ? componentName() : d->programIconName; | 825 | return d->programIconName.isEmpty() ? componentName() : d->programIconName; | ||
821 | } | 826 | } | ||
822 | 827 | | |||
823 | KAboutData &KAboutData::setProgramIconName(const QString &iconName) | 828 | KAboutData &KAboutData::setProgramIconName(const QString &iconName) | ||
824 | { | 829 | { | ||
825 | d->programIconName = iconName; | 830 | d->programIconName = iconName; | ||
826 | return *this; | 831 | return *this; | ||
827 | } | 832 | } | ||
833 | #endif | ||||
828 | 834 | | |||
829 | QVariant KAboutData::programLogo() const | 835 | QVariant KAboutData::programLogo() const | ||
830 | { | 836 | { | ||
831 | return d->programLogo; | 837 | return d->programLogo; | ||
832 | } | 838 | } | ||
833 | 839 | | |||
834 | KAboutData &KAboutData::setProgramLogo(const QVariant &image) | 840 | KAboutData &KAboutData::setProgramLogo(const QVariant &image) | ||
835 | { | 841 | { | ||
▲ Show 20 Lines • Show All 412 Lines • Show Last 20 Lines |