- Timestamp:
- Feb 11, 2010, 11:19:06 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
-
Property svn:mergeinfo
set to (toggle deleted branches)
/branches/vendor/nokia/qt/4.6.1 merged eligible /branches/vendor/nokia/qt/current merged eligible /branches/vendor/trolltech/qt/current 3-149
-
Property svn:mergeinfo
set to (toggle deleted branches)
-
trunk/tools/shared/qtpropertybrowser/qtpropertybrowser.cpp
r2 r561 2 2 ** 3 3 ** 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) 5 6 ** 6 7 ** This file is part of the tools applications of the Qt Toolkit. … … 21 22 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. 22 23 ** 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. 27 27 ** 28 28 ** GNU General Public License Usage … … 34 34 ** met: http://www.gnu.org/copyleft/gpl.html. 35 35 ** 36 ** If you are unsure which license is appropriate for your use, please37 ** 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. 38 38 ** $QT_END_LICENSE$ 39 39 ** … … 49 49 #endif 50 50 51 #if QT_VERSION >= 0x04040052 51 QT_BEGIN_NAMESPACE 53 #endif54 52 55 53 class QtPropertyPrivate … … 145 143 */ 146 144 QtProperty::QtProperty(QtAbstractPropertyManager *manager) 147 { 148 d_ptr = new QtPropertyPrivate(manager); 145 : d_ptr(new QtPropertyPrivate(manager)) 146 { 149 147 d_ptr->q_ptr = this; 150 148 } … … 180 178 property->d_ptr->m_subItems.removeAll(this); 181 179 } 182 delete d_ptr;183 180 } 184 181 … … 641 638 */ 642 639 QtAbstractPropertyManager::QtAbstractPropertyManager(QObject *parent) 643 : QObject(parent) 644 { 645 d_ptr = new QtAbstractPropertyManagerPrivate; 640 : QObject(parent), d_ptr(new QtAbstractPropertyManagerPrivate) 641 { 646 642 d_ptr->q_ptr = this; 647 643 … … 655 651 { 656 652 clear(); 657 delete d_ptr;658 653 } 659 654 … … 1170 1165 1171 1166 QtBrowserItem::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 { 1174 1169 d_ptr->q_ptr = this; 1175 1170 } … … 1177 1172 QtBrowserItem::~QtBrowserItem() 1178 1173 { 1179 delete d_ptr;1180 1174 } 1181 1175 … … 1250 1244 q_ptr->connect(manager, SIGNAL(propertyRemoved(QtProperty *, 1251 1245 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*))); 1257 1251 } 1258 1252 m_managerToProperties[manager].append(property); … … 1290 1284 q_ptr->disconnect(manager, SIGNAL(propertyRemoved(QtProperty *, 1291 1285 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*))); 1297 1291 1298 1292 m_managerToProperties.remove(manager); … … 1649 1643 */ 1650 1644 QtAbstractPropertyBrowser::QtAbstractPropertyBrowser(QWidget *parent) 1651 : QWidget(parent) 1652 { 1653 d_ptr = new QtAbstractPropertyBrowserPrivate; 1645 : QWidget(parent), d_ptr(new QtAbstractPropertyBrowserPrivate) 1646 { 1654 1647 d_ptr->q_ptr = this; 1655 1648 … … 1674 1667 while (itItem.hasNext()) 1675 1668 d_ptr->clearIndex(itItem.next()); 1676 delete d_ptr;1677 1669 } 1678 1670 … … 1959 1951 } 1960 1952 1961 #if QT_VERSION >= 0x0404001962 1953 QT_END_NAMESPACE 1963 #endif1964 1954 1965 1955 #include "moc_qtpropertybrowser.cpp"
Note:
See TracChangeset
for help on using the changeset viewer.