Geometrize  1.0
An application for geometrizing images into geometric primitives
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Friends Macros
Classes | Public Member Functions | Protected Member Functions | Private Attributes | List of all members
geometrize::dialog::CompletionBox Class Reference

The CompletionBox class is a line edit that facilitates searching task templates with an autocomplete drop-down list. More...

#include <completionbox.h>

Inheritance diagram for geometrize::dialog::CompletionBox:
Inheritance graph
[legend]
Collaboration diagram for geometrize::dialog::CompletionBox:
Collaboration graph
[legend]

Classes

class  CompletionBoxImpl
 

Public Member Functions

 CompletionBox (QWidget *parent=nullptr)
 
virtual ~CompletionBox ()
 
void setCompletionList (const QStringList &completionList)
 
void addToCompletionList (const QString &item)
 

Protected Member Functions

void changeEvent (QEvent *) override
 

Private Attributes

std::unique_ptr
< CompletionBoxImpl
d
 

Detailed Description

The CompletionBox class is a line edit that facilitates searching task templates with an autocomplete drop-down list.

Constructor & Destructor Documentation

geometrize::dialog::CompletionBox::CompletionBox ( QWidget *  parent = nullptr)
explicit
62  : QLineEdit(parent), d{std::make_unique<CompletionBox::CompletionBoxImpl>(this)}
63 {
64 }
std::unique_ptr< CompletionBoxImpl > d
Definition: completionbox.h:34
geometrize::dialog::CompletionBox::~CompletionBox ( )
virtual
67 {
68 }

Member Function Documentation

void geometrize::dialog::CompletionBox::addToCompletionList ( const QString &  item)
76 {
77  d->addToCompletionList(item);
78 }
std::unique_ptr< CompletionBoxImpl > d
Definition: completionbox.h:34
void geometrize::dialog::CompletionBox::changeEvent ( QEvent *  event)
overrideprotected
81 {
82  if (event->type() == QEvent::LanguageChange) {
83  d->onLanguageChange();
84  }
85  QLineEdit::changeEvent(event);
86 }
std::unique_ptr< CompletionBoxImpl > d
Definition: completionbox.h:34
void geometrize::dialog::CompletionBox::setCompletionList ( const QStringList &  completionList)
71 {
72  d->setCompletionList(completionList);
73 }
std::unique_ptr< CompletionBoxImpl > d
Definition: completionbox.h:34

Member Data Documentation

std::unique_ptr<CompletionBoxImpl> geometrize::dialog::CompletionBox::d
private

The documentation for this class was generated from the following files: