|
|
|
@ -1979,7 +1979,13 @@ void UBDocumentController::setupViews() |
|
|
|
|
|
|
|
|
|
mSortFilterProxyModel->setSourceModel(model); |
|
|
|
|
|
|
|
|
|
sortDocuments(UBDocumentController::Alphabetical, UBDocumentController::ASC); |
|
|
|
|
int sortKind = UBSettings::settings()->documentSortKind->get().toInt(); |
|
|
|
|
int sortOrder = UBSettings::settings()->documentSortOrder->get().toInt(); |
|
|
|
|
mUserHasChangedSortOrder = true; |
|
|
|
|
sortDocuments(sortKind, sortOrder); |
|
|
|
|
|
|
|
|
|
mDocumentUI->sortKind->setCurrentIndex(sortKind); |
|
|
|
|
mDocumentUI->sortOrder->setCurrentIndex(sortOrder); |
|
|
|
|
|
|
|
|
|
mDocumentUI->documentTreeView->setModel(mSortFilterProxyModel); |
|
|
|
|
|
|
|
|
@ -1995,7 +2001,7 @@ void UBDocumentController::setupViews() |
|
|
|
|
|
|
|
|
|
//set sizes (left and right sides of the splitter) for the splitter here because it cannot be done in the form editor.
|
|
|
|
|
const int leftSplitterSize = 100; |
|
|
|
|
const int rightSplitterSize = 1600; |
|
|
|
|
const int rightSplitterSize = 900; |
|
|
|
|
QList<int> splitterSizes = { leftSplitterSize, rightSplitterSize }; |
|
|
|
|
mDocumentUI->splitter->setSizes(splitterSizes); |
|
|
|
|
|
|
|
|
|