Scanframe Modular Application 0.1.0
Loading...
Searching...
No Matches
sf::InformationIdEdit Class Reference

Line edit having a button. More...

#include <InformationIdEdit.h>

Inheritance diagram for sf::InformationIdEdit:
Collaboration diagram for sf::InformationIdEdit:

Public Member Functions

 InformationIdEdit (QWidget *parent=nullptr)
 
void setId (gii::IdType id)
 Sets the id in the line edit.
 
gii::IdType getId ()
 Gets the id from the text in the line edit.
 
bool selectDialog (QWidget *parent=nullptr)
 Opens the id selection dialog.
 
bool isRequiredProperty (const QString &name) override
 Overridden from base class sf::ObjectExtension.
 
void setTypeId (gii::TypeId typeId)
 Set the type of id set with setId().
 
gii::TypeId getTypeId () const
 Gets the type of id set with setId().
 
- Public Member Functions inherited from sf::ObjectExtension
virtual void addPropertyPages (PropertySheetDialog *sheet)
 Adds the pages specific for this object.
 
virtual bool getSaveChildren () const
 Gets if the children needs saving by the FormBuilder class.
 

Protected Member Functions

void focusOutEvent (QFocusEvent *event) override
 overridden from base class.
 
void resizeEvent (QResizeEvent *) override
 Overridden from base class QLineEdit.
 
- Protected Member Functions inherited from sf::ObjectExtension
 ObjectExtension (QObject *object)
 Protected constructor only. Inlined so no external libs are need for designer.
 
virtual ~ObjectExtension ()=default
 Virtual destructor.
 

Properties

sf::gii::TypeId typeId
 

Additional Inherited Members

- Static Public Member Functions inherited from sf::ObjectExtension
static bool inDesigner ()
 Gets the designer status.
 
static QObject * getExtensionParent (QObject *obj, bool first=true)
 Return if the passed object has this type as parent. It starts by testing the passed object itself.
 

Detailed Description

Line edit having a button.

Constructor & Destructor Documentation

◆ InformationIdEdit()

sf::InformationIdEdit::InformationIdEdit ( QWidget *  parent = nullptr)
explicit

Standard QWidget constructor.

Member Function Documentation

◆ focusOutEvent()

void sf::InformationIdEdit::focusOutEvent ( QFocusEvent *  event)
overrideprotected

overridden from base class.

◆ getId()

gii::IdType sf::InformationIdEdit::getId ( )

Gets the id from the text in the line edit.

◆ getTypeId()

gii::TypeId sf::InformationIdEdit::getTypeId ( ) const

Gets the type of id set with setId().

◆ isRequiredProperty()

bool sf::InformationIdEdit::isRequiredProperty ( const QString &  name)
inlineoverridevirtual

Overridden from base class sf::ObjectExtension.

Implements sf::ObjectExtension.

◆ resizeEvent()

void sf::InformationIdEdit::resizeEvent ( QResizeEvent *  )
overrideprotected

Overridden from base class QLineEdit.

◆ selectDialog()

bool sf::InformationIdEdit::selectDialog ( QWidget *  parent = nullptr)

Opens the id selection dialog.

Parameters
parentOptional, when nullptr the tool-button is the parent.
Returns
True when accepted.

◆ setId()

void sf::InformationIdEdit::setId ( gii::IdType  id)

Sets the id in the line edit.

◆ setTypeId()

void sf::InformationIdEdit::setTypeId ( gii::TypeId  typeId)

Set the type of id set with setId().

Property Documentation

◆ typeId

sf::gii::TypeId sf::InformationIdEdit::typeId
readwrite

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