Skip to content

Commit

Permalink
Fix compile
Browse files Browse the repository at this point in the history
Signed-off-by: Geoff Hutchison <[email protected]>
  • Loading branch information
ghutchis committed Oct 20, 2024
1 parent 8566f2c commit a7afdd7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
6 changes: 4 additions & 2 deletions avogadro/qtgui/richtextdelegate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
7 changes: 5 additions & 2 deletions avogadro/qtgui/richtextdelegate.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,18 @@
#include <QStyledItemDelegate>
#include <QTextDocument>

#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;
Expand Down

1 comment on commit a7afdd7

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ERROR: clang-format-diff detected formatting issues. See the artifact for a patch or run clang-format on your branch.

Please sign in to comment.