diff --git a/src/model/danboorupostmodel.h b/src/model/danboorupostmodel.h index 5ac6daa..b7e06da 100644 --- a/src/model/danboorupostmodel.h +++ b/src/model/danboorupostmodel.h @@ -1,23 +1,20 @@ /* - * - * Copyright 2013 Luca Beltrame + * Copyright 2015 Luca Beltrame * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License as - * published by the Free Software Foundation; either version 2 of - * the License or (at your option) version 3 or any later version - * accepted by the membership of KDE e.V. (or its successor approved - * by the membership of KDE e.V.), which shall act as a proxy - * defined in Section 14 of version 3 of the license. + * This file is part of Danbooru Client. * - * This program is distributed in the hope that it will be useful, + * Danbooru Client is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Danbooru Client is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - * + * along with Danbooru Client. If not, see . */ #ifndef DANBOORUPOSTMODEL_H @@ -56,7 +53,7 @@ public: DanbooruPostModel(QObject *parent = 0); ~DanbooruPostModel(); - int rowCount(const QModelIndex &parent = QModelIndex()) const; + Q_INVOKABLE int rowCount(const QModelIndex &parent = QModelIndex()) const; QVariant data(const QModelIndex &index, int role) const; void clear(); QHash roleNames() const;