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

Public Member Functions

 CompletionBoxImpl (CompletionBox *pQ)
 
void addToCompletionList (const QString &item)
 
void setCompletionList (const QStringList &completionList)
 
void onLanguageChange ()
 

Private Member Functions

void populateUi ()
 

Private Attributes

QCompleter m_completer
 
StringListModel m_model
 
CompletionBoxq
 

Constructor & Destructor Documentation

geometrize::dialog::CompletionBox::CompletionBoxImpl::CompletionBoxImpl ( CompletionBox pQ)
inline
25  : q{pQ}
26  {
27  m_completer.setCompletionMode(QCompleter::PopupCompletion);
28  m_completer.setCaseSensitivity(Qt::CaseInsensitive);
29  m_completer.setFilterMode(Qt::MatchStartsWith);
30  m_completer.setModel(&m_model);
31  q->setCompleter(&m_completer);
32 
33  populateUi();
34  }
StringListModel m_model
Definition: completionbox.cpp:58
CompletionBox * q
Definition: completionbox.cpp:59
QCompleter m_completer
Definition: completionbox.cpp:57
void populateUi()
Definition: completionbox.cpp:53

Member Function Documentation

void geometrize::dialog::CompletionBox::CompletionBoxImpl::addToCompletionList ( const QString &  item)
inline
37  {
38  m_model.insertRows(m_model.rowCount(), 1);
39  m_model.setData(m_model.index(m_model.rowCount() - 1), item);
40  }
StringListModel m_model
Definition: completionbox.cpp:58
void geometrize::dialog::CompletionBox::CompletionBoxImpl::onLanguageChange ( )
inline
48  {
49  populateUi();
50  }
void populateUi()
Definition: completionbox.cpp:53

Here is the call graph for this function:

void geometrize::dialog::CompletionBox::CompletionBoxImpl::populateUi ( )
inlineprivate
54  {
55  }

Here is the caller graph for this function:

void geometrize::dialog::CompletionBox::CompletionBoxImpl::setCompletionList ( const QStringList &  completionList)
inline
43  {
44  m_model.setStringList(completionList);
45  }
StringListModel m_model
Definition: completionbox.cpp:58
void setStringList(const QStringList &list)
Definition: completionbox.cpp:16

Here is the call graph for this function:

Member Data Documentation

QCompleter geometrize::dialog::CompletionBox::CompletionBoxImpl::m_completer
private
StringListModel geometrize::dialog::CompletionBox::CompletionBoxImpl::m_model
private
CompletionBox* geometrize::dialog::CompletionBox::CompletionBoxImpl::q
private

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