Ignore:
Timestamp:
Feb 11, 2010, 11:19:06 PM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.6.1 sources.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/tools/shared/qtpropertybrowser/qtpropertybrowser.cpp

    r2 r561  
    22**
    33** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
    4 ** Contact: Qt Software Information (qt-info@nokia.com)
     4** All rights reserved.
     5** Contact: Nokia Corporation (qt-info@nokia.com)
    56**
    67** This file is part of the tools applications of the Qt Toolkit.
     
    2122** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
    2223**
    23 ** In addition, as a special exception, Nokia gives you certain
    24 ** additional rights. These rights are described in the Nokia Qt LGPL
    25 ** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
    26 ** package.
     24** In addition, as a special exception, Nokia gives you certain additional
     25** rights.  These rights are described in the Nokia Qt LGPL Exception
     26** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
    2727**
    2828** GNU General Public License Usage
     
    3434** met: http://www.gnu.org/copyleft/gpl.html.
    3535**
    36 ** If you are unsure which license is appropriate for your use, please
    37 ** contact the sales department at qt-sales@nokia.com.
     36** If you have questions regarding the use of this file, please contact
     37** Nokia at qt-info@nokia.com.
    3838** $QT_END_LICENSE$
    3939**
     
    4949#endif
    5050
    51 #if QT_VERSION >= 0x040400
    5251QT_BEGIN_NAMESPACE
    53 #endif
    5452
    5553class QtPropertyPrivate
     
    145143*/
    146144QtProperty::QtProperty(QtAbstractPropertyManager *manager)
    147 {
    148     d_ptr = new QtPropertyPrivate(manager);
     145    : d_ptr(new QtPropertyPrivate(manager))
     146{
    149147    d_ptr->q_ptr = this;
    150148}
     
    180178        property->d_ptr->m_subItems.removeAll(this);
    181179    }
    182     delete d_ptr;
    183180}
    184181
     
    641638*/
    642639QtAbstractPropertyManager::QtAbstractPropertyManager(QObject *parent)
    643     : QObject(parent)
    644 {
    645     d_ptr = new QtAbstractPropertyManagerPrivate;
     640    : QObject(parent), d_ptr(new QtAbstractPropertyManagerPrivate)
     641{
    646642    d_ptr->q_ptr = this;
    647643
     
    655651{
    656652    clear();
    657     delete d_ptr;
    658653}
    659654
     
    11701165
    11711166QtBrowserItem::QtBrowserItem(QtAbstractPropertyBrowser *browser, QtProperty *property, QtBrowserItem *parent)
    1172 {
    1173     d_ptr = new QtBrowserItemPrivate(browser, property, parent);
     1167    : d_ptr(new QtBrowserItemPrivate(browser, property, parent))
     1168{
    11741169    d_ptr->q_ptr = this;
    11751170}
     
    11771172QtBrowserItem::~QtBrowserItem()
    11781173{
    1179     delete d_ptr;
    11801174}
    11811175
     
    12501244        q_ptr->connect(manager, SIGNAL(propertyRemoved(QtProperty *,
    12511245                            QtProperty *)),
    1252                 q_ptr, SLOT(slotPropertyRemoved(QtProperty *, QtProperty *)));
    1253         q_ptr->connect(manager, SIGNAL(propertyDestroyed(QtProperty *)),
    1254                 q_ptr, SLOT(slotPropertyDestroyed(QtProperty *)));
    1255         q_ptr->connect(manager, SIGNAL(propertyChanged(QtProperty *)),
    1256                 q_ptr, SLOT(slotPropertyDataChanged(QtProperty *)));
     1246                q_ptr, SLOT(slotPropertyRemoved(QtProperty*,QtProperty*)));
     1247        q_ptr->connect(manager, SIGNAL(propertyDestroyed(QtProperty*)),
     1248                q_ptr, SLOT(slotPropertyDestroyed(QtProperty*)));
     1249        q_ptr->connect(manager, SIGNAL(propertyChanged(QtProperty*)),
     1250                q_ptr, SLOT(slotPropertyDataChanged(QtProperty*)));
    12571251    }
    12581252    m_managerToProperties[manager].append(property);
     
    12901284        q_ptr->disconnect(manager, SIGNAL(propertyRemoved(QtProperty *,
    12911285                            QtProperty *)),
    1292                 q_ptr, SLOT(slotPropertyRemoved(QtProperty *, QtProperty *)));
    1293         q_ptr->disconnect(manager, SIGNAL(propertyDestroyed(QtProperty *)),
    1294                 q_ptr, SLOT(slotPropertyDestroyed(QtProperty *)));
    1295         q_ptr->disconnect(manager, SIGNAL(propertyChanged(QtProperty *)),
    1296                 q_ptr, SLOT(slotPropertyDataChanged(QtProperty *)));
     1286                q_ptr, SLOT(slotPropertyRemoved(QtProperty*,QtProperty*)));
     1287        q_ptr->disconnect(manager, SIGNAL(propertyDestroyed(QtProperty*)),
     1288                q_ptr, SLOT(slotPropertyDestroyed(QtProperty*)));
     1289        q_ptr->disconnect(manager, SIGNAL(propertyChanged(QtProperty*)),
     1290                q_ptr, SLOT(slotPropertyDataChanged(QtProperty*)));
    12971291
    12981292        m_managerToProperties.remove(manager);
     
    16491643*/
    16501644QtAbstractPropertyBrowser::QtAbstractPropertyBrowser(QWidget *parent)
    1651     : QWidget(parent)
    1652 {
    1653     d_ptr = new QtAbstractPropertyBrowserPrivate;
     1645    : QWidget(parent), d_ptr(new QtAbstractPropertyBrowserPrivate)
     1646{
    16541647    d_ptr->q_ptr = this;
    16551648
     
    16741667    while (itItem.hasNext())
    16751668        d_ptr->clearIndex(itItem.next());
    1676     delete d_ptr;
    16771669}
    16781670
     
    19591951}
    19601952
    1961 #if QT_VERSION >= 0x040400
    19621953QT_END_NAMESPACE
    1963 #endif
    19641954
    19651955#include "moc_qtpropertybrowser.cpp"
Note: See TracChangeset for help on using the changeset viewer.