LibGUI: Add LogStream operator<< for GModelIndex
This commit is contained in:
parent
fc43cf929d
commit
203612439a
Notes:
sideshowbarker
2024-07-19 12:37:22 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/203612439ac
1 changed files with 8 additions and 0 deletions
|
@ -1,5 +1,8 @@
|
|||
#pragma once
|
||||
|
||||
#include <AK/AKString.h>
|
||||
#include <AK/LogStream.h>
|
||||
|
||||
class GModel;
|
||||
|
||||
class GModelIndex {
|
||||
|
@ -40,3 +43,8 @@ private:
|
|||
int m_column { -1 };
|
||||
void* m_internal_data { nullptr };
|
||||
};
|
||||
|
||||
inline const LogStream& operator<<(const LogStream& stream, const GModelIndex& value)
|
||||
{
|
||||
return stream << String::format("GModelIndex(%d,%d)", value.row(), value.column());
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue