[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: koffice/libs/kofficecore
From: Stefan Nikolaus <stefan.nikolaus () kdemail ! net>
Date: 2006-03-28 11:04:09
Message-ID: 1143543849.987792.14195.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 523485 by nikolaus:
- forward declartion of KoGenStyles
- include some includes
- QObjectList[It]
- KConfigGroupSaver -> KConfigGroup
M +7 -10 KoDocumentInfo.cpp
M +1 -1 KoGenStyle.h
M +3 -0 KoGlobal.cpp
--- trunk/koffice/libs/kofficecore/KoDocumentInfo.cpp #523484:523485
@@ -151,16 +151,13 @@
{
QStringList ret;
- const QObjectList *list = children();
- if ( list )
+ const QList<QObject*> list = children();
+ QList<QObject*>::ConstIterator it( list.begin() );
+ QList<QObject*>::ConstIterator end( list.end() );
+ while ( it != end )
{
- QObjectListIt it( *list );
- QObject *obj;
- while ( ( obj = it.current() ) )
- {
- ret.prepend( obj->name() );
- ++it;
- }
+ ret.prepend( (*it)->name() );
+ ++it;
}
return ret;
@@ -219,7 +216,7 @@
{
KConfig* config = KoGlobal::kofficeConfig();
if ( config->hasGroup( "Author" ) ) {
- KConfigGroupSaver cgs( config, "Author" );
+ KConfigGroup cgs( config, "Author" );
m_telephoneHome=config->readEntry( "telephone" );
m_telephoneWork=config->readEntry( "telephone-work" );
m_fax=config->readEntry( "fax" );
--- trunk/koffice/libs/kofficecore/KoGenStyle.h #523484:523485
@@ -26,9 +26,9 @@
#include <koffice_export.h>
class KoGenStyles;
+class KoGenStyles;
class KoXmlWriter;
-
/**
* A generic style, i.e. basically a collection of properties and a name.
* Instances of KoGenStyle can either be held in the KoGenStyles collection,
--- trunk/koffice/libs/kofficecore/KoGlobal.cpp #523484:523485
@@ -19,6 +19,9 @@
*/
#include "config.h"
+
+#include <qpaintdevice.h>
+
#include <KoGlobal.h>
#include <kdebug.h>
#include <qfont.h>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic