Commit b5ca84ba authored by Waqar Ahmed's avatar Waqar Ahmed Committed by Christoph Cullmann
Browse files

Fix text not centered in commit dialog subject

Signed-off-by: Waqar Ahmed's avatarWaqar Ahmed <>
parent 72471cda
...@@ -44,7 +44,7 @@ public: ...@@ -44,7 +44,7 @@ public:
le.setFont(font); le.setFont(font);
le.setText(QStringLiteral("TEMP")); le.setText(QStringLiteral("TEMP"));
setFont(font); setFont(font);
setFixedHeight(le.sizeHint().height()); setFixedHeight(le.sizeHint().height() - QFontMetrics(font).descent());
setLineWrapMode(QPlainTextEdit::NoWrap); setLineWrapMode(QPlainTextEdit::NoWrap);
setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff); setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
} }
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