digiKam
dcategorizedsortfilterproxymodel_p.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 : 2010-01-16
7  * Description : categorize item view based on DCategorizedView
8  *
9  * Copyright (C) 2007 by Rafael Fernández López <ereslibre at kde dot org>
10  * Copyright (C) 2007 by John Tapsell <tapsell at kde dot org>
11  * Copyright (C) 2009-2012 by Marcel Wiesweg <marcel dot wiesweg at gmx dot de>
12  * Copyright (C) 2011-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
13  *
14  * This program is free software; you can redistribute it
15  * and/or modify it under the terms of the GNU General
16  * Public License as published by the Free Software Foundation;
17  * either version 2, or (at your option)
18  * any later version.
19  *
20  * This program is distributed in the hope that it will be useful,
21  * but WITHOUT ANY WARRANTY; without even the implied warranty of
22  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23  * GNU General Public License for more details.
24  *
25  * ============================================================ */
26 
27 #ifndef DIGIKAM_DCATEGORIZED_SORT_FILTER_PROXY_MODEL_PRIVATE_H
28 #define DIGIKAM_DCATEGORIZED_SORT_FILTER_PROXY_MODEL_PRIVATE_H
29 
31 
32 // Qt includes
33 
34 #include <QCollator>
35 
36 namespace Digikam
37 {
38 
39 class DCategorizedSortFilterProxyModel;
40 
42 {
43 public:
44 
45  explicit Private()
46  : sortColumn (0),
47  sortOrder (Qt::AscendingOrder),
48  categorizedModel (false),
49  sortCategoriesByNaturalComparison(true)
50  {
51  collator.setNumericMode(true);
52  collator.setCaseSensitivity(Qt::CaseSensitive);
53  }
54 
56  {
57  }
58 
59 public:
60 
62  Qt::SortOrder sortOrder;
65  QCollator collator;
66 };
67 
68 } // namespace Digikam
69 
70 #endif // DIGIKAM_DCATEGORIZED_SORT_FILTER_PROXY_MODEL_PRIVATE_H
Definition: dcategorizedsortfilterproxymodel_p.h:42
bool sortCategoriesByNaturalComparison
Definition: dcategorizedsortfilterproxymodel_p.h:64
~Private()
Definition: dcategorizedsortfilterproxymodel_p.h:55
bool categorizedModel
Definition: dcategorizedsortfilterproxymodel_p.h:63
QCollator collator
Definition: dcategorizedsortfilterproxymodel_p.h:65
Qt::SortOrder sortOrder
Definition: dcategorizedsortfilterproxymodel_p.h:62
int sortColumn
Definition: dcategorizedsortfilterproxymodel_p.h:61
Private()
Definition: dcategorizedsortfilterproxymodel_p.h:45
Definition: dcategorizedsortfilterproxymodel.h:53
Definition: datefolderview.cpp:43