tcalc 0.2.0
 
Loading...
Searching...
No Matches
key.hpp
Go to the documentation of this file.
1
12#pragma once
13
14#include <qpushbutton.h>
15
16namespace tcalc_gui {
17
22class Key : public QPushButton
23{
24 Q_OBJECT
25
26public:
33 Key(const QString& text, QWidget* parent = nullptr);
34
35 ~Key() override = default;
36
37signals:
43 void key_clicked(const QString& text);
44
45private slots:
50 void _on_button_clicked();
51};
52
53}
Tcalc key button.
Definition key.hpp:23
void key_clicked(const QString &text)
Emitted when the key is clicked.