Geometrize  1.0
An application for geometrizing images into geometric primitives
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Friends Macros
completionbox.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <memory>
4 
5 #include <QLineEdit>
6 #include <QStringList>
7 
8 class QEvent;
9 
10 namespace geometrize
11 {
12 
13 namespace dialog
14 {
15 
19 class CompletionBox : public QLineEdit
20 {
21  Q_OBJECT
22 
23 public:
24  explicit CompletionBox(QWidget* parent = nullptr);
25  virtual ~CompletionBox();
26 
27  void setCompletionList(const QStringList& completionList);
28  void addToCompletionList(const QString& item);
29 
30 protected:
31  void changeEvent(QEvent*) override;
32 
33 private:
35  std::unique_ptr<CompletionBoxImpl> d;
36 };
37 
38 }
39 
40 }
void addToCompletionList(const QString &item)
Definition: completionbox.cpp:75
void setCompletionList(const QStringList &completionList)
Definition: completionbox.cpp:70
void changeEvent(QEvent *) override
Definition: completionbox.cpp:80
The CompletionBox class is a line edit that facilitates searching task templates with an autocomplete...
Definition: completionbox.h:19
std::unique_ptr< CompletionBoxImpl > d
Definition: completionbox.h:34
virtual ~CompletionBox()
Definition: completionbox.cpp:66
CompletionBox(QWidget *parent=nullptr)
Definition: completionbox.cpp:62