X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModuleBase%2FModuleBase_WidgetFileSelector.cpp;h=80e6d670a9a30baf33c0e629d79dc17e4a3f1295;hb=a2982d2108f929cf9e7f996cfd590c4ce59dc21c;hp=36191b141ad90918838b0122f2bacc47ccbc7fa0;hpb=9854dbe3ec458621458f78823cf31d0fc3e9de85;p=modules%2Fshaper.git diff --git a/src/ModuleBase/ModuleBase_WidgetFileSelector.cpp b/src/ModuleBase/ModuleBase_WidgetFileSelector.cpp index 36191b141..80e6d670a 100644 --- a/src/ModuleBase/ModuleBase_WidgetFileSelector.cpp +++ b/src/ModuleBase/ModuleBase_WidgetFileSelector.cpp @@ -1,3 +1,5 @@ +// Copyright (C) 2014-20xx CEA/DEN, EDF R&D + /* * ModuleBase_WidgetFileSelector.cpp * @@ -24,7 +26,7 @@ #include #include -#include +#include #include ModuleBase_WidgetFileSelector::ModuleBase_WidgetFileSelector(QWidget* theParent, @@ -44,6 +46,7 @@ ModuleBase_WidgetFileSelector::ModuleBase_WidgetFileSelector(QWidget* theParent, myPathField = new QLineEdit(myMainWidget); aMainLay->addWidget(myPathField, 1, 0); QPushButton* aSelectPathBtn = new QPushButton("...", myMainWidget); + aSelectPathBtn->setToolTip(tr("Select file...")); aSelectPathBtn->setMaximumWidth(20); aSelectPathBtn->setMaximumHeight(20); aMainLay->addWidget(aSelectPathBtn, 1, 1); @@ -98,8 +101,8 @@ QWidget* ModuleBase_WidgetFileSelector::getControl() const QList ModuleBase_WidgetFileSelector::getControls() const { QList result; - QPushButton * aButton = myMainWidget->findChild(); - result << aButton; + //QPushButton * aButton = myMainWidget->findChild(); + //result << aButton; result << myPathField; return result; }