1.1 --- a/mysortfilterproxymodel.h Fri Oct 02 13:24:55 2009 +0000
1.2 +++ b/mysortfilterproxymodel.h Mon Mar 08 12:21:46 2010 +0000
1.3 @@ -1,48 +1,7 @@
1.4 -/****************************************************************************
1.5 -**
1.6 -** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
1.7 -** Contact: Nokia Corporation (qt-info@nokia.com)
1.8 -**
1.9 -** This file is part of the examples of the Qt Toolkit.
1.10 -**
1.11 -** $QT_BEGIN_LICENSE:LGPL$
1.12 -** Commercial Usage
1.13 -** Licensees holding valid Qt Commercial licenses may use this file in
1.14 -** accordance with the Qt Commercial License Agreement provided with the
1.15 -** Software or, alternatively, in accordance with the terms contained in
1.16 -** a written agreement between you and Nokia.
1.17 -**
1.18 -** GNU Lesser General Public License Usage
1.19 -** Alternatively, this file may be used under the terms of the GNU Lesser
1.20 -** General Public License version 2.1 as published by the Free Software
1.21 -** Foundation and appearing in the file LICENSE.LGPL included in the
1.22 -** packaging of this file. Please review the following information to
1.23 -** ensure the GNU Lesser General Public License version 2.1 requirements
1.24 -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
1.25 -**
1.26 -** In addition, as a special exception, Nokia gives you certain
1.27 -** additional rights. These rights are described in the Nokia Qt LGPL
1.28 -** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
1.29 -** package.
1.30 -**
1.31 -** GNU General Public License Usage
1.32 -** Alternatively, this file may be used under the terms of the GNU
1.33 -** General Public License version 3.0 as published by the Free Software
1.34 -** Foundation and appearing in the file LICENSE.GPL included in the
1.35 -** packaging of this file. Please review the following information to
1.36 -** ensure the GNU General Public License version 3.0 requirements will be
1.37 -** met: http://www.gnu.org/copyleft/gpl.html.
1.38 -**
1.39 -** If you are unsure which license is appropriate for your use, please
1.40 -** contact the sales department at http://www.qtsoftware.com/contact.
1.41 -** $QT_END_LICENSE$
1.42 -**
1.43 -****************************************************************************/
1.44 -
1.45 #ifndef MYSORTFILTERPROXYMODEL_H
1.46 #define MYSORTFILTERPROXYMODEL_H
1.47
1.48 -#include <QDate>
1.49 +//#include <QDate>
1.50 #include <QSortFilterProxyModel>
1.51
1.52 //! [0]
1.53 @@ -52,15 +11,17 @@
1.54
1.55 public:
1.56 MySortFilterProxyModel(QObject *parent = 0);
1.57 +/*
1.58
1.59 QDate filterMinimumDate() const { return minDate; }
1.60 void setFilterMinimumDate(const QDate &date);
1.61
1.62 QDate filterMaximumDate() const { return maxDate; }
1.63 void setFilterMaximumDate(const QDate &date);
1.64 -
1.65 protected:
1.66 +*/
1.67 bool filterAcceptsRow(int sourceRow, const QModelIndex &sourceParent) const;
1.68 + /*
1.69 bool lessThan(const QModelIndex &left, const QModelIndex &right) const;
1.70
1.71 private:
1.72 @@ -68,7 +29,7 @@
1.73
1.74 QDate minDate;
1.75 QDate maxDate;
1.76 +*/
1.77 };
1.78 -//! [0]
1.79
1.80 #endif