Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.
C++
/* This file is part of the KDE libraries
SPDX-FileCopyrightText: 1999 Reginald Stadlbauer <[email protected]>
SPDX-FileCopyrightText: 1999 Simon Hausmann <[email protected]>
SPDX-FileCopyrightText: 2000 Nicolas Hadacek <[email protected]>
SPDX-FileCopyrightText: 2000 Kurt Granroth <[email protected]>
SPDX-FileCopyrightText: 2000 Michael Koch <[email protected]>
SPDX-FileCopyrightText: 2001 Holger Freyther <[email protected]>
SPDX-FileCopyrightText: 2002 Ellis Whitehead <[email protected]>
SPDX-FileCopyrightText: 2002 Joseph Wenninger <[email protected]>
SPDX-FileCopyrightText: 2003 Andras Mantia <[email protected]>
SPDX-FileCopyrightText: 2005-2006 Hamish Rodda <[email protected]>
SPDX-License-Identifier: LGPL-2.0-only
*/
#ifndef KRECENTFILESACTION_P_H
#define KRECENTFILESACTION_P_H
#include "krecentfilesaction.h"
class KRecentFilesActionPrivate
{
Q_DECLARE_PUBLIC(KRecentFilesAction)
public:
KRecentFilesActionPrivate(KRecentFilesAction *parent)
: q_ptr(parent)
{
m_visibleItemsCount = 10;
m_noEntriesAction = 0;
clearSeparator = 0;
clearAction = 0;
m_recentFilesModel = 0;
m_fileIconsPopulated = false;
}
virtual ~KRecentFilesActionPrivate()
{
}
void init();
void _k_urlSelected(QAction *);
void updateIcon(const QStandardItem *item);
int m_visibleItemsCount;
QMap<QAction *, QUrl> m_urls;
QAction *m_noEntriesAction;
QAction *clearSeparator;
QAction *clearAction;
const QStandardItemModel *m_recentFilesModel;
bool m_fileIconsPopulated;
KRecentFilesAction *q_ptr;
};
#endif // KRECENTFILESACTION_P_H