~blue-shell/blue-shell/kde-workspace-systemsettings-qml

« back to all changes in this revision

Viewing changes to systemsettings/core/MenuModel.cpp

  • Committer: Eike Hein
  • Date: 2013-01-23 10:25:54 UTC
  • Revision ID: git-v1:cd6b36487ddc7ef8ff77defcc4ae40bb0c2e89ab
Basic QML Testbed view mode plugin.

Missing wip feature branches for:
- keyboard nav and associated scroll behavior
- item rect animations
- search filtering
- CJK-optimized label wordwrapping
- rtl layout experiments

To be finished/merged one by one soon.

Known bugs:
- scrollbar doesn't update on first show (minor)
- doesn't follow the single vs. doubleclick global setting
- whole bunch of hardcoded margins making for ugly code (mostly
  addressed in the rtl branch)

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
    , d( new Private() )
42
42
{
43
43
    d->rootItem = menuRoot;
 
44
 
 
45
    QHash<int, QByteArray> roles;
 
46
    roles.insert(Qt::DisplayRole, "DisplayRole");
 
47
    roles.insert(Qt::DecorationRole, "DecorationRole");
 
48
    setRoleNames(roles);
44
49
}
45
50
 
46
51
MenuModel::~MenuModel()