summaryrefslogtreecommitdiff
path: root/src/listdialog.h
blob: d0594bd7604580dbf1013de00147e60db9b51bac (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
#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