File indexing completed on 2024-04-28 17:06:04

0001 /*
0002     SPDX-FileCopyrightText: 2018-2020 Shie Erlich <krusader@users.sourceforge.net>
0003     SPDX-FileCopyrightText: 2018-2020 Rafi Yanai <krusader@users.sourceforge.net>
0004     SPDX-FileCopyrightText: 2018-2022 Krusader Krew <https://krusader.org>
0005 
0006     SPDX-License-Identifier: GPL-2.0-or-later
0007 */
0008 
0009 #ifndef KRHISTORYCOMBOBOX_H
0010 #define KRHISTORYCOMBOBOX_H
0011 
0012 #include <KCompletion/KHistoryComboBox>
0013 
0014 /**
0015  * A specialized version of a KHistoryComboBox, e.g. it deletes the current
0016  *  item when the user presses Shift+Del
0017  */
0018 class KrHistoryComboBox : public KHistoryComboBox
0019 {
0020     Q_OBJECT
0021 
0022 public:
0023     explicit KrHistoryComboBox(bool useCompletion, QWidget *parent = nullptr);
0024     explicit KrHistoryComboBox(QWidget *parent = nullptr)
0025         : KrHistoryComboBox(true, parent)
0026     {
0027     }
0028 };
0029 
0030 #endif // KRHISTORYCOMBOBOX_H