|
|
|
|
@ -248,18 +248,6 @@ void FolderTreeView::setSortingPolicy(FolderTreeWidget::SortingPolicy policy, bo |
|
|
|
|
header()->setClickable(false); |
|
|
|
|
header()->setSortIndicatorShown(false); |
|
|
|
|
|
|
|
|
|
#if 0 |
|
|
|
|
//
|
|
|
|
|
// Qt 4.5 introduced a nasty bug here:
|
|
|
|
|
// Sorting must be enabled in order to sortByColumn() to work.
|
|
|
|
|
// If sorting is disabled it disconnects some internal signal/slot pairs
|
|
|
|
|
// and calling sortByColumn() silently has no effect.
|
|
|
|
|
// This is a bug as we actually DON'T want automatic sorting to be
|
|
|
|
|
// performed by the view whenever it wants. We want to control sorting.
|
|
|
|
|
//
|
|
|
|
|
setSortingEnabled(true); // hack for qutie bug: the param here should be false
|
|
|
|
|
header()->setSortIndicator(0, Qt::AscendingOrder); |
|
|
|
|
#endif |
|
|
|
|
setSortingEnabled(false); // hack for qutie bug: this call shouldn't be here at all
|
|
|
|
|
Q_EMIT manualSortingChanged(true); |
|
|
|
|
|
|
|
|
|
|