File indexing completed on 2024-12-22 04:14:00
0001 /* This file is part of the KDE libraries 0002 SPDX-FileCopyrightText: 1999 Reginald Stadlbauer <reggie@kde.org> 0003 SPDX-FileCopyrightText: 1999 Simon Hausmann <hausmann@kde.org> 0004 SPDX-FileCopyrightText: 2000 Nicolas Hadacek <haadcek@kde.org> 0005 SPDX-FileCopyrightText: 2000 Kurt Granroth <granroth@kde.org> 0006 SPDX-FileCopyrightText: 2000 Michael Koch <koch@kde.org> 0007 SPDX-FileCopyrightText: 2001 Holger Freyther <freyther@kde.org> 0008 SPDX-FileCopyrightText: 2002 Ellis Whitehead <ellis@kde.org> 0009 SPDX-FileCopyrightText: 2002 Joseph Wenninger <jowenn@kde.org> 0010 SPDX-FileCopyrightText: 2003 Andras Mantia <amantia@kde.org> 0011 SPDX-FileCopyrightText: 2005-2006 Hamish Rodda <rodda@kde.org> 0012 0013 SPDX-License-Identifier: LGPL-2.0-only 0014 */ 0015 0016 #ifndef KRECENTFILESACTION_P_H 0017 #define KRECENTFILESACTION_P_H 0018 0019 #include "krecentfilesaction.h" 0020 0021 class KRecentFilesActionPrivate 0022 { 0023 Q_DECLARE_PUBLIC(KRecentFilesAction) 0024 0025 public: 0026 KRecentFilesActionPrivate(KRecentFilesAction *parent) 0027 : q_ptr(parent) 0028 { 0029 m_visibleItemsCount = 10; 0030 m_noEntriesAction = 0; 0031 clearSeparator = 0; 0032 clearAction = 0; 0033 m_recentFilesModel = 0; 0034 m_fileIconsPopulated = false; 0035 } 0036 0037 virtual ~KRecentFilesActionPrivate() 0038 { 0039 } 0040 0041 void init(); 0042 0043 void _k_urlSelected(QAction *); 0044 0045 void updateIcon(const QStandardItem *item); 0046 0047 int m_visibleItemsCount; 0048 QMap<QAction *, QUrl> m_urls; 0049 QAction *m_noEntriesAction; 0050 QAction *clearSeparator; 0051 QAction *clearAction; 0052 const QStandardItemModel *m_recentFilesModel; 0053 bool m_fileIconsPopulated; 0054 0055 KRecentFilesAction *q_ptr; 0056 }; 0057 0058 #endif // KRECENTFILESACTION_P_H