[Ktutorial-commits] SF.net SVN: ktutorial:[309] trunk/ktutorial/ktutorial-editor
Status: Alpha
Brought to you by:
danxuliu
|
From: <dan...@us...> - 2011-05-24 14:33:14
|
Revision: 309
http://ktutorial.svn.sourceforge.net/ktutorial/?rev=309&view=rev
Author: danxuliu
Date: 2011-05-24 14:33:07 +0000 (Tue, 24 May 2011)
Log Message:
-----------
Change WaitForPropertyTreeItem text from "When the property (...) changes to the value (...)" to "When the property (...) has the value (...)".
Modified Paths:
--------------
trunk/ktutorial/ktutorial-editor/src/view/WaitForPropertyTreeItem.cpp
trunk/ktutorial/ktutorial-editor/src/view/WaitForPropertyTreeItem.h
trunk/ktutorial/ktutorial-editor/tests/unit/view/WaitForPropertyTreeItemTest.cpp
Modified: trunk/ktutorial/ktutorial-editor/src/view/WaitForPropertyTreeItem.cpp
===================================================================
--- trunk/ktutorial/ktutorial-editor/src/view/WaitForPropertyTreeItem.cpp 2011-05-16 22:44:36 UTC (rev 308)
+++ trunk/ktutorial/ktutorial-editor/src/view/WaitForPropertyTreeItem.cpp 2011-05-24 14:33:07 UTC (rev 309)
@@ -58,8 +58,8 @@
value = mValue;
}
- return i18nc("@item", "When the property %1 in the object %2 changes to "
- "the value %3", propertyName, objectName, value);
+ return i18nc("@item", "When the property %1 in the object %2 has the value "
+ "%3", propertyName, objectName, value);
}
//private:
Modified: trunk/ktutorial/ktutorial-editor/src/view/WaitForPropertyTreeItem.h
===================================================================
--- trunk/ktutorial/ktutorial-editor/src/view/WaitForPropertyTreeItem.h 2011-05-16 22:44:36 UTC (rev 308)
+++ trunk/ktutorial/ktutorial-editor/src/view/WaitForPropertyTreeItem.h 2011-05-24 14:33:07 UTC (rev 309)
@@ -26,8 +26,8 @@
/**
* A TreeItem that represents a WaitForProperty.
* The tree representation of a WaitForProperty is a plain text:
- * When the property "property name" in the object "object name" changes to the
- * value value
+ * When the property "property name" in the object "object name" has the value
+ * value
*
* If the property, the object name or the value aren't set yet, a placeholder
* is put instead. Property placeholder is "(property not set)", the object name
Modified: trunk/ktutorial/ktutorial-editor/tests/unit/view/WaitForPropertyTreeItemTest.cpp
===================================================================
--- trunk/ktutorial/ktutorial-editor/tests/unit/view/WaitForPropertyTreeItemTest.cpp 2011-05-16 22:44:36 UTC (rev 308)
+++ trunk/ktutorial/ktutorial-editor/tests/unit/view/WaitForPropertyTreeItemTest.cpp 2011-05-24 14:33:07 UTC (rev 309)
@@ -74,8 +74,7 @@
QCOMPARE(item.waitFor(), &waitForProperty);
QCOMPARE(item.text(), i18nc("@item", "When the property (property not set) "
"in the object (object name not set) "
- "changes to the value (value not "
- "set)"));
+ "has the value (value not set)"));
}
void WaitForPropertyTreeItemTest::testConstructorFull() {
@@ -90,8 +89,8 @@
QCOMPARE(item.parent(), &parent);
QCOMPARE(item.waitFor(), &waitForProperty);
QCOMPARE(item.text(), i18nc("@item", "When the property \"propertyName\" "
- "in the object \"objectName\" changes "
- "to the value theValue"));
+ "in the object \"objectName\" has the "
+ "value theValue"));
}
void WaitForPropertyTreeItemTest::testWaitForPropertySetObjectName() {
@@ -101,8 +100,8 @@
WaitForPropertyTreeItem item(&waitForProperty);
QCOMPARE(item.text(), i18nc("@item", "When the property (property not set) "
- "in the object \"objectName\" changes "
- "to the value (value not set)"));
+ "in the object \"objectName\" has the "
+ "value (value not set)"));
}
void WaitForPropertyTreeItemTest::testWaitForPropertySetObjectNameChange() {
@@ -117,8 +116,7 @@
QCOMPARE(item.text(), i18nc("@item", "When the property (property not set) "
"in the object \"objectNameChanged\" "
- "changes to the value (value not "
- "set)"));
+ "has the value (value not set)"));
QCOMPARE(dataChangedSpy.count(), 1);
assertDataChanged(dataChangedSpy, 0, &item);
}
@@ -131,8 +129,7 @@
QCOMPARE(item.text(), i18nc("@item", "When the property \"propertyName\" "
"in the object (object name not set) "
- "changes to the value (value not "
- "set)"));
+ "has the value (value not set)"));
}
void WaitForPropertyTreeItemTest::testWaitForPropertySetPropertyNameChange() {
@@ -147,8 +144,8 @@
QCOMPARE(item.text(), i18nc("@item", "When the property "
"\"propertyNameChanged\" in the "
- "object (object name not set) changes "
- "to the value (value not set)"));
+ "object (object name not set) has the "
+ "value (value not set)"));
QCOMPARE(dataChangedSpy.count(), 1);
assertDataChanged(dataChangedSpy, 0, &item);
}
@@ -161,7 +158,7 @@
QCOMPARE(item.text(), i18nc("@item", "When the property (property not set) "
"in the object (object name not set) "
- "changes to the value theValue"));
+ "has the value theValue"));
}
void WaitForPropertyTreeItemTest::testWaitForPropertySetValueChange() {
@@ -176,8 +173,7 @@
QCOMPARE(item.text(), i18nc("@item", "When the property (property not set) "
"in the object (object name not set) "
- "changes to the value "
- "\"theValueChanged\""));
+ "has the value \"theValueChanged\""));
QCOMPARE(dataChangedSpy.count(), 1);
assertDataChanged(dataChangedSpy, 0, &item);
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|