[qet] qet/qet: [5689] Remove "{ }" in variables pasted

[ Thread Index | Date Index | More lists.tuxfamily.org/qet Archives ]


Revision: 5689
Author:   scorpio810
Date:     2019-01-02 18:28:38 +0100 (Wed, 02 Jan 2019)
Log Message:
-----------
Remove "{ }" in variables pasted

Modified Paths:
--------------
    trunk/sources/qetinformation.cpp

Modified: trunk/sources/qetinformation.cpp
===================================================================
--- trunk/sources/qetinformation.cpp	2019-01-02 17:18:15 UTC (rev 5688)
+++ trunk/sources/qetinformation.cpp	2019-01-02 17:28:38 UTC (rev 5689)
@@ -90,27 +90,27 @@
  */
 QString QETInformation::titleblockInfoKeysToVar(const QString &info)
 {
-	if      (info == "author")             return QString("%{author}");
-	else if (info == "date")               return QString("%{date}");
-	else if (info == "title")              return QString("%{title}");
-	else if (info == "filename")           return QString("%{filename}");
-	else if (info == "plant")              return QString("%{plant}");
-	else if (info == "locmach")            return QString("%{locmach}");
-	else if (info == "indexrev")           return QString("%{indexrev}");
-	else if (info == "version")            return QString("%{version}");
-	else if (info == "folio")              return QString("%{folio}");
-	else if (info == "folio-id")           return QString("%{folio-id}");
-	else if (info == "folio-total")        return QString("%{folio-total}");
-	else if (info == "previous-folio-num") return QString("%{previous-folio-num}");
-	else if (info == "next-folio-num")     return QString("%{next-folio-num}");
-	else if (info == "projecttitle")       return QString("%{projecttitle}");
-	else if (info == "projectpath")        return QString("%{projectpath}");
-	else if (info == "projectfilename")    return QString("%{projectfilename}");
-	else if (info == "saveddate")          return QString("%{saveddate}");
-	else if (info == "savedtime")          return QString("%{savedtime}");
-	else if (info == "savedfilename")      return QString("%{savedfilename}");
-	else if (info == "savedfilepath")      return QString("%{savedfilepath}");
-	else return QString("%{void");
+	if      (info == "author")             return QString("%author");
+	else if (info == "date")               return QString("%date");
+	else if (info == "title")              return QString("%title");
+	else if (info == "filename")           return QString("%filename");
+	else if (info == "plant")              return QString("%plant");
+	else if (info == "locmach")            return QString("%locmach");
+	else if (info == "indexrev")           return QString("%indexrev");
+	else if (info == "version")            return QString("%version");
+	else if (info == "folio")              return QString("%folio");
+	else if (info == "folio-id")           return QString("%folio-id");
+	else if (info == "folio-total")        return QString("%folio-total");
+	else if (info == "previous-folio-num") return QString("%previous-folio-num");
+	else if (info == "next-folio-num")     return QString("%next-folio-num");
+	else if (info == "projecttitle")       return QString("%projecttitle");
+	else if (info == "projectpath")        return QString("%projectpath");
+	else if (info == "projectfilename")    return QString("%projectfilename");
+	else if (info == "saveddate")          return QString("%saveddate");
+	else if (info == "savedtime")          return QString("%savedtime");
+	else if (info == "savedfilename")      return QString("%savedfilename");
+	else if (info == "savedfilepath")      return QString("%savedfilepath");
+	else return QString("%void");
 }
 
 /**


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/