[qet] [3530] Forget file from previous commit

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


Revision: 3530
Author:   blacksun
Date:     2014-12-04 11:57:21 +0100 (Thu, 04 Dec 2014)
Log Message:
-----------
Forget file from previous commit

Modified Paths:
--------------
    trunk/sources/qet.cpp
    trunk/sources/qet.h

Modified: trunk/sources/qet.cpp
===================================================================
--- trunk/sources/qet.cpp	2014-12-04 10:54:38 UTC (rev 3529)
+++ trunk/sources/qet.cpp	2014-12-04 10:57:21 UTC (rev 3530)
@@ -683,3 +683,18 @@
 	}
 	return(event_scene_pos);
 }
+
+/**
+ * @brief QET::eachStrIsEqual
+ * @param qsl list of string to compare
+ * @return true if every string is identical, else false;
+ * The list must not be empty
+ * If the list can be empty, call isEmpty() before calling this function
+ */
+bool QET::eachStrIsEqual(const QStringList &qsl) {
+	if (qsl.size() == 1) return true;
+	foreach (const QString t, qsl) {
+		if (qsl.at(0) != t) return false;
+	}
+	return true;
+}

Modified: trunk/sources/qet.h
===================================================================
--- trunk/sources/qet.h	2014-12-04 10:54:38 UTC (rev 3529)
+++ trunk/sources/qet.h	2014-12-04 10:57:21 UTC (rev 3530)
@@ -154,6 +154,7 @@
 	QString titleBlockColumnLengthToString(const TitleBlockColumnLength  &);
 	bool writeXmlFile(QDomDocument &, const QString &, QString * = 0);
 	QPointF graphicsSceneEventPos(QEvent *);
+	bool eachStrIsEqual (const QStringList &qsl);
 }
 
 class Qet : public QObject {


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