00001 /**************************************************************************** 00002 ** 00003 ** Copyright (C) 2005-2006 Trolltech ASA. All rights reserved. 00004 ** 00005 ** This file is part of the Qt Designer of the Qt Toolkit. 00006 ** 00007 ** This file may be used under the terms of the GNU General Public 00008 ** License version 2.0 as published by the Free Software Foundation 00009 ** and appearing in the file LICENSE.GPL included in the packaging of 00010 ** this file. Please review the following information to ensure GNU 00011 ** General Public Licensing requirements will be met: 00012 ** http://www.trolltech.com/products/qt/opensource.html 00013 ** 00014 ** If you are unsure which license is appropriate for your use, please 00015 ** review the following information: 00016 ** http://www.trolltech.com/products/qt/licensing.html or contact the 00017 ** sales department at sales@trolltech.com. 00018 ** 00019 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE 00020 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 00021 ** 00022 ****************************************************************************/ 00023 00024 #include "q3groupbox_plugin.h" 00025 00026 #include <Qt3Support/Q3GroupBox> 00027 #include <QtGui/QLayout> 00028 #include <QtCore/qplugin.h> 00029 00030 Q3GroupBoxPlugin::Q3GroupBoxPlugin(QObject *parent) 00031 : QObject(parent), 00032 m_initialized(false) 00033 { 00034 } 00035 00036 Q3GroupBoxPlugin::~Q3GroupBoxPlugin() 00037 { 00038 } 00039 00040 00041 QString Q3GroupBoxPlugin::name() const 00042 { 00043 return QLatin1String("Q3GroupBox"); 00044 } 00045 00046 QString Q3GroupBoxPlugin::group() const 00047 { 00048 return QLatin1String("Qt 3 Support"); 00049 } 00050 00051 QString Q3GroupBoxPlugin::toolTip() const 00052 { 00053 return QString(); 00054 } 00055 00056 QString Q3GroupBoxPlugin::whatsThis() const 00057 { 00058 return QString(); 00059 } 00060 00061 QString Q3GroupBoxPlugin::includeFile() const 00062 { 00063 return QLatin1String("Qt3Support/Q3GroupBox"); 00064 } 00065 00066 QIcon Q3GroupBoxPlugin::icon() const 00067 { 00068 return QIcon(); 00069 } 00070 00071 bool Q3GroupBoxPlugin::isContainer() const 00072 { 00073 return true; 00074 } 00075 00076 QWidget *Q3GroupBoxPlugin::createWidget(QWidget *parent) 00077 { 00078 Q3GroupBox *g = new Q3GroupBox(parent); 00079 g->setColumnLayout(0, Qt::Vertical); 00080 return g; 00081 } 00082 00083 bool Q3GroupBoxPlugin::isInitialized() const 00084 { 00085 return m_initialized; 00086 } 00087 00088 void Q3GroupBoxPlugin::initialize(QDesignerFormEditorInterface *core) 00089 { 00090 Q_UNUSED(core); 00091 m_initialized = true; 00092 } 00093
1.5.1