2 * Copyright © 2003-2007 Fredrik Höglund <fredrik@kde.org>
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public
6 * License version 2 as published by the Free Software Foundation.
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 * General Public License for more details.
13 * You should have received a copy of the GNU General Public License
14 * along with this program; see the file COPYING. If not, write to
15 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
16 * Boston, MA 02110-1301, USA.
23 #include <QModelIndex>
25 #include "ui_themepage.h"
27 class CursorThemeModel
;
31 class ThemePage
: public QWidget
, private Ui::ThemePage
36 ThemePage(QWidget
* parent
= 0);
44 static bool haveXfixes();
50 void currentChanged(const QModelIndex
&, const QModelIndex
&);
51 void installClicked();
55 void selectRow(int) const;
56 void selectRow(const QModelIndex
&index
) const { selectRow(index
.row()); }
57 bool installThemes(const QString
&file
);
58 bool applyTheme(const CursorTheme
*theme
);
59 bool iconsIsWritable() const;
61 CursorThemeModel
*model
;
62 SortProxyModel
*proxy
;
64 // This index refers to the CursorThemeModel, not the proxy or the view
65 QPersistentModelIndex appliedIndex
;