mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Rename Text to Ui::Text::String.
This commit is contained in:
@@ -54,9 +54,9 @@ protected:
|
||||
private:
|
||||
struct Row {
|
||||
Question data;
|
||||
Text question = { st::windowMinWidth / 2 };
|
||||
Text keys = { st::windowMinWidth / 2 };
|
||||
Text answer = { st::windowMinWidth / 2 };
|
||||
Ui::Text::String question = { st::windowMinWidth / 2 };
|
||||
Ui::Text::String keys = { st::windowMinWidth / 2 };
|
||||
Ui::Text::String answer = { st::windowMinWidth / 2 };
|
||||
int top = 0;
|
||||
int height = 0;
|
||||
};
|
||||
@@ -73,7 +73,7 @@ private:
|
||||
|
||||
};
|
||||
|
||||
int TextHeight(const Text &text, int available, int lines) {
|
||||
int TextHeight(const Ui::Text::String &text, int available, int lines) {
|
||||
Expects(text.style() != nullptr);
|
||||
|
||||
const auto st = text.style();
|
||||
@@ -179,7 +179,7 @@ void Inner::paintEvent(QPaintEvent *e) {
|
||||
const auto padding = st::autocompleteRowPadding;
|
||||
const auto available = width() - padding.left() - padding.right();
|
||||
auto top = padding.top();
|
||||
const auto drawText = [&](const Text &text, int lines) {
|
||||
const auto drawText = [&](const Ui::Text::String &text, int lines) {
|
||||
text.drawLeftElided(
|
||||
p,
|
||||
padding.left(),
|
||||
|
Reference in New Issue
Block a user