From e1fccf17d8fdccfa399f195d6c316a3aa8803598 Mon Sep 17 00:00:00 2001 From: Klaus Basan Date: Mon, 4 Feb 2019 16:53:34 +0100 Subject: [PATCH] Ref T529, log component allows to set sort order or no order --- src/blackgui/components/logcomponent.cpp | 10 ++++++++++ src/blackgui/components/logcomponent.h | 6 ++++++ 2 files changed, 16 insertions(+) diff --git a/src/blackgui/components/logcomponent.cpp b/src/blackgui/components/logcomponent.cpp index 0ae776283..fde3f35ad 100644 --- a/src/blackgui/components/logcomponent.cpp +++ b/src/blackgui/components/logcomponent.cpp @@ -98,6 +98,16 @@ namespace BlackGui ui->comp_StatusMessages->setMaxLogMessages(max); } + void CLogComponent::setNoSorting() + { + ui->comp_StatusMessages->setNoSorting(); + } + + void CLogComponent::setSorting(const CPropertyIndex &propertyIndex, Qt::SortOrder order) + { + ui->comp_StatusMessages->setSorting(propertyIndex, order); + } + void CLogComponent::clear() { ui->tep_StatusPageConsole->clear(); diff --git a/src/blackgui/components/logcomponent.h b/src/blackgui/components/logcomponent.h index 51c3a1e47..23bc1860f 100644 --- a/src/blackgui/components/logcomponent.h +++ b/src/blackgui/components/logcomponent.h @@ -80,6 +80,12 @@ namespace BlackGui //! \copydoc BlackGui::Components::CStatusMessagesDetail::setMaxLogMessages void setMaxLogMessages(int max); + //! \copydoc BlackGui::Components::CStatusMessagesDetail::setNoSorting + void setNoSorting(); + + //! \copydoc BlackGui::Components::CStatusMessagesDetail::setSorting + void setSorting(const BlackMisc::CPropertyIndex &propertyIndex, Qt::SortOrder order); + //! Clear void clear();