mirror of
https://github.com/vale981/tdesktop
synced 2025-03-09 12:36:39 -04:00
29 lines
602 B
C
29 lines
602 B
C
![]() |
/*
|
||
|
This file is part of Telegram Desktop,
|
||
|
the official desktop application for the Telegram messaging service.
|
||
|
|
||
|
For license and copyright information please follow this link:
|
||
|
https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||
|
*/
|
||
|
#pragma once
|
||
|
|
||
|
#include "styles/style_widgets.h"
|
||
|
#include "ui/rp_widget.h"
|
||
|
|
||
|
namespace Ui {
|
||
|
|
||
|
class LevelMeter : public RpWidget {
|
||
|
public:
|
||
|
LevelMeter(QWidget *parent, const style::LevelMeter& st);
|
||
|
void setValue(float value);
|
||
|
|
||
|
protected:
|
||
|
void paintEvent(QPaintEvent *e) override;
|
||
|
|
||
|
private:
|
||
|
const style::LevelMeter &_st;
|
||
|
float _value=0.0f;
|
||
|
};
|
||
|
|
||
|
} // namespace Ui
|