code format
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#include "qad_sql_table.h"
|
||||
#include "sql_table_plugin.h"
|
||||
|
||||
#include "sql_record_plugin.h"
|
||||
#include "sql_table_plugin.h"
|
||||
|
||||
|
||||
QADSQLTable::QADSQLTable(QObject * parent): QObject(parent) {
|
||||
@@ -9,7 +10,7 @@ QADSQLTable::QADSQLTable(QObject * parent): QObject(parent) {
|
||||
}
|
||||
|
||||
|
||||
QList<QDesignerCustomWidgetInterface * > QADSQLTable::customWidgets() const {
|
||||
QList<QDesignerCustomWidgetInterface *> QADSQLTable::customWidgets() const {
|
||||
return m_widgets;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,23 +1,24 @@
|
||||
#ifndef QAD_SQL_TABLE_H
|
||||
#define QAD_SQL_TABLE_H
|
||||
|
||||
#include <QtDesigner/QtDesigner>
|
||||
#include <QtCore/qplugin.h>
|
||||
#include <QtDesigner/QtDesigner>
|
||||
|
||||
class QADSQLTable: public QObject, public QDesignerCustomWidgetCollectionInterface
|
||||
{
|
||||
class QADSQLTable
|
||||
: public QObject
|
||||
, public QDesignerCustomWidgetCollectionInterface {
|
||||
Q_OBJECT
|
||||
Q_INTERFACES(QDesignerCustomWidgetCollectionInterface)
|
||||
#if QT_VERSION >= 0x050000
|
||||
Q_PLUGIN_METADATA(IID "qad.sql_table")
|
||||
#endif
|
||||
|
||||
public:
|
||||
explicit QADSQLTable(QObject * parent = 0);
|
||||
virtual QList<QDesignerCustomWidgetInterface * > customWidgets() const;
|
||||
virtual QList<QDesignerCustomWidgetInterface *> customWidgets() const;
|
||||
|
||||
private:
|
||||
QList<QDesignerCustomWidgetInterface * > m_widgets;
|
||||
|
||||
QList<QDesignerCustomWidgetInterface *> m_widgets;
|
||||
};
|
||||
|
||||
#endif // QAD_SQL_TABLE_H
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
#include "sql_record_widget.h"
|
||||
#include "sql_record_plugin.h"
|
||||
|
||||
#include "sql_record_widget.h"
|
||||
|
||||
#include <QtCore/QtPlugin>
|
||||
|
||||
|
||||
@@ -9,8 +11,7 @@ SQLRecordPlugin::SQLRecordPlugin(QObject * parent): QObject(parent) {
|
||||
|
||||
|
||||
void SQLRecordPlugin::initialize(QDesignerFormEditorInterface * /* core */) {
|
||||
if (m_initialized)
|
||||
return;
|
||||
if (m_initialized) return;
|
||||
|
||||
// Add extension registrations, etc. here
|
||||
|
||||
@@ -66,4 +67,3 @@ QString SQLRecordPlugin::domXml() const {
|
||||
QString SQLRecordPlugin::includeFile() const {
|
||||
return QLatin1String("sql_record_widget.h");
|
||||
}
|
||||
|
||||
|
||||
@@ -8,8 +8,9 @@
|
||||
# include <QDesignerCustomWidgetInterface>
|
||||
#endif
|
||||
|
||||
class SQLRecordPlugin: public QObject, public QDesignerCustomWidgetInterface
|
||||
{
|
||||
class SQLRecordPlugin
|
||||
: public QObject
|
||||
, public QDesignerCustomWidgetInterface {
|
||||
Q_OBJECT
|
||||
Q_INTERFACES(QDesignerCustomWidgetInterface)
|
||||
|
||||
@@ -30,7 +31,6 @@ public:
|
||||
|
||||
private:
|
||||
bool m_initialized;
|
||||
|
||||
};
|
||||
|
||||
#endif // SQLRECORDPLUGIN_H
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
#include "sql_table_widget.h"
|
||||
#include "sql_table_plugin.h"
|
||||
|
||||
#include "sql_table_widget.h"
|
||||
|
||||
#include <QtCore/QtPlugin>
|
||||
|
||||
|
||||
@@ -9,8 +11,7 @@ SQLTablePlugin::SQLTablePlugin(QObject * parent): QObject(parent) {
|
||||
|
||||
|
||||
void SQLTablePlugin::initialize(QDesignerFormEditorInterface * /* core */) {
|
||||
if (m_initialized)
|
||||
return;
|
||||
if (m_initialized) return;
|
||||
|
||||
// Add extension registrations, etc. here
|
||||
|
||||
@@ -66,4 +67,3 @@ QString SQLTablePlugin::domXml() const {
|
||||
QString SQLTablePlugin::includeFile() const {
|
||||
return QLatin1String("sql_table_widget.h");
|
||||
}
|
||||
|
||||
|
||||
@@ -8,8 +8,9 @@
|
||||
# include <QDesignerCustomWidgetInterface>
|
||||
#endif
|
||||
|
||||
class SQLTablePlugin: public QObject, public QDesignerCustomWidgetInterface
|
||||
{
|
||||
class SQLTablePlugin
|
||||
: public QObject
|
||||
, public QDesignerCustomWidgetInterface {
|
||||
Q_OBJECT
|
||||
Q_INTERFACES(QDesignerCustomWidgetInterface)
|
||||
|
||||
@@ -30,7 +31,6 @@ public:
|
||||
|
||||
private:
|
||||
bool m_initialized;
|
||||
|
||||
};
|
||||
|
||||
#endif // SQLTABLEPLUGIN_H
|
||||
|
||||
Reference in New Issue
Block a user