Quantum GIS API Documentation  1.8
src/core/qgsdbfilterproxymodel.h
Go to the documentation of this file.
00001 /***************************************************************************
00002                          qgsdbfilterproxymodel.h  -  description
00003                          -----------------------
00004     begin                : Dec 2007
00005     copyright            : (C) 2007 by Marco Hugentobler
00006     email                : marco dot hugentobler at karto dot baug dot ethz dot ch
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
00015  *                                                                         *
00016  ***************************************************************************/
00017 
00018 #ifndef QGSDBFILTERPROXYMODEL_H
00019 #define QGSDBFILTERPROXYMODEL_H
00020 
00021 #include <QSortFilterProxyModel>
00022 
00025 class CORE_EXPORT QgsDbFilterProxyModel: public QSortFilterProxyModel
00026 {
00027   public:
00028     QgsDbFilterProxyModel( QObject* parent = 0 );
00029     ~QgsDbFilterProxyModel();
00031     void _setFilterWildcard( const QString& pattern );
00033     void _setFilterRegExp( const QString& pattern );
00034 
00035   protected:
00036     virtual bool filterAcceptsRow( int row, const QModelIndex & source_parent ) const;
00037 };
00038 
00039 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines