tdesktop/Telegram/SourceFiles/ui/widgets/level_meter.h

31 lines
606 B
C
Raw Normal View History

2019-01-05 11:08:02 +00:00
/*
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);
2019-01-11 10:07:56 +00:00
2019-01-05 11:08:02 +00:00
void setValue(float value);
protected:
void paintEvent(QPaintEvent *e) override;
private:
const style::LevelMeter &_st;
2019-01-11 10:07:56 +00:00
float _value = 0.0f;
2019-01-05 11:08:02 +00:00
};
} // namespace Ui