signalbar.h 555 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * wpa_gui - SignalBar class
  3. * Copyright (c) 2011, Kel Modderman <kel@otaku42.de>
  4. *
  5. * This software may be distributed under the terms of the BSD license.
  6. * See README for more details.
  7. */
  8. #ifndef SIGNALBAR_H
  9. #define SIGNALBAR_H
  10. #include <QObject>
  11. #include <QStyledItemDelegate>
  12. class SignalBar : public QStyledItemDelegate
  13. {
  14. Q_OBJECT
  15. public:
  16. SignalBar(QObject *parent = 0);
  17. ~SignalBar();
  18. virtual void paint(QPainter *painter,
  19. const QStyleOptionViewItem &option,
  20. const QModelIndex &index) const ;
  21. };
  22. #endif /* SIGNALBAR_H */