Extending Qt Creator Manual | ClassNameValidatingLineEdit

Extending Qt Creator Manual 4.6.0

# ClassNameValidatingLineEdit Class

(Utils::ClassNameValidatingLineEdit)

The ClassNameValidatingLineEdit class implements a line edit that validates a C++ class name and emits a signal to derive suggested file names from it. More...

Header: | #include <ClassNameValidatingLineEdit>
Inherits: | Utils::FancyLineEdit

- List of all members, including inherited members

## Properties

- lowerCaseFileName : bool
- namespacesEnabled : bool

- 3 properties inherited from Utils::FancyLineEdit

## Public Functions

| ClassNameValidatingLineEdit(QWidget *parent = 0)
virtual | ~ClassNameValidatingLineEdit()
bool | forceFirstCapitalLetter() const
bool | lowerCaseFileName() const
QString | namespaceDelimiter()
bool | namespacesEnabled() const
void | setForceFirstCapitalLetter(bool b)
void | setLowerCaseFileName(bool v)
void | setNamespaceDelimiter(const QString &delimiter)
void | setNamespacesEnabled(bool b)

- 28 public functions inherited from Utils::FancyLineEdit

## Signals

void | updateFileName(const QString &t)

- 6 signals inherited from Utils::FancyLineEdit

## Static Public Members

QString | createClassName(const QString &name)

- 1 static public member inherited from Utils::FancyLineEdit

## Protected Functions

bool | validateClassName(FancyLineEdit *edit, QString *errorMessage) const

## Reimplemented Protected Functions

virtual QString | fixInputString(const QString &string)
virtual void | handleChanged(const QString &t)

- 3 protected functions inherited from Utils::FancyLineEdit
- 2 protected functions inherited from Utils::CompletingLineEdit

## Detailed Description

The ClassNameValidatingLineEdit class implements a line edit that validates a C++ class name and emits a signal to derive suggested file names from it.

## Property Documentation

### lowerCaseFileName : bool

Access functions:

bool | lowerCaseFileName() const
void | setLowerCaseFileName(bool v)

### namespacesEnabled : bool

Access functions:

bool | namespacesEnabled() const
void | setNamespacesEnabled(bool b)

## Member Function Documentation

### ClassNameValidatingLineEdit::ClassNameValidatingLineEdit(QWidget *parent = 0)

Default constructs an instance of ClassNameValidatingLineEdit.

### `[virtual]` ClassNameValidatingLineEdit::~ClassNameValidatingLineEdit()

Destroys the instance of ClassNameValidatingLineEdit. The destructor is virtual.

### `[static]` QString ClassNameValidatingLineEdit::createClassName(const QString &name)

### `[virtual protected]` QString ClassNameValidatingLineEdit::fixInputString(const QString &string)

### bool ClassNameValidatingLineEdit::forceFirstCapitalLetter() const

See also setForceFirstCapitalLetter().

### `[virtual protected]` void ClassNameValidatingLineEdit::handleChanged(const QString &t)

### QString ClassNameValidatingLineEdit::namespaceDelimiter()

See also setNamespaceDelimiter().

### void ClassNameValidatingLineEdit::setForceFirstCapitalLetter(bool b)

See also forceFirstCapitalLetter().

### void ClassNameValidatingLineEdit::setNamespaceDelimiter(const QString &delimiter)

See also namespaceDelimiter().

### `[signal]` void ClassNameValidatingLineEdit::updateFileName(const QString &t)

### `[protected]` bool ClassNameValidatingLineEdit::validateClassName(FancyLineEdit *edit, QString *errorMessage) const