Logo Search packages:      
Sourcecode: kcm-fcitx version File versions  Download package

FcitxSubConfigWidget_p.h

#ifndef FCITXSUBCONFIGWIDGET_P_H
#define FCITXSUBCONFIGWIDGET_P_H
#include <QAbstractListModel>

namespace Fcitx
{
00007     class FcitxConfigFile
    {
    public:
        FcitxConfigFile(const QString& path);
        QString name();
        const QString& path() const;
    private:
        QString m_path;
    };

00017     class FcitxConfigFileItemModel : public QAbstractListModel
    {
        Q_OBJECT
    public:
        FcitxConfigFileItemModel(QObject* parent = 0);
        virtual ~FcitxConfigFileItemModel();
        virtual QModelIndex index(int row, int column, const QModelIndex& parent = QModelIndex()) const;
        virtual int rowCount(const QModelIndex& parent = QModelIndex()) const;
        virtual QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const;
        void addConfigFile(FcitxConfigFile* configfile);
    private:
        QList<FcitxConfigFile*> m_files;
    };
}

#endif

Generated by  Doxygen 1.6.0   Back to index