tdesktop/Telegram/SourceFiles/passport/passport_panel_details_row.h

40 lines
738 B
C
Raw Normal View History

/*
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 "ui/rp_widget.h"
namespace Ui {
class InputField;
} // namespace Ui
namespace Passport {
class PanelDetailsRow : public Ui::RpWidget {
public:
PanelDetailsRow(
QWidget *parent,
const QString &label,
const QString &value);
bool setFocusFast();
QString getValue() const;
protected:
int resizeGetHeight(int newWidth) override;
void paintEvent(QPaintEvent *e) override;
private:
QString _label;
object_ptr<Ui::InputField> _field;
};
} // namespace Passport