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

sendtextedit.h 603 B

8 years ago
8 years ago
8 years ago
12345678910111213141516171819202122232425262728293031
  1. #ifndef SENDTEXTEDIT_H
  2. #define SENDTEXTEDIT_H
  3. #include <QTextEdit>
  4. #include <QList>
  5. #include <QFileInfo>
  6. class SendTextEdit : public QTextEdit
  7. {
  8. Q_OBJECT
  9. public:
  10. SendTextEdit(QWidget* parent = 0);
  11. signals:
  12. void acceptDropFiles(QList<QFileInfo>);
  13. void ctrlEnterPressed();
  14. void enterPressed();
  15. public slots:
  16. void newLine();
  17. protected:
  18. virtual void dragEnterEvent(QDragEnterEvent *e) override;
  19. virtual void dropEvent(QDropEvent *e) override;
  20. virtual bool eventFilter(QObject *, QEvent *e) override;
  21. private:
  22. bool mCtrlDown =false;
  23. };
  24. #endif // SENDTEXTEDIT_H

mac下的“飞秋”大多数只是飞鸽传书协议,而且未发现令人满意的开源项目,所以基于c++与qt实现了基础的飞秋协议。

Contributors (1)