File indexing completed on 2024-05-12 16:27:09
0001 /* 0002 SPDX-FileCopyrightText: 2023-2024 Laurent Montel <montel.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #include "textuibase.h" 0008 0009 TextUiBase::TextUiBase(TextSelectionImpl *textSelectionImpl, QListView *view) 0010 : mTextSelectionImpl(textSelectionImpl) 0011 , mListView(view) 0012 { 0013 } 0014 0015 TextUiBase::~TextUiBase() = default; 0016 0017 void TextUiBase::removeMessageCache(const QString &messageId) 0018 { 0019 mDocumentCache.remove(messageId); 0020 } 0021 0022 void TextUiBase::setCacheMaxEntries(int maxEntries) 0023 { 0024 mDocumentCache.setMaxEntries(maxEntries); 0025 } 0026 0027 void TextUiBase::clearCache() 0028 { 0029 mDocumentCache.clear(); 0030 }