~ubuntu-branches/ubuntu/wily/qgis/wily

« back to all changes in this revision

Viewing changes to src/core/qgsprovidercountcalcevent.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Johan Van de Wauw
  • Date: 2010-07-11 20:23:24 UTC
  • mfrom: (3.1.4 squeeze)
  • Revision ID: james.westby@ubuntu.com-20100711202324-5ktghxa7hracohmr
Tags: 1.4.0+12730-3ubuntu1
* Merge from Debian unstable (LP: #540941).
* Fix compilation issues with QT 4.7
* Add build-depends on libqt4-webkit-dev 

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
 *   (at your option) any later version.                                   *
16
16
 *                                                                         *
17
17
 ***************************************************************************/
18
 
/* $Id: qgsprovidercountcalcevent.cpp 4502 2006-01-08 01:18:20Z timlinux $ */
 
18
/* $Id$ */
19
19
 
20
20
#include "qgsprovidercountcalcevent.h"
21
 
//Added by qt3to4:
22
 
#include <QCustomEvent>
 
21
#include "qgis.h"
23
22
 
24
 
QgsProviderCountCalcEvent::QgsProviderCountCalcEvent( long numberFeatures )
25
 
    : QCustomEvent( QGis::ProviderCountCalcEvent ),
26
 
      n( numberFeatures )
 
23
QgsProviderCountCalcEvent::QgsProviderCountCalcEvent( long featuresCounted )
 
24
    : QEvent( static_cast<QEvent::Type>( QGis::ProviderCountCalcEvent ) ),
 
25
    n( featuresCounted )
27
26
{
28
27
  // NO-OP
29
28
}
30
29
 
31
30
 
32
 
long QgsProviderCountCalcEvent::numberFeatures() const
 
31
long QgsProviderCountCalcEvent::featuresCounted() const
33
32
{
34
33
  return n;
35
34
}