File indexing completed on 2025-03-09 04:54:39

0001 /*
0002    SPDX-FileCopyrightText: 2016-2024 Laurent Montel <montel@kde.org>
0003 
0004    SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #pragma once
0008 
0009 #include <QWidget>
0010 
0011 namespace MessageViewer
0012 {
0013 class MailWebEngineView;
0014 }
0015 
0016 class TestMailWebEngine : public QWidget
0017 {
0018     Q_OBJECT
0019 public:
0020     explicit TestMailWebEngine(QWidget *parent = nullptr);
0021     ~TestMailWebEngine() override;
0022 private Q_SLOTS:
0023     void slotScrollUp();
0024 
0025     void slotScrollDown();
0026     void slotZoomUp();
0027     void slotZoomDown();
0028     void slotOpenUrl(const QUrl &url);
0029     void slotPrintPreview();
0030 
0031 private:
0032     MessageViewer::MailWebEngineView *mTestWebEngine;
0033     qreal mZoom;
0034 };