mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-01 20:17:13 +02:00
Piano: Create controller widgets for processor parameters
These widgets attach to a processor parameter and keep the two sides in sync. They will become very useful for smart processor interfaces.
This commit is contained in:
committed by
Linus Groh
parent
481f7d6afa
commit
8f8ae5eb53
Notes:
sideshowbarker
2024-07-18 01:05:36 +09:00
Author: https://github.com/kleinesfilmroellchen Commit: https://github.com/SerenityOS/serenity/commit/8f8ae5eb53b Pull-request: https://github.com/SerenityOS/serenity/pull/10725 Reviewed-by: https://github.com/linusg ✅
@@ -0,0 +1,22 @@
|
||||
/*
|
||||
* Copyright (c) 2021, kleines Filmröllchen <malu.bertsch@gmail.com>.
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <AK/RefPtr.h>
|
||||
#include <LibGUI/Label.h>
|
||||
|
||||
class WidgetWithLabel {
|
||||
public:
|
||||
WidgetWithLabel(RefPtr<GUI::Label> value_label)
|
||||
: m_value_label(move(value_label))
|
||||
{
|
||||
}
|
||||
RefPtr<GUI::Label> value_label() { return m_value_label; }
|
||||
|
||||
protected:
|
||||
RefPtr<GUI::Label> m_value_label;
|
||||
};
|
||||
Reference in New Issue
Block a user