1 /* 2 * wpa_gui - SignalBar class 3 * Copyright (c) 2011, Kel Modderman <kel@otaku42.de> 4 * 5 * This program is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License version 2 as 7 * published by the Free Software Foundation. 8 * 9 * Alternatively, this software may be distributed under the terms of BSD 10 * license. 11 * 12 * See README and COPYING for more details. 13 */ 14 15 #ifndef SIGNALBAR_H 16 #define SIGNALBAR_H 17 18 #include <QObject> 19 #include <QStyledItemDelegate> 20 21 class SignalBar : public QStyledItemDelegate 22 { 23 Q_OBJECT 24 25 public: 26 SignalBar(QObject *parent = 0); 27 ~SignalBar(); 28 29 virtual void paint(QPainter *painter, 30 const QStyleOptionViewItem &option, 31 const QModelIndex &index) const ; 32 }; 33 34 #endif /* SIGNALBAR_H */ 35