00001 #ifndef USERSELECTION_H 00002 #define USERSELECTION_H 00003 00004 #include "ui_userselection.h" 00005 00006 #include <QCompleter> 00007 #include <QtSql> 00008 00009 #include "../../modele/user.h" 00010 00011 class UserSelection : public QWidget, private Ui::UserSelection 00012 { 00013 Q_OBJECT 00014 public: 00015 explicit UserSelection(bool all = false, QWidget *parent = 0); 00016 void clearLineEdit(); 00017 00018 signals: 00019 void userSelect(int id); 00020 00021 public slots: 00022 void on_ValidButton_clicked(); 00023 void on_anciensButton_clicked(); 00024 void userSelected(QString); 00025 void usersChanged(bool first = false); 00026 void logAdminChanged(bool); 00027 00028 private: 00029 QCompleter *completer; 00030 QMap<QString,int> m_id; 00031 bool m_all; 00032 }; 00033 00034 #endif // USERSELECTION_H
1.7.1