54 lines
1.1 KiB
C++
54 lines
1.1 KiB
C++
/***************************************************************************
|
|
|
|
source::worx raDIYo
|
|
Copyright © 2020-2022 c.holzheuer
|
|
chris@sourceworx.org
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation; either version 2 of the License, or
|
|
(at your option) any later version.
|
|
|
|
***************************************************************************/
|
|
|
|
|
|
#ifndef SWDIALBUTTON_H
|
|
#define SWDIALBUTTON_H
|
|
|
|
#include <QPushButton>
|
|
#include <QDebug>
|
|
|
|
#include <swdialwidget.h>
|
|
|
|
|
|
/**
|
|
* @brief Ein QPushButtonder der sich programmatisch 'hovern'
|
|
* und per RotaryControl bedienen lässt.
|
|
*
|
|
* @see QPushButton,
|
|
* @see SWDialWidget
|
|
*/
|
|
|
|
class SWDialButton : public QPushButton, public SWDialWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
explicit SWDialButton( QWidget* parent = nullptr );
|
|
virtual ~SWDialButton() = default;
|
|
|
|
signals:
|
|
|
|
void widgetClicked( SWDialWidget* );
|
|
|
|
protected:
|
|
|
|
void paintEvent( QPaintEvent* ) override;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // SWDIALBUTTON_H
|