~ci-train-bot/unity-scopes-shell/unity-scopes-shell-ubuntu-zesty-2561

« back to all changes in this revision

Viewing changes to src/Unity/settingsmodel.cpp

  • Committer: Bileto Bot
  • Author(s): Albert Astals Cid
  • Date: 2017-01-26 13:08:26 UTC
  • mfrom: (355.1.1 unity-scopes-shell)
  • Revision ID: ci-train-bot@canonical.com-20170126130826-zf36jowyrhklze40
Misc fixes

preview-widget.h
optionselectoroptions.h
     Forward declare as struct as it is really a struct when defined

overviewscope.cpp
     Save creating a list with all the values since foreach knows how to properly iterate a map/hash

settingsmodel.cpp
resultstest.cpp
     Don't create an object we never use

mock-scope-departments.cpp
mock-scope.cpp
     Mark function as override

Approved by: Marcus Tomlinson, unity-api-1-bot

Show diffs side-by-side

added added

removed removed

Lines of Context:
370
370
        int role)
371
371
{
372
372
    int row = index.row();
373
 
    QVariant result;
374
373
 
375
374
    if (row < m_data.size())
376
375
    {