mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 06:32:30 +02:00
LibGUI: Let GModel specify the drag data type
GModel subclasses can now override drag_data_type() to specify which type GAbstractView should set for drag data. The default implementation returns a null string, which disables dragging from this widget.
This commit is contained in:
committed by
Andreas Kling
parent
d3ce7ae0e3
commit
dec95cb8b3
Notes:
sideshowbarker
2024-07-19 09:52:53 +09:00
Author: https://github.com/bugaevc Commit: https://github.com/SerenityOS/serenity/commit/dec95cb8b39 Pull-request: https://github.com/SerenityOS/serenity/pull/1115
@@ -87,6 +87,11 @@ void GSortingProxyModel::update()
|
||||
target().update();
|
||||
}
|
||||
|
||||
StringView GSortingProxyModel::drag_data_type() const
|
||||
{
|
||||
return target().drag_data_type();
|
||||
}
|
||||
|
||||
void GSortingProxyModel::set_key_column_and_sort_order(int column, GSortOrder sort_order)
|
||||
{
|
||||
if (column == m_key_column && sort_order == m_sort_order)
|
||||
|
||||
Reference in New Issue
Block a user