mirror of
https://github.com/YACReader/yacreader
synced 2026-03-01 18:33:09 -05:00
24 lines
456 B
C++
24 lines
456 B
C++
#ifndef ROUNDEDCORNERSDIALOG_H
|
|
#define ROUNDEDCORNERSDIALOG_H
|
|
|
|
#include <QColor>
|
|
#include <QDialog>
|
|
|
|
namespace YACReader {
|
|
class RoundedCornersDialog : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit RoundedCornersDialog(QWidget *parent = nullptr);
|
|
|
|
protected:
|
|
void paintEvent(QPaintEvent *) override;
|
|
void setBackgroundColor(const QColor &color);
|
|
|
|
private:
|
|
QColor m_backgroundColor { 255, 255, 255 };
|
|
};
|
|
}
|
|
|
|
#endif // ROUNDEDCORNERSDIALOG_H
|