383 |
383 |
384 def __addNewProject(self): |
384 def __addNewProject(self): |
385 """ |
385 """ |
386 Private method to add a new project entry. |
386 Private method to add a new project entry. |
387 """ |
387 """ |
388 self.multiProject.addNewProject() |
388 itm = self.currentItem() |
|
389 if itm is not None: |
|
390 if itm.parent() is None: |
|
391 # current item is a category item |
|
392 category = itm.text(0) |
|
393 else: |
|
394 category = itm.parent().text(0) |
|
395 else: |
|
396 category = "" |
|
397 self.multiProject.addNewProject(category=category) |
389 |
398 |
390 def __createPopupMenu(self): |
399 def __createPopupMenu(self): |
391 """ |
400 """ |
392 Private method to create the popup menu. |
401 Private method to create the popup menu. |
393 """ |
402 """ |