mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 14:38:11 +00:00
Make it possible to sort a GTableModel by column+order.
This is accomplished by putting a GSortingProxyTableModel between the model and the view. It's pretty simplistic but it works for this use case. :^)
This commit is contained in:
parent
0680fe2383
commit
7d1142c7d9
16 changed files with 278 additions and 40 deletions
|
@ -19,6 +19,17 @@ bool String::operator==(const String& other) const
|
|||
return !memcmp(characters(), other.characters(), length());
|
||||
}
|
||||
|
||||
bool String::operator<(const String& other) const
|
||||
{
|
||||
if (!m_impl)
|
||||
return other.m_impl;
|
||||
|
||||
if (!other.m_impl)
|
||||
return false;
|
||||
|
||||
return strcmp(characters(), other.characters());
|
||||
}
|
||||
|
||||
String String::empty()
|
||||
{
|
||||
return StringImpl::the_empty_stringimpl();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue