[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [libqapt] src: Export SourceEntry and SourcesList
From: Jonathan Thomas <echidnaman () kubuntu ! org>
Date: 2013-04-30 19:01:15
Message-ID: 20130430190115.3746FA603F () git ! kde ! org
[Download RAW message or body]
Git commit b288e40a806b78831b0da56543e5c007ee714aaf by Jonathan Thomas.
Committed on 30/04/2013 at 16:45.
Pushed by jmthomas into branch 'master'.
Export SourceEntry and SourcesList
M +1 -1 src/sourceentry.h
M +5 -0 src/sourceslist.cpp
M +2 -1 src/sourceslist.h
http://commits.kde.org/libqapt/b288e40a806b78831b0da56543e5c007ee714aaf
diff --git a/src/sourceentry.h b/src/sourceentry.h
index 836ac99..d592dec 100644
--- a/src/sourceentry.h
+++ b/src/sourceentry.h
@@ -29,7 +29,7 @@ namespace QApt {
class SourceEntryPrivate;
-class SourceEntry
+class Q_DECL_EXPORT SourceEntry
{
public:
SourceEntry(const QString &line, const QString &file = QString());
diff --git a/src/sourceslist.cpp b/src/sourceslist.cpp
index 9bd391c..f30b75b 100644
--- a/src/sourceslist.cpp
+++ b/src/sourceslist.cpp
@@ -84,6 +84,11 @@ SourcesList::SourcesList(QObject *parent)
reload();
}
+SourcesList::~SourcesList()
+{
+ delete d_ptr;
+}
+
void SourcesList::reload()
{
Q_D(SourcesList);
diff --git a/src/sourceslist.h b/src/sourceslist.h
index b86298f..579f5d5 100644
--- a/src/sourceslist.h
+++ b/src/sourceslist.h
@@ -31,11 +31,12 @@ namespace QApt {
class SourcesListPrivate;
-class SourcesList : public QObject
+class Q_DECL_EXPORT SourcesList : public QObject
{
Q_OBJECT
public:
explicit SourcesList(QObject *parent = 0);
+ ~SourcesList();
void addEntry(const SourceEntry &entry);
void removeEntry(const SourceEntry &entry);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic