summaryrefslogtreecommitdiffstats
path: root/qt-ui/modeldelegates.cpp
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@intel.com>2014-07-21 18:13:56 -0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-07-23 07:47:15 -0700
commit5e7f40115fe3aa8f85ff492509b03bb20e7aa421 (patch)
tree5a8fba77d1e99366774d56f2495d1434f30acff8 /qt-ui/modeldelegates.cpp
parent60c4587be68c8996bbcc87a1c38bf0b4ca9f9f56 (diff)
downloadsubsurface-5e7f40115fe3aa8f85ff492509b03bb20e7aa421.tar.gz
Whitespace fixes.
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/modeldelegates.cpp')
-rw-r--r--qt-ui/modeldelegates.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/qt-ui/modeldelegates.cpp b/qt-ui/modeldelegates.cpp
index a2c61e2f6..87846d22b 100644
--- a/qt-ui/modeldelegates.cpp
+++ b/qt-ui/modeldelegates.cpp
@@ -432,10 +432,10 @@ void HTMLDelegate::paint(QPainter* painter, const QStyleOptionViewItem & option,
QSize HTMLDelegate::sizeHint ( const QStyleOptionViewItem & option, const QModelIndex & index ) const
{
- QStyleOptionViewItemV4 options = option;
- initStyleOption(&options, index);
- QTextDocument doc;
- doc.setHtml(options.text);
- doc.setTextWidth(options.rect.width());
- return QSize(doc.idealWidth(), doc.size().height());
+ QStyleOptionViewItemV4 options = option;
+ initStyleOption(&options, index);
+ QTextDocument doc;
+ doc.setHtml(options.text);
+ doc.setTextWidth(options.rect.width());
+ return QSize(doc.idealWidth(), doc.size().height());
} \ No newline at end of file