Quark  0.1
StringListEditor Class Reference

A widget for editing a list of strings. More...

#include <StringListEditor.h++>

Inheritance diagram for StringListEditor:

Signals

void listChanged ()
 Emitted when the list of strings changes. More...
 

Public Member Functions

 StringListEditor (QWidget *parent=NULL)
 Constructor. More...
 
virtual ~StringListEditor ()
 Destructor. More...
 
void setValidator (QValidator *validator)
 Sets a validator for the input field. More...
 
void setStringList (QStringList items)
 Sets the list of strings. More...
 
QStringList stringList () const
 Gets the list of strings. More...
 

Detailed Description

A widget for editing a list of strings.

The layout consists of a list view, a text input field, and "add" and "remove" tool buttons.

Author
Mark Lindner

Constructor & Destructor Documentation

◆ StringListEditor()

StringListEditor ( QWidget *  parent = NULL)

Constructor.

◆ ~StringListEditor()

virtual ~StringListEditor ( )
virtual

Destructor.

Member Function Documentation

◆ listChanged

void listChanged ( )
signal

Emitted when the list of strings changes.

◆ setStringList()

void setStringList ( QStringList  items)

Sets the list of strings.

◆ setValidator()

void setValidator ( QValidator *  validator)

Sets a validator for the input field.

◆ stringList()

QStringList stringList ( ) const

Gets the list of strings.


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