You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

usertreewidget.h 833B

12345678910111213141516171819202122232425262728293031323334353637
  1. #ifndef USERTREEWIDGET_H
  2. #define USERTREEWIDGET_H
  3. #include <QTreeWidget>
  4. #include <QHeaderView>
  5. #include <QVariant>
  6. #include "netsoul.h"
  7. class UserTreeWidget : public QTreeWidget
  8. {
  9. Q_OBJECT
  10. public:
  11. explicit UserTreeWidget(QWidget *parent = 0);
  12. NetSoul::User getSelectedUser();
  13. NetSoul::Users getSelectedUsers();
  14. signals:
  15. void userSelected(NetSoul::User);
  16. public slots:
  17. void updateUser(NetSoul::User user);
  18. void updateUsers(NetSoul::Users users);
  19. void addUser(NetSoul::User user);
  20. void addUsers(NetSoul::Users users);
  21. void remove(QStringList logins);
  22. void filter(QString text);
  23. void resetUsers();
  24. private slots:
  25. void itemDoubleClicked(QTreeWidgetItem* item,int);
  26. private:
  27. bool itemContains(QTreeWidgetItem *item, QString text);
  28. };
  29. #endif // USERTREEWIDGET_H