File indexing completed on 2024-04-28 04:38:37
0001 /* 0002 SPDX-FileCopyrightText: 2009 Andreas Pakulat <apaku@gmx.de> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #ifndef KDEVPLATFORM_PLUGIN_DOCUMENTSWITCHERITEM_H 0008 #define KDEVPLATFORM_PLUGIN_DOCUMENTSWITCHERITEM_H 0009 0010 #include <QStandardItem> 0011 0012 namespace KDevelop 0013 { 0014 class IDocument; 0015 } 0016 0017 /** Helper for list model items. 0018 * Extracts icon and text from document. 0019 */ 0020 class DocumentSwitcherItem : public QStandardItem 0021 { 0022 public: 0023 explicit DocumentSwitcherItem(KDevelop::IDocument *document); 0024 ~DocumentSwitcherItem() override; 0025 }; 0026 0027 #endif // KDEVPLATFORM_PLUGIN_DOCUMENTSWITCHERITEM_H