diff --git a/3rdParty/qtpropertybrowser/src/qttreepropertybrowser.cpp b/3rdParty/qtpropertybrowser/src/qttreepropertybrowser.cpp index ed58d24..4d48116 100644 --- a/3rdParty/qtpropertybrowser/src/qttreepropertybrowser.cpp +++ b/3rdParty/qtpropertybrowser/src/qttreepropertybrowser.cpp @@ -901,6 +901,7 @@ // TODO: //d_ptr->m_treeWidget->header()->setResizeMode(m); + Q_UNUSED(m); } /*! diff --git a/3rdParty/qtpropertybrowser/src/qttreepropertybrowser.cpp b/3rdParty/qtpropertybrowser/src/qttreepropertybrowser.cpp index ed58d24..4d48116 100644 --- a/3rdParty/qtpropertybrowser/src/qttreepropertybrowser.cpp +++ b/3rdParty/qtpropertybrowser/src/qttreepropertybrowser.cpp @@ -901,6 +901,7 @@ // TODO: //d_ptr->m_treeWidget->header()->setResizeMode(m); + Q_UNUSED(m); } /*! diff --git a/Framework/GenericTableUI.h b/Framework/GenericTableUI.h index c4cd323..13e2d70 100644 --- a/Framework/GenericTableUI.h +++ b/Framework/GenericTableUI.h @@ -61,7 +61,7 @@ class GenericTableUI : public QAbstractTableModel { public: - GenericTableUI() : QAbstractTableModel(nullptr), m_genericTable(nullptr), m_view(nullptr) + GenericTableUI() : QAbstractTableModel(nullptr), m_view(nullptr), m_genericTable(nullptr) { } @@ -98,7 +98,7 @@ private: bool isValid(int row, int col) const { - return (row >= 0 && col >= 0 && row < m_genericTable->size() && col < m_genericTable->m_columnNames.size()) ? true : false; + return (row >= 0 && col >= 0 && row < int(m_genericTable->size()) && col < int(m_genericTable->m_columnNames.size())) ? true : false; } virtual Qt::ItemFlags flags(const QModelIndex &index) const @@ -127,7 +127,7 @@ virtual QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const { - if (role == Qt::DisplayRole && orientation == Qt::Horizontal && section < m_genericTable->m_columnNames.size()) + if (role == Qt::DisplayRole && orientation == Qt::Horizontal && section < int(m_genericTable->m_columnNames.size())) { return QString(m_genericTable->m_columnNames[section].c_str()); }