~paulliu/unity8/lp1383693

« back to all changes in this revision

Viewing changes to plugins/Unity/Indicators/indicatorsmodel.cpp

Implementation of expandable panel design Fixes: 1368856

Show diffs side-by-side

added added

removed removed

Lines of Context:
202
202
    {
203
203
        roles[IndicatorsModelRole::Identifier] = "identifier";
204
204
        roles[IndicatorsModelRole::Position] = "position";
205
 
        roles[IndicatorsModelRole::WidgetSource] = "widgetSource";
206
 
        roles[IndicatorsModelRole::PageSource] = "pageSource";
207
205
        roles[IndicatorsModelRole::IndicatorProperties] = "indicatorProperties";
208
206
    }
209
207
    return roles;
248
246
                return QVariant(indicator->indicatorProperties());
249
247
            }
250
248
            break;
251
 
        case IndicatorsModelRole::WidgetSource:
252
 
            return qmlDirectory()+"/Panel/Indicators/DefaultIndicatorWidget.qml";
253
 
        case IndicatorsModelRole::PageSource:
254
 
            return qmlDirectory()+"/Panel/Indicators/DefaultIndicatorPage.qml";
255
249
        default:
256
250
            break;
257
251
    }