tdesktop/Telegram/SourceFiles/ui/unread_badge.h

30 lines
547 B
C
Raw Normal View History

2017-12-17 11:04:47 +00:00
/*
This file is part of Telegram Desktop,
the official desktop application for the Telegram messaging service.
2017-12-17 11:04:47 +00:00
For license and copyright information please follow this link:
https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
2017-12-17 11:04:47 +00:00
*/
#pragma once
#include "ui/rp_widget.h"
namespace Ui {
class UnreadBadge : public RpWidget {
public:
using RpWidget::RpWidget;
void setText(const QString &text, bool active);
protected:
void paintEvent(QPaintEvent *e) override;
private:
QString _text;
bool _active = false;
};
} // namespace Ui