From b11ad2bb1946cf5356037f7a16e4e42558fd955e Mon Sep 17 00:00:00 2001
From: wumu <mayi@mayi.com>
Date: 星期五, 10 五月 2024 22:37:52 +0800
Subject: [PATCH] 0510

---
 internal_system_v1/comboboxdelegate.h |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/internal_system_v1/comboboxdelegate.h b/internal_system_v1/comboboxdelegate.h
index 4e3afd9..77826a3 100644
--- a/internal_system_v1/comboboxdelegate.h
+++ b/internal_system_v1/comboboxdelegate.h
@@ -8,13 +8,14 @@
 class ComboBoxDelegate : public QItemDelegate
 {
 public:
-    ComboBoxDelegate(QStringList labels,QObject *parent=0);
+    ComboBoxDelegate(QStringList labels,QObject *parent=0,bool edit=false);
 
     QWidget *createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const;
     void setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const;
 
 private:
     QStringList m_labels;
+    bool m_edit;
 };
 
 #endif // COMBOBOXDELEGATE_H

--
Gitblit v1.8.0