mirror of
https://github.com/YosysHQ/nextpnr.git
synced 2026-08-22 14:17:29 +02:00
cleaned some warnings
This commit is contained in:
@@ -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
@@ -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++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user