From 66853c1591b4acf81af2bec863b9da6940d41a10 Mon Sep 17 00:00:00 2001 From: Otmane Lahlou <otmane.lahlou@c-s.fr> Date: Mon, 19 Sep 2011 17:12:47 +0200 Subject: [PATCH] WAR : unused variable --- Code/ApplicationEngine/otbWrapperParameterGroup.cxx | 1 - Code/Wrappers/QtWidget/otbWrapperQtWidgetListViewParameter.cxx | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Code/ApplicationEngine/otbWrapperParameterGroup.cxx b/Code/ApplicationEngine/otbWrapperParameterGroup.cxx index cca278bc32..f572910783 100644 --- a/Code/ApplicationEngine/otbWrapperParameterGroup.cxx +++ b/Code/ApplicationEngine/otbWrapperParameterGroup.cxx @@ -399,7 +399,6 @@ ParameterGroup::GetParameterByKey(std::string name) { // Check that splittedName[1] is one of the choice ParameterGroup::Pointer associatedParam; - unsigned int nbChoices = parentAsChoice->GetNbChoices(); // will throw if splittedName[1] is not a choice key associatedParam = parentAsChoice->GetChoiceParameterGroupByKey(splittedName[1]); diff --git a/Code/Wrappers/QtWidget/otbWrapperQtWidgetListViewParameter.cxx b/Code/Wrappers/QtWidget/otbWrapperQtWidgetListViewParameter.cxx index 9196863bdc..e29d8a81e2 100644 --- a/Code/Wrappers/QtWidget/otbWrapperQtWidgetListViewParameter.cxx +++ b/Code/Wrappers/QtWidget/otbWrapperQtWidgetListViewParameter.cxx @@ -60,6 +60,8 @@ void QtWidgetListViewParameter::DoCreateWidget() m_ListView = new QListWidget(); m_ListView->setToolTip(m_ListViewParam->GetDescription()); m_ListView->setSelectionMode(QAbstractItemView::MultiSelection); + m_ListView->setResizeMode(QListView::Adjust); + //m_ListView->resize(m_ListView->width(), 5); connect( m_ListView, SIGNAL(itemSelectionChanged()), this, SLOT(SelectedItems()) ); connect( GetModel(), SIGNAL(UpdateGui()), this, SLOT(UpdateGUI() ) ); -- GitLab