From 00a3dfb958d0ebcef0b1283262e57412f531d1ae Mon Sep 17 00:00:00 2001 From: RedLine AI Agent Date: Fri, 5 Sep 2025 20:54:42 +0000 Subject: [PATCH] Update: app/xtreewidgetitem.h --- app/xtreewidgetitem.h | 72 +++++++++++++++++++++---------------------- 1 file changed, 36 insertions(+), 36 deletions(-) diff --git a/app/xtreewidgetitem.h b/app/xtreewidgetitem.h index ff1f544..213bc36 100644 --- a/app/xtreewidgetitem.h +++ b/app/xtreewidgetitem.h @@ -1,36 +1,36 @@ -#ifndef XTREEWIDGETITEM_H -#define XTREEWIDGETITEM_H - -#include -#include - -enum TREE_CATEGORY { - CATEGORY_NONE = 0x00, - CATEGORY_FILE = 0x01, - CATEGORY_TYPE = 0x02 -}; - -// Custom item class -class XTreeWidgetItem : public QTreeWidgetItem -{ -public: - // Flag to indicate if the item is a collapsible group/header. - bool isGroup; - - // Constructors: default to non-group unless specified. - XTreeWidgetItem(QTreeWidget *parent, bool group = false); - XTreeWidgetItem(QTreeWidgetItem *parent, bool group = false); - - void SetCategory(TREE_CATEGORY category); - TREE_CATEGORY GetCategory(); - - // Override the less-than operator to customize sorting. - bool operator<(const QTreeWidgetItem &other) const override; - XTreeWidgetItem &operator =(const XTreeWidgetItem &other); - -private: - TREE_CATEGORY mCategory; -}; - - -#endif // XTREEWIDGETITEM_H +#ifndef XTREEWIDGETITEM_H +#define XTREEWIDGETITEM_H + +#include +#include + +enum TREE_CATEGORY { + CATEGORY_NONE = 0x00, + CATEGORY_FILE = 0x01, + CATEGORY_TYPE = 0x02 +}; + +// Custom item class +class XTreeWidgetItem : public QTreeWidgetItem +{ +public: + // Flag to indicate if the item is a collapsible group/header. + bool isGroup; + + // Constructors: default to non-group unless specified. + XTreeWidgetItem(QTreeWidget *parent, bool group = false); + XTreeWidgetItem(QTreeWidgetItem *parent, bool group = false); + + void SetCategory(TREE_CATEGORY category); + TREE_CATEGORY GetCategory(); + + // Override the less-than operator to customize sorting. + bool operator<(const QTreeWidgetItem &other) const override; + XTreeWidgetItem &operator =(const XTreeWidgetItem &other); + +private: + TREE_CATEGORY mCategory; +}; + + +#endif // XTREEWIDGETITEM_H