digiKam
Loading...
Searching...
No Matches
webbrowserdlg.h
Go to the documentation of this file.
1/* ============================================================
2 *
3 * This file is a part of digiKam project
4 * https://www.digikam.org
5 *
6 * Date : 2017-06-21
7 * Description : a simple web browser dialog based on Qt WebEngine.
8 *
9 * SPDX-FileCopyrightText: 2017-2024 by Gilles Caulier <caulier dot gilles at gmail dot com>
10 *
11 * SPDX-License-Identifier: GPL-2.0-or-later
12 *
13 * ============================================================ */
14
15#pragma once
16
17// Qt include
18
19#include <QDialog>
20#include <QWidget>
21#include <QUrl>
22#include <QString>
23#include <QCloseEvent>
24
25// Local includes
26
27#include "digikam_export.h"
28
29namespace Digikam
30{
31
32class SearchTextSettings;
33
34class DIGIKAM_EXPORT WebBrowserDlg : public QDialog
35{
36 Q_OBJECT
37
38public:
39
40 explicit WebBrowserDlg(const QUrl& url,
41 QWidget* const parent,
42 bool hideDeskBrowser = false);
43 ~WebBrowserDlg() override;
44
45Q_SIGNALS:
46
47 void urlChanged(const QUrl& url);
48 void closeView(bool val);
49
50private Q_SLOTS:
51
52 void slotUrlChanged(const QUrl&);
53 void slotLoadingStarted();
54 void slotLoadingFinished(bool);
55 void slotIconChanged(const QIcon&);
56 void slotTitleChanged(const QString&);
57 void slotSearchTextChanged(const SearchTextSettings&);
58 void slotGoHome();
59 void slotDesktopWebBrowser();
60
61protected:
62
63 void showEvent(QShowEvent*) override;
64 void closeEvent(QCloseEvent*) override;
65
66private:
67
68 class Private;
69 Private* const d = nullptr;
70};
71
72} // namespace Digikam
Definition searchtextbar.h:33
Definition webbrowserdlg.h:35
void urlChanged(const QUrl &url)
void closeView(bool val)
Definition datefolderview.cpp:34