diff options
author | Janosch Knack <j.knack@micromata.com> | 2016-11-16 23:45:02 +0100 |
---|---|---|
committer | Janosch Knack <j.knack@micromata.com> | 2016-11-16 23:45:02 +0100 |
commit | da40729c4d0348897230f94a67bf2261c4564106 (patch) | |
tree | 3ded57e03aac500c68134e532e5eef3618e91e6f /qpushbuttonwithclipboard.h | |
parent | 7f3eb332e20b21b26bed7107c63e51868bf6a0e4 (diff) |
added a copy to clipboard button an the output area
layout changes from formlayout to gridlayout
Diffstat (limited to 'qpushbuttonwithclipboard.h')
-rw-r--r-- | qpushbuttonwithclipboard.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/qpushbuttonwithclipboard.h b/qpushbuttonwithclipboard.h new file mode 100644 index 00000000..60522fa6 --- /dev/null +++ b/qpushbuttonwithclipboard.h @@ -0,0 +1,23 @@ +#ifndef QPUSHBUTTONWITHCLIPBOARD_H_ +#define QPUSHBUTTONWITHCLIPBOARD_H_ + +#include "mainwindow.h" +#include <QPushButton> +#include <QWidget> + +class QPushButtonWithClipboard : public QPushButton +{ + Q_OBJECT + +public: + explicit QPushButtonWithClipboard(const QString &textToCopy = "", MainWindow *parent = 0); + + QString getTextToCopy() const; + void setTextToCopy(const QString &value); + +private: + QString textToCopy; + MainWindow *parent; +}; + +#endif // QPUSHBUTTONWITHCLIPBOARD_H_ |