mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-24 02:12:09 -05:00
LibGUI: Add LogStream operator<< for GModelIndex
This commit is contained in:
parent
fc43cf929d
commit
203612439a
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