Commit 50d07aa4 authored by Waqar Ahmed's avatar Waqar Ahmed
Browse files

Search: Adjust spacing to be more like previous version

After recent changes, the results take a lot more space compared to the
previous version.
parent 4ad4f31c
Pipeline #135240 passed with stage
in 2 minutes and 16 seconds
......@@ -188,3 +188,12 @@ void SPHtmlDelegate::paint(QPainter *painter, const QStyleOptionViewItem &option
QSize SPHtmlDelegate::sizeHint(const QStyleOptionViewItem &opt, const QModelIndex &index) const
QSize s = QStyledItemDelegate::sizeHint(opt, index);
QFontMetrics fm(m_font);
s = s.grownBy({0, 2, 0, 2});
return s;
......@@ -18,6 +18,7 @@ public:
explicit SPHtmlDelegate(QObject *parent);
void paint(QPainter *, const QStyleOptionViewItem &, const QModelIndex &) const override;
QSize sizeHint(const QStyleOptionViewItem &, const QModelIndex &) const override;
void paintMatchItem(QPainter *, const QStyleOptionViewItem &, const QModelIndex &index) const;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment