Messagelib

messageviewerrenderer.cpp
1 /*
2  SPDX-FileCopyrightText: 2019-2021 Laurent Montel <[email protected]>
3 
4  Code based on ARHParser.jsm from dkim_verifier (Copyright (c) Philippe Lieser)
5  (This software is licensed under the terms of the MIT License.)
6 
7  SPDX-License-Identifier: LGPL-2.0-or-later
8 */
9 
10 #include "messageviewerrenderer.h"
11 #include "viewer/csshelper.h"
12 using namespace MessageViewer;
13 MessageViewerRenderer::MessageViewerRenderer() = default;
14 
15 MessageViewerRenderer::~MessageViewerRenderer()
16 {
17  delete mCSSHelper;
18 }
19 
20 CSSHelper *MessageViewerRenderer::cssHelper() const
21 {
22  return mCSSHelper;
23 }
24 
25 QWidget *MessageViewerRenderer::currentWidget() const
26 {
27  return mCurrentWidget;
28 }
29 
30 void MessageViewerRenderer::setCurrentWidget(QWidget *currentWidget)
31 {
32  mCurrentWidget = currentWidget;
33 }
34 
35 void MessageViewerRenderer::recreateCssHelper()
36 {
37  delete mCSSHelper;
38  mCSSHelper = new CSSHelper(mCurrentWidget);
39 }
The CSSHelper class.
Definition: csshelper.h:21
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Tue Nov 30 2021 23:05:47 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.