2016-08-17 15:14:08 +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.
|
2016-08-17 15:14:08 +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
|
2016-08-17 15:14:08 +00:00
|
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
namespace Ui {
|
2016-11-08 14:43:10 +00:00
|
|
|
class IconButton;
|
2016-08-17 15:14:08 +00:00
|
|
|
} // namespace Ui
|
|
|
|
|
|
|
|
namespace Settings {
|
|
|
|
|
|
|
|
class FixedBar : public TWidget {
|
|
|
|
public:
|
|
|
|
FixedBar(QWidget *parent);
|
|
|
|
|
2017-02-03 20:07:26 +00:00
|
|
|
void setText(const QString &text);
|
|
|
|
|
2016-08-17 15:14:08 +00:00
|
|
|
protected:
|
|
|
|
void paintEvent(QPaintEvent *e) override;
|
|
|
|
|
2016-08-22 17:16:21 +00:00
|
|
|
int resizeGetHeight(int newWidth) override;
|
|
|
|
|
2017-02-03 20:07:26 +00:00
|
|
|
private:
|
|
|
|
QString _text;
|
|
|
|
|
2016-08-17 15:14:08 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace Settings
|