[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [plasmate/terietor/kconfigxt] editors/kconfigxt: modify the description label
From: Giorgos Tsiapaliwkas <terietor () gmail ! com>
Date: 2012-07-27 17:44:14
Message-ID: 20120727174414.59B56A60C6 () git ! kde ! org
[Download RAW message or body]
Git commit 392cadf4ce7871b8689c8ee21318ca4501664cc9 by Giorgos Tsiapaliwkas.
Committed on 27/07/2012 at 19:43.
Pushed by tsiapaliwkas into branch 'terietor/kconfigxt'.
modify the description label
M +8 -1 editors/kconfigxt/kconfigxteditor.cpp
http://commits.kde.org/plasmate/392cadf4ce7871b8689c8ee21318ca4501664cc9
diff --git a/editors/kconfigxt/kconfigxteditor.cpp b/editors/kconfigxt/kconfigxteditor.cpp
index 42099a6..e6446ed 100644
--- a/editors/kconfigxt/kconfigxteditor.cpp
+++ b/editors/kconfigxt/kconfigxteditor.cpp
@@ -391,9 +391,16 @@ void KConfigXtEditor::modifyEntry(QTreeWidgetItem* item, int column)
//it's a whatsthis
newDescription = stringToDescription("whatsthis", item->text(4));
}
-
//replace the items
replaceItemsInXml(oldDescription, newDescription);
+ } else if (column == 4) {
+ const QString oldDescription = stringToDescription(m_lastEntryItem["descriptionType"],
+ m_lastEntryItem["descriptionValue"]);
+
+ QString newDescription = stringToDescription(m_lastEntryItem["descriptionType"],
+ item->text(4));
+
+ replaceItemsInXml(oldDescription, newDescription);
}
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic