hottestwidget.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. #ifndef HOTTESTWIDGET_H
  2. #define HOTTESTWIDGET_H
  3. #include <QWidget>
  4. #include <QHotkey>
  5. #include <QThread>
  6. namespace Ui {
  7. class HotTestWidget;
  8. }
  9. class HotTestWidget : public QWidget
  10. {
  11. Q_OBJECT
  12. public:
  13. explicit HotTestWidget(QWidget *parent = 0);
  14. ~HotTestWidget();
  15. private slots:
  16. void setShortcut_1(const QKeySequence &sequence);
  17. void setShortcut_2(const QKeySequence &sequence);
  18. void setShortcut_3(const QKeySequence &sequence);
  19. void setShortcut_4(const QKeySequence &sequence);
  20. void setShortcut_5(const QKeySequence &sequence);
  21. void increase_1();
  22. void increase_2();
  23. void increase_3();
  24. void increase_4();
  25. void increase_5();
  26. void on_resetButton_1_clicked();
  27. void on_resetButton_2_clicked();
  28. void on_resetButton_3_clicked();
  29. void on_resetButton_4_clicked();
  30. void on_resetButton_5_clicked();
  31. void on_groupBox_toggled(bool checked);
  32. void on_threadEnableCheckBox_clicked();
  33. void on_registeredCheckBox_toggled(bool checked);
  34. void increase_native();
  35. private:
  36. Ui::HotTestWidget *ui;
  37. QHotkey *hotkey_1;
  38. QHotkey *hotkey_2;
  39. QHotkey *hotkey_3;
  40. QHotkey *hotkey_4;
  41. QHotkey *hotkey_5;
  42. QThread *thread4;
  43. QThread *thread5;
  44. QList<QHotkey*> testHotkeys;
  45. QHotkey *nativeHotkey;
  46. };
  47. #endif // HOTTESTWIDGET_H