[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: koffice/kplato
From: Florian Piquemal <flotueur () yahoo ! fr>
Date: 2007-05-26 15:17:32
Message-ID: 1180192652.167672.19205.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 668475 by flotueur:
+ typo correction
+ checks if a task is not a summary before adding it in the available task list
M +5 -13 kptperteditor.cc
--- trunk/koffice/kplato/kptperteditor.cc #668474:668475
@@ -92,8 +92,7 @@
void PertEditor::dispAvailableTasks(){
- /*for (int i=0;i< list_nodeNotView.size();i++)
- list_nodeNotView.removeFirst();*/
+
list_nodeNotView.clear();
list_nodeNotView.begin();
@@ -114,7 +113,9 @@
{
// Checks if the curent node is not a milestone
// and if it isn't the same as the selected task in the m_tasktree
- if ( currentNode->type() != Node::Type_Milestone and currentNode->name() != selectedTaskName
+ if ( currentNode->type() != Node::Type_Milestone
+ and currentNode->type() != Node::Type_Summarytask
+ and currentNode->name() != selectedTaskName
and !list_nodeNotView.contains(currentNode)
and (m_assignList->selectedListWidget()->findItems(currentNode->name(),0)).empty())
{
@@ -132,15 +133,9 @@
fakeItem->setForeground(*fakeItemBrush);
fakeItem->setFlags(Qt::ItemIsEnabled);
m_assignList->availableListWidget()->addItem(fakeItem);
-
}
}
- //remove all nodes from list_nodeParent
- /*for (int i=0;i< list_nodeNotView.size();i++)
- {
- list_nodeNotView.removeFirst();
- }
- list_nodeNotView.begin();*/
+
list_nodeNotView.clear();
}
else
@@ -165,8 +160,6 @@
}
-
-
Node * PertEditor::itemToNode(QString itemName, Node * startNode){
Node * result = 0;
if (startNode->numChildren() > 0){
@@ -189,7 +182,6 @@
AddRelationCmd * addCmd= new AddRelationCmd(m_part,m_rel,currentItem->text());
m_part->addCommand( addCmd );
- //emit refreshAvailableTaskList();
}
void PertEditor::removeTaskFromRequiredList(QListWidgetItem * currentItem){
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic