diff options
author | Carl Schwan <carl@carlschwan.eu> | 2024-04-10 16:45:23 +0200 |
---|---|---|
committer | Carl Schwan <carl@carlschwan.eu> | 2024-04-30 22:57:26 +0200 |
commit | 09ea47f8113bdce437253b19a91f739aeef7a333 (patch) | |
tree | eb47b57874da298ea470a5a3e532f125322c744e /src/gui/text | |
parent | 9df78efbd1db503241717cd35c5db7bbc5197a8a (diff) |
Improve default style of QTextTable
Collapse the border and add some padding for the table cells.
[ChangeLog][QtGui][Text] QTextTableFormat now defaults to
collapsed tables with no spacing between cells.
Change-Id: Ibebc92820447bd5fd9c0b905261dc4426b74358c
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'src/gui/text')
-rw-r--r-- | src/gui/text/qtextformat.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/text/qtextformat.cpp b/src/gui/text/qtextformat.cpp index 3e4bacf78c..daa79a55d2 100644 --- a/src/gui/text/qtextformat.cpp +++ b/src/gui/text/qtextformat.cpp @@ -3156,7 +3156,8 @@ QTextTableFormat::QTextTableFormat() : QTextFrameFormat() { setObjectType(TableObject); - setCellSpacing(2); + setCellPadding(4); + setBorderCollapse(true); setBorder(1); } |