summaryrefslogtreecommitdiffstats
path: root/src/widgets/itemviews/qtableview_p.h
diff options
context:
space:
mode:
authorThorbjørn Martsum <tmartsum@gmail.com>2013-05-31 06:40:44 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-07-04 18:55:03 +0200
commit9767824a7dc9379a0959968b2ae9b047fce14856 (patch)
tree1ca2c6e0aa194cd853538049032fec5c7cf98a95 /src/widgets/itemviews/qtableview_p.h
parentf84dc0ff62234c871f30c1b51121ba2beb65e968 (diff)
QTableView::sizeHintForRow move word wrap into heightHintForIndex
In 03c761287f1a007c7177d90ed81341d0147eae05 it was overlooked that word wrap handling (with advantage) could be moved into the function, too. This patch makes the code more readable, but does not change anything. Change-Id: Ifed349398b862650da383e4e6fd337a166dc680e Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
Diffstat (limited to 'src/widgets/itemviews/qtableview_p.h')
-rw-r--r--src/widgets/itemviews/qtableview_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widgets/itemviews/qtableview_p.h b/src/widgets/itemviews/qtableview_p.h
index 3850cba9d3..d36dcd2c3a 100644
--- a/src/widgets/itemviews/qtableview_p.h
+++ b/src/widgets/itemviews/qtableview_p.h
@@ -182,7 +182,7 @@ public:
int firstVisualRow, int lastVisualRow, int firstVisualColumn, int lastVisualColumn);
void drawCell(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index);
int widthHintForIndex(const QModelIndex &index, int hint, const QStyleOptionViewItem &option) const;
- int heightHintForIndex(const QModelIndex &index, int hint, const QStyleOptionViewItem &option) const;
+ int heightHintForIndex(const QModelIndex &index, int hint, QStyleOptionViewItem &option) const;
bool showGrid;
Qt::PenStyle gridStyle;