2017-09-25 09:02:55 +00:00
|
|
|
/*
|
|
|
|
This file is part of Telegram Desktop,
|
2018-01-03 10:23:14 +00:00
|
|
|
the official desktop application for the Telegram messaging service.
|
2017-09-25 09:02:55 +00:00
|
|
|
|
2018-01-03 10:23:14 +00:00
|
|
|
For license and copyright information please follow this link:
|
|
|
|
https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
2017-09-25 09:02:55 +00:00
|
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "ui/rp_widget.h"
|
|
|
|
|
|
|
|
namespace Info {
|
|
|
|
namespace Profile {
|
|
|
|
|
|
|
|
class FloatingIcon : public Ui::RpWidget {
|
|
|
|
public:
|
|
|
|
FloatingIcon(
|
|
|
|
RpWidget *parent,
|
|
|
|
const style::icon &icon,
|
|
|
|
QPoint position);
|
|
|
|
|
|
|
|
protected:
|
|
|
|
void paintEvent(QPaintEvent *e) override;
|
|
|
|
|
|
|
|
private:
|
|
|
|
struct Tag {
|
|
|
|
};
|
|
|
|
FloatingIcon(
|
|
|
|
RpWidget *parent,
|
|
|
|
const style::icon &icon,
|
|
|
|
QPoint position,
|
|
|
|
const Tag &);
|
|
|
|
|
|
|
|
not_null<const style::icon*> _icon;
|
|
|
|
QPoint _point;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace Profile
|
|
|
|
} // namespace Info
|