diff --git a/frontend/view/result-view-delegate.cpp b/frontend/view/result-view-delegate.cpp index 25db800..c5f2f98 100644 --- a/frontend/view/result-view-delegate.cpp +++ b/frontend/view/result-view-delegate.cpp @@ -36,13 +36,6 @@ void ResultViewDelegate::setSearchKeyword(const QString ®FindKeyWords) m_hightLightEffectHelper->setExpression(regFindKeyWords); } -QSize ResultViewDelegate::sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const -{ - QSize size = QStyledItemDelegate::sizeHint(option,index); - size.setHeight(size.height() + 10); - return size; -} - void ResultViewDelegate::paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const { QStyleOptionViewItem opt = option; diff --git a/frontend/view/result-view-delegate.h b/frontend/view/result-view-delegate.h index ed915a8..8c09951 100644 --- a/frontend/view/result-view-delegate.h +++ b/frontend/view/result-view-delegate.h @@ -55,7 +55,6 @@ public: ~ResultViewDelegate() = default; void setSearchKeyword(const QString &); protected: - QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const; void paint(QPainter *, const QStyleOptionViewItem &, const QModelIndex &) const override; private: