summaryrefslogtreecommitdiff
path: root/src/listdialog.h
blob: 2e33742bf7f91b77488dbb9c9730e211db5354ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#ifndef LISTDIALOG_H
#define LISTDIALOG_H

#include <QDialog>

namespace Ui
{
class ListDialog;
}

class ListDialog : public QDialog
{
  Q_OBJECT

public:
  explicit ListDialog(QWidget* parent = nullptr);
  ~ListDialog();

  // also saves and restores geometry
  //
  int exec() override;

  void setChoices(QStringList choices);
  QString getChoice() const;

public slots:
  void on_filterEdit_textChanged(QString filter);

private:
  Ui::ListDialog* ui;
  QStringList m_Choices;
};

#endif  // LISTDIALOG_H