Home · All Namespaces · All Classes · Grouped Classes · Modules · Functions codeless banner

filterdemo.h Example File
content/filtering/filterdemo.h

    /****************************************************************************
    **
    ** This file is part of the Qt Extended Opensource Package.
    **
    ** Copyright (C) 2009 Trolltech ASA.
    **
    ** $QT_EXTENDED_DUAL_LICENSE$
    **
    ****************************************************************************/

    #ifndef FILTERDEMO_H
    #define FILTERDEMO_H

    #include <QListView>
    #include <QContentSet>

    class QKeyEvent;

    class FilterDemo : public QListView
    {
        Q_OBJECT
    public:
        FilterDemo( QWidget *parent = 0, Qt::WindowFlags flags = 0 );

    protected:
        void keyPressEvent( QKeyEvent *event );

    private:
        bool nextFilter();

        int index;
        QContentSet contentSet;
    };

    #endif


Copyright © 2009 Trolltech Trademarks
Qt Extended 4.4.3