~ubuntu-branches/ubuntu/trusty/qgis/trusty

« back to all changes in this revision

Viewing changes to src/app/attributetable/qgsattributetableidcolumnpair.h

  • 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:
 
1
/***************************************************************************
 
2
  QgsAttributeTableIdColumnPair.h - Helper class for attribute tables
 
3
  -------------------
 
4
         date                 : Feb 2009
 
5
         copyright            : Vita Cizek
 
6
         email                : weetya (at) gmail.com
 
7
 
 
8
 ***************************************************************************
 
9
 *                                                                         *
 
10
 *   This program is free software; you can redistribute it and/or modify  *
 
11
 *   it under the terms of the GNU General Public License as published by  *
 
12
 *   the Free Software Foundation; either version 2 of the License, or     *
 
13
 *   (at your option) any later version.                                   *
 
14
 *                                                                         *
 
15
 ***************************************************************************/
 
16
 
 
17
#ifndef QGSATTRIBUTETABKEIDCOLUMNPAIR_H
 
18
#define QGSATTRIBUTETABKEIDCOLUMNPAIR_H
 
19
 
 
20
#include <QVariant>
 
21
 
 
22
class QgsAttributeTableIdColumnPair
 
23
{
 
24
    int mId;
 
25
    QVariant mItem;
 
26
 
 
27
  public:
 
28
    QgsAttributeTableIdColumnPair( int anId, QVariant anItem ) : mId( anId ), mItem( anItem ) {}
 
29
    /**
 
30
     * Returns true if this id-column pair is less the the tested one
 
31
     * @param b the tested id-column pair
 
32
     */
 
33
    bool operator<( const QgsAttributeTableIdColumnPair &b ) const;
 
34
    int id() { return mId; }
 
35
};
 
36
 
 
37
#endif