~ubuntu-branches/ubuntu/quantal/qgis/quantal

« back to all changes in this revision

Viewing changes to src/core/qgsprovidercountcalcevent.cpp

  • Committer: Bazaar Package Importer
  • Author(s): William Grant
  • Date: 2007-05-06 13:42:32 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20070506134232-pyli6t388w5asd8x
Tags: 0.8.0-3ubuntu1
* Merge from Debian unstable. Remaining Ubuntu changes:
  - debian/rules, debian/qgis.install, debian/qgis.dirs debian/qgis.desktop:
    Add and install .desktop.
* debian/qgis.desktop: Remove Applications category; it's not real.
* Modify Maintainer value to match Debian-Maintainer-Field Spec

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/***************************************************************************
 
2
      qgsprovidercountcalcevent.cpp  -  Notification that the exact count
 
3
                                        of a layer has been calculated.
 
4
                             -------------------
 
5
    begin                : Feb 1, 2005
 
6
    copyright            : (C) 2005 by Brendan Morley
 
7
    email                : morb at ozemail dot com dot au
 
8
 ***************************************************************************/
 
9
 
 
10
/***************************************************************************
 
11
 *                                                                         *
 
12
 *   This program is free software; you can redistribute it and/or modify  *
 
13
 *   it under the terms of the GNU General Public License as published by  *
 
14
 *   the Free Software Foundation; either version 2 of the License, or     *
 
15
 *   (at your option) any later version.                                   *
 
16
 *                                                                         *
 
17
 ***************************************************************************/
 
18
/* $Id: qgsprovidercountcalcevent.cpp 4502 2006-01-08 01:18:20Z timlinux $ */
 
19
 
 
20
#include "qgsprovidercountcalcevent.h"
 
21
//Added by qt3to4:
 
22
#include <QCustomEvent>
 
23
 
 
24
QgsProviderCountCalcEvent::QgsProviderCountCalcEvent( long numberFeatures )
 
25
    : QCustomEvent( QGis::ProviderCountCalcEvent ),
 
26
      n( numberFeatures )
 
27
{
 
28
  // NO-OP
 
29
}
 
30
 
 
31
 
 
32
long QgsProviderCountCalcEvent::numberFeatures() const
 
33
{
 
34
  return n;
 
35
}
 
36