From a7afdd77ddd08e6d932f09d801017a23ddae7736 Mon Sep 17 00:00:00 2001 From: Geoff Hutchison Date: Sun, 20 Oct 2024 16:58:45 -0400 Subject: [PATCH] Fix compile Signed-off-by: Geoff Hutchison --- avogadro/qtgui/richtextdelegate.cpp | 6 ++++-- avogadro/qtgui/richtextdelegate.h | 7 +++++-- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/avogadro/qtgui/richtextdelegate.cpp b/avogadro/qtgui/richtextdelegate.cpp index 365b9b50b9..4b8ea899e0 100644 --- a/avogadro/qtgui/richtextdelegate.cpp +++ b/avogadro/qtgui/richtextdelegate.cpp @@ -22,11 +22,13 @@ namespace Avogadro::QtGui { // https://gist.github.com/jniemann66/dbc298b35a840bf3f1a2206ea6284c7b // and https://stackoverflow.com/a/66412883/131896 -RichTextDelegate::RichTextDelegate(QObject* parent) - : QStyledItemDelegate(parent) +RichTextDelegate::RichTextDelegate(QObject* parent_) + : QStyledItemDelegate(parent_) { } +RichTextDelegate::~RichTextDelegate(){}; + QSize RichTextDelegate::sizeHint(const QStyleOptionViewItem& o, const QModelIndex& index) const { diff --git a/avogadro/qtgui/richtextdelegate.h b/avogadro/qtgui/richtextdelegate.h index 403e3cb7bf..909f4f5cee 100644 --- a/avogadro/qtgui/richtextdelegate.h +++ b/avogadro/qtgui/richtextdelegate.h @@ -21,15 +21,18 @@ #include #include +#include "avogadroqtguiexport.h" + namespace Avogadro { namespace QtGui { -class RichTextDelegate : public QStyledItemDelegate +class AVOGADROQTGUI_EXPORT RichTextDelegate : public QStyledItemDelegate { Q_OBJECT public: - RichTextDelegate(QObject* parent = nullptr); + explicit RichTextDelegate(QObject* parent = 0); + ~RichTextDelegate() override; QSize sizeHint(const QStyleOptionViewItem& o, const QModelIndex& index) const override;