digiKam
Loading...
Searching...
No Matches
drangebox.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-08-09
7 * Description : Generic range boxes, i.e. ranges where a minimum and maximum can be given.
8 *
9 * SPDX-FileCopyrightText: 2017 by Mario Frank <mario dot frank at uni minus potsdam dot de>
10 *
11 * SPDX-License-Identifier: GPL-2.0-or-later
12 *
13 * ============================================================ */
14
15#pragma once
16
17// Qt includes
18
19#include <QWidget>
20
21// Local includes
22
23#include "digikam_export.h"
24
25namespace Digikam
26{
27
28class DIGIKAM_EXPORT DIntRangeBox : public QWidget
29{
30 Q_OBJECT
31
32public:
33
34 explicit DIntRangeBox(QWidget* const parent = nullptr);
35 ~DIntRangeBox() override;
36
42 void setRange(int min, int max);
43
49 void setInterval(int min, int max);
50
55 void setSuffix(const QString& suffix);
56
61 void setEnabled(bool enabled);
62
67 int minValue();
68
73 int maxValue();
74
75Q_SIGNALS:
76
77 void minChanged(int);
78 void maxChanged(int);
79
80private Q_SLOTS:
81
82 void slotMinimumChanged(int);
83
84private:
85
86 class Private;
87 Private* const d = nullptr;
88};
89
90} // namespace Digikam
Definition drangebox.h:29
QStringView suffix
Definition itemviewutilities.cpp:587
Definition datefolderview.cpp:34