mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-09-13 20:23:04 +02:00
Forget file from previous commit
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3530 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
parent
bc0d70e1ea
commit
8070f7eedb
@ -683,3 +683,18 @@ QPointF QET::graphicsSceneEventPos(QEvent *event) {
|
|||||||
}
|
}
|
||||||
return(event_scene_pos);
|
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;
|
||||||
|
}
|
||||||
|
@ -154,6 +154,7 @@ namespace QET {
|
|||||||
QString titleBlockColumnLengthToString(const TitleBlockColumnLength &);
|
QString titleBlockColumnLengthToString(const TitleBlockColumnLength &);
|
||||||
bool writeXmlFile(QDomDocument &, const QString &, QString * = 0);
|
bool writeXmlFile(QDomDocument &, const QString &, QString * = 0);
|
||||||
QPointF graphicsSceneEventPos(QEvent *);
|
QPointF graphicsSceneEventPos(QEvent *);
|
||||||
|
bool eachStrIsEqual (const QStringList &qsl);
|
||||||
}
|
}
|
||||||
|
|
||||||
class Qet : public QObject {
|
class Qet : public QObject {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user