[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdenetwork/librss
From:       Frerich Raabe <raabe () kde ! org>
Date:       2003-06-17 1:13:20
[Download RAW message or body]

CVS commit by raabe: 

- Added a little bit of documentation to point out a common pitfall
CCMAIL:tokoe@kde.org


  M +9 -0      loader.h   1.10


--- kdenetwork/librss/loader.h  #1.9:1.10
@@ -232,4 +232,9 @@ namespace RSS
          * }
          * \endcode
+         *
+         * Note that you have to create a copy of the passed Document instance in
+         * case you want/need to use it after the slot attached to the
+         * loadingComplete signal goes out of scope. This is e.g. the case if you
+         * intend to call getPixmap() on Document::image()!
          */
         class Loader : public QObject
@@ -287,4 +292,8 @@ namespace RSS
                          * parsed RSS file. In case it's RetrieveError, you should query
                          * loader->errorCode() for the actual error code.
+                         * Note that you have to create a copy of the passed Document
+                         * instance in case you want/need to use it after the slot attached
+                         * to the loadingComplete signal goes out of scope. This is e.g.
+                         * the case if you intend to call getPixmap() on Document::image()!
                          * @param status A status byte telling whether there were any problems
                          * while retrieving or parsing the data.


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic