Dynamically update category items

Authored by sebas on Apr 12 2013, 2:53 AM.

Description

Dynamically update category items

Since projects can be opened and closed all the time, and the display of
our category items depends on the opened project paths, we do the
following:

  • listen to IProjectController::project{Opened,Closed()
  • update the internal cache of project paths when that happens
  • visit all the category items and update their texts (The full path, which doesn't change, is conveniently stored in the tooltips)
  • Also use QDir::homePath()

This makes display of the categories work without hardcoded pathes.

Details

Committed
sebasApr 12 2013, 2:53 AM
Parents
R32:596c26ac857f: More renaming mimetype -> category, improve description
Branches
Unknown
Tags
Unknown