* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
- * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
#ifndef MESSAGEFILTER_H_
#define MESSAGEFILTER_H_
#include <QSortFilterProxyModel>
***************************************************************************/
#ifndef MESSAGEFILTER_H_
#define MESSAGEFILTER_H_
#include <QSortFilterProxyModel>
public:
MessageFilter(MessageModel *, const QList<BufferId> &buffers = QList<BufferId>(), QObject *parent = 0);
public:
MessageFilter(MessageModel *, const QList<BufferId> &buffers = QList<BufferId>(), QObject *parent = 0);
- inline bool containsBuffer(const BufferId &id) const { return _validBuffers.contains(id); }
- inline QSet<BufferId> containedBuffers() const { return _validBuffers; }
+ bool containsBuffer(const BufferId &id) const { return _validBuffers.contains(id); }
+ QSet<BufferId> containedBuffers() const { return _validBuffers; }
+
+ bool filterAcceptsRow(int sourceRow, const QModelIndex &sourceParent) const override;