Salome HOME
projects
/
modules
/
shaper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Optimize the flushing: this improvement speed ups the unit test for 3-4 times
[modules/shaper.git]
/
src
/
ModuleBase
/
ModuleBase_WidgetFileSelector.h
diff --git
a/src/ModuleBase/ModuleBase_WidgetFileSelector.h
b/src/ModuleBase/ModuleBase_WidgetFileSelector.h
index 8b5987fa086a9e27c58fd559a7ba23754277d8ec..ba6a4e019f8506ab16a7ad734e30ffb142ae478f 100644
(file)
--- a/
src/ModuleBase/ModuleBase_WidgetFileSelector.h
+++ b/
src/ModuleBase/ModuleBase_WidgetFileSelector.h
@@
-50,8
+50,6
@@
class MODULEBASE_EXPORT ModuleBase_WidgetFileSelector : public ModuleBase_ModelW
const std::string& theParentId);
virtual ~ModuleBase_WidgetFileSelector();
const std::string& theParentId);
virtual ~ModuleBase_WidgetFileSelector();
- virtual bool restoreValue();
-
virtual QList<QWidget*> getControls() const;
/// Returns true if a file on the current path in the line edit
virtual QList<QWidget*> getControls() const;
/// Returns true if a file on the current path in the line edit
@@
-70,6
+68,8
@@
protected:
/// \return True in success
virtual bool storeValueCustom() const;
/// \return True in success
virtual bool storeValueCustom() const;
+ virtual bool restoreValueCustom();
+
protected:
/// Converts format to filter string
static QString formatToFilter(const QString & theFormat);
protected:
/// Converts format to filter string
static QString formatToFilter(const QString & theFormat);
@@
-86,6
+86,10
@@
protected:
/// Returns string containing formats
QString filterString() const;
/// Returns string containing formats
QString filterString() const;
+ /// Add an extension to file name if the extension is not defined
+ /// \param theFileName a file name
+ /// \param theFilter a file filter
+ /// \return the file name with extension
static QString applyExtension(const QString& theFileName, const QString& theFilter);
protected:
static QString applyExtension(const QString& theFileName, const QString& theFilter);
protected: