digiKam
capturewidget.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 : 2007-09-06
7
* Description : a widget to display camera capture preview.
8
*
9
* Copyright (C) 2007-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
10
*
11
* This program is free software; you can redistribute it
12
* and/or modify it under the terms of the GNU General
13
* Public License as published by the Free Software Foundation;
14
* either version 2, or (at your option)
15
* any later version.
16
*
17
* This program is distributed in the hope that it will be useful,
18
* but WITHOUT ANY WARRANTY; without even the implied warranty of
19
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20
* GNU General Public License for more details.
21
*
22
* ============================================================ */
23
24
#ifndef DIGIKAM_CAPTURE_WIDGET_H
25
#define DIGIKAM_CAPTURE_WIDGET_H
26
27
// Qt includes
28
29
#include <QWidget>
30
#include <QByteArray>
31
32
// Local includes
33
34
#include "
digikam_export.h
"
35
36
class
QPixmap;
37
38
namespace
Digikam
39
{
40
41
class
CaptureWidget
:
public
QWidget
42
{
43
Q_OBJECT
44
45
public
:
46
47
explicit
CaptureWidget
(QWidget*
const
parent =
nullptr
);
48
~CaptureWidget
()
override
;
49
50
void
setPreview
(
const
QImage& preview);
51
52
protected
:
53
54
void
paintEvent
(QPaintEvent*)
override
;
55
void
resizeEvent
(QResizeEvent*)
override
;
56
57
private
:
58
59
void
updatePixmap();
60
61
private
:
62
63
class
Private;
64
Private*
const
d;
65
};
66
67
}
// namespace Digikam
68
69
#endif
// DIGIKAM_CAPTURE_WIDGET_H
Digikam::CaptureWidget
Definition:
capturewidget.h:42
Digikam::CaptureWidget::paintEvent
void paintEvent(QPaintEvent *) override
Definition:
capturewidget.cpp:98
Digikam::CaptureWidget::~CaptureWidget
~CaptureWidget() override
Definition:
capturewidget.cpp:60
Digikam::CaptureWidget::CaptureWidget
CaptureWidget(QWidget *const parent=nullptr)
Definition:
capturewidget.cpp:52
Digikam::CaptureWidget::setPreview
void setPreview(const QImage &preview)
Definition:
capturewidget.cpp:65
Digikam::CaptureWidget::resizeEvent
void resizeEvent(QResizeEvent *) override
Definition:
capturewidget.cpp:105
digikam_export.h
Digikam
Definition:
datefolderview.cpp:43
core
utilities
import
widgets
capturewidget.h
Generated by
1.9.1