cleaned some warnings

This commit is contained in:
Miodrag Milanovic
2018-06-23 08:01:36 +02:00
parent 0508fb3627
commit 6f4e49bb47
5 changed files with 10 additions and 10 deletions
+3 -3
View File
@@ -277,14 +277,14 @@ void QtButtonPropertyBrowserPrivate::propertyInserted(QtBrowserItem *index, QtBr
if (!parentItem->container) {
m_recreateQueue.removeAll(parentItem);
WidgetItem *grandParent = parentItem->parent;
QWidget *w = 0;
//QWidget *w = 0;
QGridLayout *l = 0;
const int oldRow = gridRow(parentItem);
if (grandParent) {
w = grandParent->container;
//w = grandParent->container;
l = grandParent->layout;
} else {
w = q_ptr;
//w = q_ptr;
l = m_mainLayout;
}
QFrame *container = new QFrame();
@@ -312,15 +312,15 @@ void QtGroupBoxPropertyBrowserPrivate::propertyRemoved(QtBrowserItem *index)
removeRow(parentItem->layout, row);
} else {
WidgetItem *par = parentItem->parent;
QWidget *w = 0;
//QWidget *w = 0;
QGridLayout *l = 0;
int oldRow = -1;
if (!par) {
w = q_ptr;
//w = q_ptr;
l = m_mainLayout;
oldRow = m_children.indexOf(parentItem);
} else {
w = par->groupBox;
//w = par->groupBox;
l = par->layout;
oldRow = par->children.indexOf(parentItem);
if (hasHeader(par))
+2 -2
View File
@@ -1874,14 +1874,14 @@ QtBrowserItem *QtAbstractPropertyBrowser::insertProperty(QtProperty *property,
QList<QtProperty *> pendingList = properties();
int pos = 0;
int newPos = 0;
QtProperty *properAfterProperty = 0;
//QtProperty *properAfterProperty = 0;
while (pos < pendingList.count()) {
QtProperty *prop = pendingList.at(pos);
if (prop == property)
return 0;
if (prop == afterProperty) {
newPos = pos + 1;
properAfterProperty = afterProperty;
//properAfterProperty = afterProperty;
}
pos++;
}