mirror of
https://gitee.com/vnotex/vnote.git
synced 2025-07-05 22:09:52 +08:00
21 lines
451 B
C++
21 lines
451 B
C++
#ifndef TREEWIDGETITEM_H
|
|
#define TREEWIDGETITEM_H
|
|
|
|
#include <QTreeWidgetItem>
|
|
|
|
|
|
namespace vnotex
|
|
{
|
|
// Provide additional features:
|
|
// 1. Sorting case-insensitive.
|
|
class TreeWidgetItem : public QTreeWidgetItem
|
|
{
|
|
public:
|
|
TreeWidgetItem(QTreeWidget *p_parent, const QStringList &p_strings, int p_type = Type);
|
|
|
|
bool operator<(const QTreeWidgetItem &p_other) const Q_DECL_OVERRIDE;
|
|
};
|
|
}
|
|
|
|
#endif // TREEWIDGETITEM_H
|