~ubuntu-branches/ubuntu/precise/pokerth/precise-proposed

« back to all changes in this revision

Viewing changes to src/gui/qt/gamelobbydialog/mygamelistsortfilterproxymodel.h

  • Committer: Bazaar Package Importer
  • Author(s): Evgeni Golov
  • Date: 2009-06-26 00:23:56 UTC
  • mfrom: (1.1.7 upstream) (5.1.4 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090626002356-p3nrzdhhqwk5gpf0
Tags: 0.7.1-1
* New upstream release.
* debian/control:
  + Build-Depend on unversioned boost packages again.
    Closes: #531119, #534086
  + Improve pokerth-server description, one does not need the package
    for one-table games.
  + Standards-Version: 3.8.2, no changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef MYGAMELISTSORTFILTERPROXYMODEL_H
 
2
#define MYGAMELISTSORTFILTERPROXYMODEL_H
 
3
 
 
4
#include <QSortFilterProxyModel>
 
5
 
 
6
class MyGameListSortFilterProxyModel : public QSortFilterProxyModel
 
7
{  
 
8
Q_OBJECT
 
9
 
 
10
 public:
 
11
        MyGameListSortFilterProxyModel(QObject *parent = 0);   
 
12
        void setColumn1RegExp(QRegExp column1) { column1RegExp = column1; }
 
13
        void setColumn2RegExp(QRegExp column2) { column2RegExp = column2; }
 
14
        void setColumn3RegExp(QRegExp column3) { column3RegExp = column3; }
 
15
        
 
16
 protected:
 
17
     bool filterAcceptsRow(int sourceRow, const QModelIndex &sourceParent) const;
 
18
 
 
19
 private:
 
20
         QRegExp column1RegExp;
 
21
         QRegExp column2RegExp;
 
22
         QRegExp column3RegExp;
 
23
 
 
24
};
 
25
 
 
26
#endif // MYGAMELISTSORTFILTERPROXYMODEL_H