diff options
Diffstat (limited to 'ui/qt/uat_delegate.cpp')
-rw-r--r-- | ui/qt/uat_delegate.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/ui/qt/uat_delegate.cpp b/ui/qt/uat_delegate.cpp index 641edbcc24..09e9ef848b 100644 --- a/ui/qt/uat_delegate.cpp +++ b/ui/qt/uat_delegate.cpp @@ -28,6 +28,9 @@ #include <QEvent> #include <QFileDialog> #include <QLineEdit> +#include <QCheckBox> + +#include "display_filter_edit.h" UatDelegate::UatDelegate(QObject *parent) : QStyledItemDelegate(parent) { @@ -66,6 +69,11 @@ QWidget *UatDelegate::createEditor(QWidget *parent, const QStyleOptionViewItem & // TODO add a live validator? Should SyntaxLineEdit be used? return QStyledItemDelegate::createEditor(parent, option, index); + case PT_TXTMOD_DISPLAY_FILTER: + { + DisplayFilterEdit *editor = new DisplayFilterEdit(parent); + return editor; + } case PT_TXTMOD_HEXBYTES: { // Requires input of the form "ab cd ef" (with possibly no or a colon @@ -81,6 +89,12 @@ QWidget *UatDelegate::createEditor(QWidget *parent, const QStyleOptionViewItem & return editor; } + case PT_TXTMOD_BOOL: + { + // model will handle creating checkbox + return 0; + } + case PT_TXTMOD_NONE: return 0; |