digiKam
Loading...
Searching...
No Matches
monthwidget.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 : 2005-05-02
7
* Description : a widget to perform month selection.
8
*
9
* SPDX-FileCopyrightText: 2005 by Renchi Raju <renchi dot raju at gmail dot com>
10
* SPDX-FileCopyrightText: 2006-2024 by Gilles Caulier <caulier dot gilles at gmail dot com>
11
*
12
* SPDX-License-Identifier: GPL-2.0-or-later
13
*
14
* ============================================================ */
15
16
#pragma once
17
18
// Qt includes
19
20
#include <QWidget>
21
22
// Local includes
23
24
#include "
iteminfo.h
"
25
26
class
QResizeEvent;
27
class
QPaintEvent;
28
class
QMouseEvent;
29
30
namespace
Digikam
31
{
32
class
ItemFilterModel;
33
34
class
MonthWidget
:
public
QWidget
35
{
36
Q_OBJECT
37
38
public
:
39
40
explicit
MonthWidget
(QWidget*
const
parent);
41
~MonthWidget
()
override
;
42
43
void
setItemModel
(
ItemFilterModel
*
const
model);
44
45
void
setYearMonth
(
int
year,
int
month);
46
QSize
sizeHint
()
const override
;
47
48
void
setActive
(
bool
val);
49
50
protected
:
51
52
void
resizeEvent
(QResizeEvent* e)
override
;
53
void
paintEvent
(QPaintEvent*)
override
;
54
void
mousePressEvent
(QMouseEvent* e)
override
;
55
56
private
:
57
58
void
init();
59
60
private
Q_SLOTS:
61
62
void
triggerUpdateDays();
63
void
updateDays();
64
void
slotModelDestroyed();
65
66
private
:
67
68
void
resetDayCounts();
69
void
connectModel();
70
71
private
:
72
73
class
Private;
74
Private*
const
d =
nullptr
;
75
};
76
77
}
// namespace Digikam
Digikam::ItemFilterModel
Definition
itemfiltermodel.h:115
Digikam::MonthWidget
Definition
monthwidget.h:35
Digikam::MonthWidget::setActive
void setActive(bool val)
Definition
monthwidget.cpp:374
Digikam::MonthWidget::resizeEvent
void resizeEvent(QResizeEvent *e) override
Definition
monthwidget.cpp:146
Digikam::MonthWidget::sizeHint
QSize sizeHint() const override
Definition
monthwidget.cpp:141
Digikam::MonthWidget::paintEvent
void paintEvent(QPaintEvent *) override
Definition
monthwidget.cpp:154
Digikam::MonthWidget::mousePressEvent
void mousePressEvent(QMouseEvent *e) override
Definition
monthwidget.cpp:272
Digikam::MonthWidget::setItemModel
void setItemModel(ItemFilterModel *const model)
Definition
monthwidget.cpp:401
Digikam::MonthWidget::~MonthWidget
~MonthWidget() override
Definition
monthwidget.cpp:96
Digikam::MonthWidget::setYearMonth
void setYearMonth(int year, int month)
Definition
monthwidget.cpp:117
iteminfo.h
Digikam
Definition
datefolderview.cpp:34
core
app
date
monthwidget.h
Generated by
1.9.8