From ea318d1431c89e647598c510c4245c6571aa5f46 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Thu, 26 Jan 2012 23:32:43 -0600 Subject: Update to latest tqt3 automated conversion --- doc/html/ntqsqleditorfactory.html | 111 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 111 insertions(+) create mode 100644 doc/html/ntqsqleditorfactory.html (limited to 'doc/html/ntqsqleditorfactory.html') diff --git a/doc/html/ntqsqleditorfactory.html b/doc/html/ntqsqleditorfactory.html new file mode 100644 index 000000000..c25722d9f --- /dev/null +++ b/doc/html/ntqsqleditorfactory.html @@ -0,0 +1,111 @@ + + + + + +TQSqlEditorFactory Class + + + + + + + +
+ +Home + | +All Classes + | +Main Classes + | +Annotated + | +Grouped Classes + | +Functions +

TQSqlEditorFactory Class Reference
[sql module]

+ +

The TQSqlEditorFactory class is used to create the editors +used by TQDataTable and TQSqlForm. +More... +

#include <ntqsqleditorfactory.h> +

Inherits TQEditorFactory. +

List of all member functions. +

Public Members

+ +

Static Public Members

+ +

Detailed Description

+ + +The TQSqlEditorFactory class is used to create the editors +used by TQDataTable and TQSqlForm. +

+ +

TQSqlEditorFactory is used by TQDataTable and TQSqlForm to +automatically create appropriate editors for a given TQSqlField. +For example if the field is a TQVariant::String a TQLineEdit would +be the default editor, whereas a TQVariant::Int's default editor +would be a TQSpinBox. +

If you want to create different editors for fields with the same +data type, subclass TQSqlEditorFactory and reimplement the +createEditor() function. +

See also TQDataTable, TQSqlForm, and Database Classes. + +


Member Function Documentation

+

TQSqlEditorFactory::TQSqlEditorFactory ( TQObject * parent = 0, const char * name = 0 ) +

+Constructs a SQL editor factory with parent parent, called name. + +

TQSqlEditorFactory::~TQSqlEditorFactory () +

+Destroys the object and frees any allocated resources. + +

TQWidget * TQSqlEditorFactory::createEditor ( TQWidget * parent, const TQVariant & variant ) [virtual] +

+Creates and returns the appropriate editor widget for the TQVariant +variant. +

The widget that is returned has the parent parent (which may be +zero). If variant is invalid, 0 is returned. + +

Reimplemented from TQEditorFactory. +

TQWidget * TQSqlEditorFactory::createEditor ( TQWidget * parent, const TQSqlField * field ) [virtual] +

+This is an overloaded member function, provided for convenience. It behaves essentially like the above function. +

Creates and returns the appropriate editor for the TQSqlField field. + +

TQSqlEditorFactory * TQSqlEditorFactory::defaultFactory () [static] +

+Returns an instance of a default editor factory. + +

void TQSqlEditorFactory::installDefaultFactory ( TQSqlEditorFactory * factory ) [static] +

+Replaces the default editor factory with factory. All +TQDataTable and TQSqlForm instantiations will use this new factory +for creating field editors. TQSqlEditorFactory takes ownership of \a factory, and destroys it when it is no longer needed. + + +

+This file is part of the TQt toolkit. +Copyright © 1995-2007 +Trolltech. All Rights Reserved.


+ +
Copyright © 2007 +TrolltechTrademarks +
TQt 3.3.8
+
+ -- cgit v1.2.1