[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdelibs/kdecore/kernel
From: Rafael Fernández López <ereslibre () kde ! org>
Date: 2010-04-07 18:59:28
Message-ID: 20100407185928.C1DC9AC857 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1112279 by ereslibre:
Add setAboutData method for allowing adding information afterwards the \
KAboutData has been set to the KComponentData and created.
This allows us for example, to add to the KAboutData pixmaps using \
KStandardDirs.
M +5 -0 kcomponentdata.cpp
M +7 -0 kcomponentdata.h
M +1 -1 kcomponentdata_p.h
--- trunk/KDE/kdelibs/kdecore/kernel/kcomponentdata.cpp #1112278:1112279
@@ -214,6 +214,11 @@
return &d->aboutData;
}
+void KComponentData::setAboutData(const KAboutData &aboutData)
+{
+ d->aboutData = aboutData;
+}
+
QString KComponentData::componentName() const
{
Q_ASSERT(d);
--- trunk/KDE/kdelibs/kdecore/kernel/kcomponentdata.h #1112278:1112279
@@ -151,6 +151,13 @@
const KAboutData *aboutData() const;
/**
+ * Sets the about data of this component.
+ *
+ * @since 4.5
+ */
+ void setAboutData(const KAboutData &aboutData);
+
+ /**
* Returns the name of the component.
*
* @return The component name.
--- trunk/KDE/kdelibs/kdecore/kernel/kcomponentdata_p.h #1112278:1112279
@@ -79,7 +79,7 @@
void configInit(const KComponentData &component); //call this only \
from lazyInit()!
KStandardDirs *dirs;
- const KAboutData aboutData;
+ KAboutData aboutData;
QString configName;
KSharedConfig::Ptr sharedConfig;
bool syncing;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic