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
29
namespace
Digikam
30
{
31
32
class
SearchTextSettings;
33
34
class
DIGIKAM_EXPORT
WebBrowserDlg
:
public
QDialog
35
{
36
Q_OBJECT
37
38
public
:
39
40
explicit
WebBrowserDlg
(
const
QUrl& url,
41
QWidget*
const
parent,
42
bool
hideDeskBrowser =
false
);
43
~WebBrowserDlg
()
override
;
44
45
Q_SIGNALS:
46
47
void
urlChanged
(
const
QUrl& url);
48
void
closeView
(
bool
val);
49
50
private
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
61
protected
:
62
63
void
showEvent(QShowEvent*)
override
;
64
void
closeEvent(QCloseEvent*)
override
;
65
66
private
:
67
68
class
Private;
69
Private*
const
d =
nullptr
;
70
};
71
72
}
// namespace Digikam
Digikam::SearchTextSettings
Definition
searchtextbar.h:33
Digikam::WebBrowserDlg
Definition
webbrowserdlg.h:35
Digikam::WebBrowserDlg::urlChanged
void urlChanged(const QUrl &url)
Digikam::WebBrowserDlg::closeView
void closeView(bool val)
digikam_export.h
Digikam
Definition
datefolderview.cpp:34
core
libs
dialogs
webbrowserdlg.h
Generated by
1.9.8