mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-27 23:09:08 +00:00
FileManager+LibGUI: Add a simple location textbox.
The widget layout here is a bit off and needs work.
This commit is contained in:
parent
63cdc3d2d5
commit
d94abc4f81
Notes:
sideshowbarker
2024-07-19 15:33:58 +09:00
Author: https://github.com/awesomekling
Commit: d94abc4f81
5 changed files with 23 additions and 13 deletions
|
@ -15,9 +15,11 @@ GTextBox::~GTextBox()
|
|||
{
|
||||
}
|
||||
|
||||
void GTextBox::set_text(String&& text)
|
||||
void GTextBox::set_text(const String& text)
|
||||
{
|
||||
m_text = move(text);
|
||||
if (m_text == text)
|
||||
return;
|
||||
m_text = text;
|
||||
m_cursor_position = m_text.length();
|
||||
update();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue