File indexing completed on 2025-01-05 04:59:46

0001 /*
0002  * SPDX-FileCopyrightText: 2016 Kevin Ottens <ervin@kde.org>
0003  * SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
0004  */
0005 
0006 
0007 #ifndef WIDGETS_PAGEVIEWERRORHANDLER_H
0008 #define WIDGETS_PAGEVIEWERRORHANDLER_H
0009 
0010 #include "presentation/errorhandler.h"
0011 
0012 namespace Widgets {
0013 
0014 class PageView;
0015 
0016 class PageViewErrorHandler : public Presentation::ErrorHandler
0017 {
0018 public:
0019     PageViewErrorHandler();
0020 
0021     Widgets::PageView *pageView() const;
0022     void setPageView(Widgets::PageView *pageView);
0023 
0024 private:
0025     void doDisplayMessage(const QString &message) override;
0026 
0027     Widgets::PageView *m_pageView;
0028 };
0029 
0030 }
0031 
0032 #endif // WIDGETS_PAGEVIEWERRORHANDLER_H