From cfb21a2845dc4025b033a16312bcb6f7c3f0edaf Mon Sep 17 00:00:00 2001 From: Julien Michel <julien.michel@orfeo-toolbox.org> Date: Mon, 22 Jul 2013 14:26:02 +0200 Subject: [PATCH] ENH: Adding a clear message to indicate how to set the applications input --- .../ApplicationsWrapper/mvdWrapperQtWidgetFileSelection.cxx | 1 + .../mvdWrapperQtWidgetInputImageParameter.cxx | 1 + 2 files changed, 2 insertions(+) diff --git a/Code/Common/ApplicationsWrapper/mvdWrapperQtWidgetFileSelection.cxx b/Code/Common/ApplicationsWrapper/mvdWrapperQtWidgetFileSelection.cxx index 79824e911f..6bd838e8a0 100644 --- a/Code/Common/ApplicationsWrapper/mvdWrapperQtWidgetFileSelection.cxx +++ b/Code/Common/ApplicationsWrapper/mvdWrapperQtWidgetFileSelection.cxx @@ -101,6 +101,7 @@ void QtWidgetFileSelection::DoCreateWidget() m_Input = new QLabel; m_Input->setFrameShape(QFrame::Box); + m_Input->setText(tr("Drag and drop a dataset here")); m_HLayout->addWidget(m_Input); // Set up input text edit diff --git a/Code/Common/ApplicationsWrapper/mvdWrapperQtWidgetInputImageParameter.cxx b/Code/Common/ApplicationsWrapper/mvdWrapperQtWidgetInputImageParameter.cxx index 75afb64e71..1b205e29d9 100644 --- a/Code/Common/ApplicationsWrapper/mvdWrapperQtWidgetInputImageParameter.cxx +++ b/Code/Common/ApplicationsWrapper/mvdWrapperQtWidgetInputImageParameter.cxx @@ -100,6 +100,7 @@ void QtWidgetInputImageParameter::DoCreateWidget() // Set up input QLabel m_Input->setToolTip( m_InputImageParam->GetDescription() ); m_Input->setFrameShape(QFrame::Box); + m_Input->setText(tr("Drag and drop a dataset here")); // TODO : QLabel does not have signals, remove connections connect( this, SIGNAL(textChanged(const QString&)), this, SLOT(SetFileName(const QString&)) ); -- GitLab