blob: afcec872e74eb9dfcfeabaa920594d7a7103355a [file] [log] [blame]
Nicolas Jager584a80e2016-03-18 16:10:00 -04001/***************************************************************************
Sébastien Blin68abac92019-01-02 17:41:31 -05002 * Copyright (C) 2017-2019 by Savoir-faire Linux *
Nicolas Jager584a80e2016-03-18 16:10:00 -04003 * Author: Jäger Nicolas <nicolas.jager@savoirfairelinux.com> *
4 * *
5 * This program is free software; you can redistribute it and/or modify *
6 * it under the terms of the GNU General Public License as published by *
7 * the Free Software Foundation; either version 3 of the License, or *
8 * (at your option) any later version. *
9 * *
10 * This program is distributed in the hope that it will be useful, *
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13 * GNU General Public License for more details. *
14 * *
15 * You should have received a copy of the GNU General Public License *
16 * along with this program. If not, see <http://www.gnu.org/licenses/>. *
17 **************************************************************************/
18
19#pragma once
20
21#include <QWidget>
22
23namespace Ui {
24class RingButton;
25}
26
27class RingButton : public QWidget
28{
29 Q_OBJECT
30public:
31 explicit RingButton(QWidget* parent = 0);
32 ~RingButton();
33 void setText(const QString& text);
Olivier SOLDANOaee2f882017-09-28 15:46:09 -040034 QString text();
Nicolas Jager584a80e2016-03-18 16:10:00 -040035
36private:
37 Ui::RingButton* ui;
Olivier SOLDANOaee2f882017-09-28 15:46:09 -040038 QString path_ {};
39 void mousePressEvent(QMouseEvent* event);
Nicolas Jager584a80e2016-03-18 16:10:00 -040040
41signals:
42 void clicked() const;
43};