BibleTime
chistorycombobox.h
Go to the documentation of this file.
1 /*********
2 *
3 * In the name of the Father, and of the Son, and of the Holy Spirit.
4 *
5 * This file is part of BibleTime's source code, https://bibletime.info/
6 *
7 * Copyright 1999-2021 by the BibleTime developers.
8 * The BibleTime source code is licensed under the GNU General Public License
9 * version 2.0.
10 *
11 **********/
12 
13 #pragma once
14 
15 #include <QComboBox>
16 
17 #include <QObject>
18 #include <QString>
19 #include <QStringList>
20 
21 
22 class QWidget;
23 
24 namespace Search {
25 
26 class CHistoryComboBox : public QComboBox {
27  Q_OBJECT
28  public:
29  CHistoryComboBox(QWidget* parent = nullptr);
30  ~CHistoryComboBox() override;
31  void addToHistory(const QString& item);
32  QStringList historyItems() const;
33 
34  protected:
35 
36  private:
37 };
38 
39 } //end of namespace Search
CHistoryComboBox(QWidget *parent=nullptr)
QStringList historyItems() const
void addToHistory(const QString &item)