Show horizontal scrollbar in navigator views (if needed)

Requested by con.
This commit is contained in:
Kai Koehne
2010-07-16 16:26:29 +02:00
parent 982bc3e3ff
commit 4b504323ec
4 changed files with 7 additions and 8 deletions

View File

@@ -29,6 +29,7 @@
#include "navigationtreeview.h"
#include <QtGui/QHeaderView>
#include <QtGui/QFocusEvent>
#ifdef Q_WS_MAC
@@ -45,6 +46,12 @@ NavigationTreeView::NavigationTreeView(QWidget *parent)
setUniformRowHeights(true);
setTextElideMode(Qt::ElideNone);
setAttribute(Qt::WA_MacShowFocusRect, false);
setHeaderHidden(true);
// show horizontal scrollbar
header()->setResizeMode(QHeaderView::ResizeToContents);
header()->setStretchLastSection(false);
}
// This is a workaround to stop Qt from redrawing the project tree every