diff options
| author | Peter Penz <[email protected]> | 2011-10-02 16:42:26 +0200 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2011-10-02 16:42:26 +0200 |
| commit | 5b015f037c934563ae316b76d2c84cfb1b912f94 (patch) | |
| tree | 6156ed64da266d2a5181a6ece98c6b6b65158194 /src/kitemviews/kitemlistview.h | |
| parent | a9899482987cb7d0efd542771d270206320e2df4 (diff) | |
Fix layout when the header has been adjusted by the user
Diffstat (limited to 'src/kitemviews/kitemlistview.h')
| -rw-r--r-- | src/kitemviews/kitemlistview.h | 29 |
1 files changed, 16 insertions, 13 deletions
diff --git a/src/kitemviews/kitemlistview.h b/src/kitemviews/kitemlistview.h index 3ddfabde6..47de53e20 100644 --- a/src/kitemviews/kitemlistview.h +++ b/src/kitemviews/kitemlistview.h @@ -101,13 +101,6 @@ public: bool autoScroll() const; /** - * Turns on the header if \p show is true. Per default the - * header is not shown. - */ - void setHeaderShown(bool show); - bool isHeaderShown() const; - - /** * @return Controller of the item-list. The controller gets * initialized by KItemListController::setView() and will * result in calling KItemListController::onControllerChanged(). @@ -329,12 +322,6 @@ private: void updateWidgetProperties(KItemListWidget* widget, int index); /** - * Updates the width of the KItemListHeader corresponding to the required width of - * the roles. - */ - void updateHeaderWidth(); - - /** * @return The widths of each visible role that is shown in the KItemListHeader. */ QHash<QByteArray, qreal> headerRolesWidths() const; @@ -360,6 +347,22 @@ private: void updateStretchedVisibleRolesSizes(); /** + * Turns on the header if \p show is true. Per default the + * header is not shown. + */ + void setHeaderShown(bool show); + + /** + * @return Sum of the widths of all visible roles. + */ + qreal visibleRolesSizesWidthSum() const; + + /** + * @return Sum of the heights of all visible roles. + */ + qreal visibleRolesSizesHeightSum() const; + + /** * Helper function for triggerAutoScrolling(). * @param pos Logical position of the mouse relative to the range. * @param range Range of the visible area. |
