signalbar.h 774 B

12345678910111213141516171819202122232425262728293031323334
  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. #ifndef SIGNALBAR_H
  15. #define SIGNALBAR_H
  16. #include <QObject>
  17. #include <QStyledItemDelegate>
  18. class SignalBar : public QStyledItemDelegate
  19. {
  20. Q_OBJECT
  21. public:
  22. SignalBar(QObject *parent = 0);
  23. ~SignalBar();
  24. virtual void paint(QPainter *painter,
  25. const QStyleOptionViewItem &option,
  26. const QModelIndex &index) const ;
  27. };
  28. #endif /* SIGNALBAR_H */