mirror of https://gitee.com/cxasm/notepad--.git
24 lines
510 B
C++
Executable File
24 lines
510 B
C++
Executable File
#pragma once
|
|
#include <qtreewidget.h>
|
|
class QTreeWidgetSortItem : public QTreeWidgetItem
|
|
{
|
|
public:
|
|
QTreeWidgetSortItem(int type);
|
|
QTreeWidgetSortItem(const QStringList &strings, int type);
|
|
virtual ~QTreeWidgetSortItem();
|
|
virtual bool operator<(const QTreeWidgetItem &other) const override;
|
|
|
|
static void setSortColumn(int index)
|
|
{
|
|
s_sortType = index;
|
|
}
|
|
static void setSyncOrder(bool v)
|
|
{
|
|
s_syncOrder = v;
|
|
}
|
|
private :
|
|
static int s_sortType;
|
|
static bool s_syncOrder;
|
|
};
|
|
|