Changeset View
Changeset View
Standalone View
Standalone View
kcmkwin/kwinrules/ruleswidget.cpp
Show First 20 Lines • Show All 309 Lines • ▼ Show 20 Line(s) | |||||
310 | int RulesWidget::comboToDesktop(int val) const | 310 | int RulesWidget::comboToDesktop(int val) const | ||
311 | { | 311 | { | ||
312 | if (val == desktop->count() - 1) | 312 | if (val == desktop->count() - 1) | ||
313 | return NET::OnAllDesktops; | 313 | return NET::OnAllDesktops; | ||
314 | return val + 1; | 314 | return val + 1; | ||
315 | } | 315 | } | ||
316 | 316 | | |||
317 | #ifdef KWIN_BUILD_ACTIVITIES | 317 | #ifdef KWIN_BUILD_ACTIVITIES | ||
318 | int RulesWidget::activityToCombo(QString d) const | 318 | int RulesWidget::activityToCombo(const QString &d) const | ||
319 | { | 319 | { | ||
320 | // TODO: ivan - do a multiselection list | 320 | // TODO: ivan - do a multiselection list | ||
321 | for (int i = 0; i < activity->count(); i++) { | 321 | for (int i = 0; i < activity->count(); i++) { | ||
322 | if (activity->itemData(i).toString() == d) { | 322 | if (activity->itemData(i).toString() == d) { | ||
323 | return i; | 323 | return i; | ||
324 | } | 324 | } | ||
325 | } | 325 | } | ||
326 | 326 | | |||
▲ Show 20 Lines • Show All 644 Lines • Show Last 20 Lines |