Skip to content

Commit

Permalink
bottom line between items extended
Browse files Browse the repository at this point in the history
  • Loading branch information
MeerIsmailAli authored and kelson42 committed Apr 12, 2024
1 parent 010d9c4 commit 7617728
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/contentmanagerdelegate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ void ContentManagerDelegate::paint(QPainter *painter, const QStyleOptionViewItem
"border: 0;"
"font-weight: bold;"
"font-family: Selawik;"
"border-bottom: 1px solid #cccccc;"
"color: blue;"
"margin: 0;");
baseButton->style()->drawControl( QStyle::CE_PushButton, &button, painter, baseButton.data());
Expand All @@ -195,6 +196,7 @@ void ContentManagerDelegate::paint(QPainter *painter, const QStyleOptionViewItem
"border: 0;"
"font-weight: bold;"
"font-family: Selawik;"
"border-bottom: 1px solid #cccccc;"
"color: blue;"
"margin: 0;");
baseButton->style()->drawControl( QStyle::CE_PushButton, &button, painter, baseButton.data());
Expand All @@ -213,6 +215,8 @@ void ContentManagerDelegate::paint(QPainter *painter, const QStyleOptionViewItem
painter->fillRect(QRect(x, y, w, h), QColor("#eaecf0"));
}
icon.paint(painter, QRect(x+10, y+10, 30, 50));
painter->setPen(QPen(QColor("#cccccc")));
painter->drawLine(x, y + h - 1, x + w, y + h - 1);
return;
}
if (index.column() == 1) {
Expand Down

0 comments on commit 7617728

Please sign in to comment.