llm-chat 0.0.0
LLM-Chat
Loading...
Searching...
No Matches
thread_proxy_list.h
Go to the documentation of this file.
1#pragma once
2
3#include <QSortFilterProxyModel>
4
5namespace llm_chat {
6
8class ThreadProxyList : public QSortFilterProxyModel {
9 Q_OBJECT
10
11 public:
14 explicit ThreadProxyList(QObject *parent = nullptr);
15
16 protected:
21 [[nodiscard]] bool lessThan(const QModelIndex &left,
22 const QModelIndex &right) const override;
23};
24
25} // namespace llm_chat
The ThreadProxyList class provides a sorted model for the chat.
Definition thread_proxy_list.h:8
bool lessThan(const QModelIndex &left, const QModelIndex &right) const override
Returns true if the left item is less than the right item.
Definition thread_proxy_list.cpp:16
ThreadProxyList(QObject *parent=nullptr)
Constructs a new ThreadProxyList object.
Definition thread_proxy_list.cpp:9
Definition backend.cpp:11