Salome HOME
Remove QT4 compatibility.
[modules/gui.git] / src / Qtx / QtxTranslator.cxx
index a5f4997278c2595eec5947fc6f43a7efa08bcfe5..38a83cbd83191422ef95bfe2f60daeb07b99f0b0 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2016  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2019  CEA/DEN, EDF R&D, OPEN CASCADE
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
@@ -63,25 +63,6 @@ QtxTranslator::~QtxTranslator()
 {
 }
 
-#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0)
-
-/*!
-  \brief Returns the translation for the key.
-  \param context message context
-  \param sourceText message source name
-  \param disambiguation message comment (optional)
-  \return Translated text if found or \a sourceText otherwise
-*/
-QString QtxTranslator::translate( const char* context, const char* sourceText, const char* disambiguation ) const
-{
-  QString res = QTranslator::translate( context, sourceText, disambiguation );
-  if ( res.isNull() )
-    res = QTranslator::translate( GLOBAL_CONTEXT, sourceText, disambiguation );
-  return res;
-}
-
-#else
-
 /*!
   \brief Returns the translation for the key.
   \param context message context
@@ -98,4 +79,3 @@ QString QtxTranslator::translate( const char* context, const char* sourceText, c
   return res;
 }
 
-#endif // QT_VERSION < QT_VERSION_CHECK(5, 0, 0)