00001 /******************************************************************************* 00002 00003 This file is part of mDictionary. 00004 00005 mDictionary is free software: you can redistribute it and/or modify 00006 it under the terms of the GNU General Public License as published by 00007 the Free Software Foundation, either version 3 of the License, or 00008 (at your option) any later version. 00009 00010 mDictionary is distributed in the hope that it will be useful, 00011 but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 GNU General Public License for more details. 00014 00015 You should have received a copy of the GNU General Public License 00016 along with mDictionary. If not, see <http://www.gnu.org/licenses/>. 00017 00018 Copyright 2010 Comarch S.A. 00019 00020 *******************************************************************************/ 00021 00022 //Created by Mateusz Półrola 00023 00024 #ifndef WORDLISTPROXYSTYLE_H 00025 #define WORDLISTPROXYSTYLE_H 00026 00027 #include <QProxyStyle> 00028 #include <QtGui> 00029 00030 class WordListProxyStyle : public QProxyStyle 00031 { 00032 public: 00033 WordListProxyStyle(); 00034 void drawPrimitive(PrimitiveElement element, 00035 const QStyleOption *option, 00036 QPainter *painter, 00037 const QWidget *widget) const; 00038 00039 private: 00040 QPixmap starPixmapOn; 00041 QPixmap starPixmapOff; 00042 }; 00043 00044 #endif // WORDLISTPROXYSTYLE_H