Falkon
Develop
Cross-platform Qt-based web browser
pagethumbnailer.h
Go to the documentation of this file.
1
/* ============================================================
2
* Falkon - Qt web browser
3
* Copyright (C) 2010-2014 David Rosca <nowrep@gmail.com>
4
*
5
* This program is free software: you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License as published by
7
* the Free Software Foundation, either version 3 of the License, or
8
* (at your option) any later version.
9
*
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
14
*
15
* You should have received a copy of the GNU General Public License
16
* along with this program. If not, see <http://www.gnu.org/licenses/>.
17
* ============================================================ */
18
#ifndef PAGETHUMBNAILER_H
19
#define PAGETHUMBNAILER_H
20
21
#include <QObject>
22
#include <QSize>
23
#include <QUrl>
24
25
#include "
qzcommon.h
"
26
27
class
QQuickWidget;
28
class
QPixmap;
29
30
class
FALKON_EXPORT
PageThumbnailer
:
public
QObject
31
{
32
Q_OBJECT
33
34
public
:
35
explicit
PageThumbnailer
(QObject* parent =
nullptr
);
36
~PageThumbnailer
();
37
38
void
setSize(
const
QSize &size);
39
40
void
setUrl(
const
QUrl &url);
41
QUrl url();
42
43
bool
loadTitle();
44
void
setLoadTitle(
bool
load);
45
QString title();
46
47
void
start();
48
49
Q_SIGNALS:
50
void
thumbnailCreated
(
const
QPixmap &);
51
52
public
Q_SLOTS:
53
QString afterLoadScript()
const
;
54
void
createThumbnail(
bool
status);
55
56
private
:
57
QQuickWidget *m_view;
58
59
QSize m_size;
60
QUrl m_url;
61
QString m_title;
62
bool
m_loadTitle;
63
};
64
65
#endif
// PAGETHUMBNAILER_H
PageThumbnailer
Definition:
pagethumbnailer.h:31
PageThumbnailer::thumbnailCreated
void thumbnailCreated(const QPixmap &)
qzcommon.h
FALKON_EXPORT
#define FALKON_EXPORT
Definition:
qzcommon.h:28
src
lib
tools
pagethumbnailer.h
Generated by
1.9.3