richtextitemdelegate.h (krename-4.0.9) | : | richtextitemdelegate.h (krename-4.90.90) | ||
---|---|---|---|---|
skipping to change at line 18 | skipping to change at line 18 | |||
/*************************************************************************** | /*************************************************************************** | |||
* * | * * | |||
* This program is free software; you can redistribute it and/or modify * | * This program is free software; you can redistribute it and/or modify * | |||
* it under the terms of the GNU General Public License as published by * | * it under the terms of the GNU General Public License as published by * | |||
* the Free Software Foundation; either version 2 of the License, or * | * the Free Software Foundation; either version 2 of the License, or * | |||
* (at your option) any later version. * | * (at your option) any later version. * | |||
* * | * * | |||
***************************************************************************/ | ***************************************************************************/ | |||
#ifndef RICHTEXT_ITEM_DELEGTATE_H_ | #ifndef RICHTEXT_ITEM_DELEGATE_H | |||
#define RICHTEXT_ITEM_DELEGTATE_H_ | #define RICHTEXT_ITEM_DELEGATE_H | |||
#include <QItemDelegate> | #include <QItemDelegate> | |||
class QTextDocument; | class QTextDocument; | |||
class RichTextItemDelegate : public QItemDelegate { | class RichTextItemDelegate : public QItemDelegate | |||
{ | ||||
public: | public: | |||
RichTextItemDelegate(QObject* parent = NULL); | explicit RichTextItemDelegate(QObject *parent = nullptr); | |||
virtual ~RichTextItemDelegate() { } | virtual ~RichTextItemDelegate() { } | |||
virtual void paint (QPainter* painter, const QStyleOptionViewItem& option, c | virtual void paint(QPainter *painter, const QStyleOptionViewItem &option, co | |||
onst QModelIndex& index ) const; | nst QModelIndex &index) const; | |||
virtual QSize sizeHint(const QStyleOptionViewItem& option, const QModelIndex | virtual QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex | |||
& index ) const; | &index) const; | |||
private: | private: | |||
QTextDocument* m_document; | QTextDocument *m_document; | |||
}; | }; | |||
#endif // RICHTEXT_ITEM_DELEGTATE_H_ | #endif // RICHTEXT_ITEM_DELEGATE_H | |||
End of changes. 6 change blocks. | ||||
9 lines changed or deleted | 10 lines changed or added |