common.cpp 413 B

12345678910111213141516171819
  1. // ***********************************************************/
  2. // common.cpp
  3. //
  4. // Copy Right @ Steven Huang. All rights reserved.
  5. //
  6. // Common QT funtions
  7. // *
  8. #include "common.h"
  9. QString appendPath(const QString& path, const QString& sub_path)
  10. {
  11. return QDir::cleanPath(path + QDir::separator() + sub_path);
  12. }
  13. QString toNativePath(const QString& path)
  14. {
  15. return QDir::toNativeSeparators(path);
  16. }