mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-07 01:56:38 +00:00
DisplaySettings: Stop using DeprecatedString
This also further improves error propagation in cases where String demands it.
This commit is contained in:
parent
c9ad252e33
commit
44b67db7ab
Notes:
sideshowbarker
2024-07-18 02:47:59 +09:00
Author: https://github.com/implicitfield
Commit: 44b67db7ab
Pull-request: https://github.com/SerenityOS/serenity/pull/17893
13 changed files with 217 additions and 116 deletions
|
@ -7,6 +7,7 @@
|
|||
#pragma once
|
||||
|
||||
#include "MonitorWidget.h"
|
||||
#include <AK/String.h>
|
||||
#include <LibCore/Timer.h>
|
||||
#include <LibEDID/EDID.h>
|
||||
#include <LibGUI/ColorInput.h>
|
||||
|
@ -41,15 +42,15 @@ private:
|
|||
ErrorOr<void> create_frame();
|
||||
ErrorOr<void> create_resolution_list();
|
||||
ErrorOr<void> load_current_settings();
|
||||
void selected_screen_index_or_resolution_changed();
|
||||
ErrorOr<void> selected_screen_index_or_resolution_changed();
|
||||
|
||||
size_t m_selected_screen_index { 0 };
|
||||
|
||||
WindowServer::ScreenLayout m_screen_layout;
|
||||
Vector<DeprecatedString> m_screens;
|
||||
Vector<String> m_screens;
|
||||
Vector<Optional<EDID::Parser>> m_screen_edids;
|
||||
Vector<Gfx::IntSize> m_resolutions;
|
||||
Vector<DeprecatedString> m_resolution_strings;
|
||||
Vector<String> m_resolution_strings;
|
||||
|
||||
RefPtr<DisplaySettings::MonitorWidget> m_monitor_widget;
|
||||
RefPtr<GUI::ComboBox> m_screen_combo;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue