[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: koffice/interfaces
From: Stefan Nikolaus <stefan.nikolaus () kdemail ! net>
Date: 2006-03-27 19:44:55
Message-ID: 1143488695.260910.24749.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 523294 by nikolaus:
- QObjectListIt -> QObjectList::ConstIterator
- include kofficecore
M +1 -1 CMakeLists.txt
M +6 -5 koChart.cc
--- trunk/koffice/interfaces/CMakeLists.txt #523293:523294
@@ -1,6 +1,6 @@
kde4_header()
-include_directories( ${CMAKE_SOURCE_DIR}/kchart/kdchart ${KDE4_INCLUDE_DIR} \
${QT_INCLUDES} ) +include_directories( ${KOFFICECORE_INCLUDES} \
${CMAKE_SOURCE_DIR}/kchart/kdchart ${KDE4_INCLUDE_DIR} ${QT_INCLUDES} )
########### next target ###############
--- trunk/koffice/interfaces/koChart.cc #523293:523294
@@ -23,8 +23,9 @@
using namespace KoChart;
WizardExtension::WizardExtension( Part *part, const char *name )
- : QObject( part, name )
+ : QObject( part )
{
+ setObjectName( name );
m_part = part;
}
@@ -45,10 +46,10 @@
WizardExtension *Part::wizardExtension()
{
- QObjectListIt it( *QObject::children() );
- for (; it.current(); ++it )
- if ( it.current()->inherits( "KoChart::WizardExtension" ) )
- return static_cast<WizardExtension *>( it.current() );
+ QObjectList::ConstIterator end( QObject::children().end() );
+ for (QObjectList::ConstIterator it( QObject::children().begin() ); it != end; \
++it ) + if ( (*it)->inherits( "KoChart::WizardExtension" ) )
+ return static_cast<WizardExtension *>( *it );
return 0;
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic