digiKam
Loading...
Searching...
No Matches
wscomboboxintermediate.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 : 2009-07-05
7 * Description : A combobox which also has an intermediate state.
8 * This is akin to the intermediate state in a checkbox and
9 * needed when a single combobox controls more than one item,
10 * which are manually set to different states.
11 * The intermediate state is indicated by appending an extra item
12 * with a user specified text (default is "Various"). Whenever an
13 * other item is set, this special state is removed from the list
14 * so it can never be selected explicitly.
15 *
16 * SPDX-FileCopyrightText: 2009 by Pieter Edelman <pieter dot edelman at gmx dot net>
17 * SPDX-FileCopyrightText: 2010-2024 by Gilles Caulier <caulier dot gilles at gmail dot com>
18 *
19 * SPDX-License-Identifier: GPL-2.0-or-later
20 *
21 * ============================================================ */
22
23#pragma once
24
25// Qt includes
26
27#include <QComboBox>
28#include <QString>
29
30// Local includes
31
32#include "digikam_export.h"
33
34namespace Digikam
35{
36
37class DIGIKAM_EXPORT WSComboBoxIntermediate : public QComboBox
38{
39 Q_OBJECT
40
41public:
42
47 explicit WSComboBoxIntermediate(QWidget* const = nullptr, const QString& = QString());
48 ~WSComboBoxIntermediate() override;
49
54 void setIntermediate(bool);
55
56private Q_SLOTS:
57
58 void slotIndexChanged(int);
59
60private:
61
62 class Private;
63 Private* const d = nullptr;
64};
65
66} // namespace Digikam
Definition wscomboboxintermediate.h:38
Definition datefolderview.cpp:34