1 // Copyright 2005-2019 The Mumble Developers. All rights reserved.
2 // Use of this source code is governed by a BSD-style license
3 // that can be found in the LICENSE file at the root of the
4 // Mumble source tree or at <https://www.mumble.info/LICENSE>.
5 
6 #ifndef MUMBLE_MUMBLE_PTTBUTTONWIDGET_H_
7 #define MUMBLE_MUMBLE_PTTBUTTONWIDGET_H_
8 
9 #include "ui_PTTButtonWidget.h"
10 
11 class PTTButtonWidget : public QWidget, public Ui::qwPTTButtonWidget {
12 		Q_OBJECT
13 		Q_DISABLE_COPY(PTTButtonWidget)
14 	protected:
15 		void closeEvent(QCloseEvent *e) Q_DECL_OVERRIDE;
16 	public:
17 		PTTButtonWidget(QWidget *p = 0);
18 	public slots:
19 		void on_qpbPushToTalk_pressed();
20 		void on_qpbPushToTalk_released();
21 	signals:
22 		void triggered(bool checked, QVariant);
23 };
24 
25 #endif  // PTTBUTTONWIDGET_H_
26