mirror of
				https://github.com/telegramdesktop/tdesktop
				synced 2025-10-29 15:19:53 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			31 lines
		
	
	
		
			606 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			31 lines
		
	
	
		
			606 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
 |