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
34
namespace
Digikam
35
{
36
37
class
DIGIKAM_EXPORT
WSComboBoxIntermediate
:
public
QComboBox
38
{
39
Q_OBJECT
40
41
public
:
42
47
explicit
WSComboBoxIntermediate
(QWidget*
const
=
nullptr
,
const
QString& = QString());
48
~WSComboBoxIntermediate
()
override
;
49
54
void
setIntermediate(
bool
);
55
56
private
Q_SLOTS:
57
58
void
slotIndexChanged(
int
);
59
60
private
:
61
62
class
Private;
63
Private*
const
d =
nullptr
;
64
};
65
66
}
// namespace Digikam
Digikam::WSComboBoxIntermediate
Definition
wscomboboxintermediate.h:38
digikam_export.h
Digikam
Definition
datefolderview.cpp:34
core
libs
dplugins
webservices
wscomboboxintermediate.h
Generated by
1.9.8