Changeset View
Changeset View
Standalone View
Standalone View
Modules/samba/smbmountmodel.cpp
Show All 40 Lines | |||||
41 | { | 41 | { | ||
42 | if (orientation != Qt::Horizontal || role != Qt::DisplayRole) { | 42 | if (orientation != Qt::Horizontal || role != Qt::DisplayRole) { | ||
43 | return {}; // we only have column headers. | 43 | return {}; // we only have column headers. | ||
44 | } | 44 | } | ||
45 | 45 | | |||
46 | Q_ASSERT(section <static_cast<int>(ColumnRole::ColumnCount)); | 46 | Q_ASSERT(section <static_cast<int>(ColumnRole::ColumnCount)); | ||
47 | switch (static_cast<ColumnRole>(section)) { | 47 | switch (static_cast<ColumnRole>(section)) { | ||
48 | case ColumnRole::Share: | 48 | case ColumnRole::Share: | ||
49 | return i18n("Resource"); // TODO: maybe reword for 5.19 | 49 | return i18n("Resource"); | ||
50 | case ColumnRole::Path: | 50 | case ColumnRole::Path: | ||
51 | return i18n("Mounted Under"); // TODO: maybe reword for 5.19 | 51 | return i18n("Mounted Under"); | ||
52 | case ColumnRole::Accessible: | 52 | case ColumnRole::Accessible: | ||
53 | return i18nc("@title:column whether a samba share is accessible locally (i.e. mounted)", "Accessible"); | 53 | return i18nc("@title:column whether a samba share is accessible locally (i.e. mounted)", "Accessible"); | ||
54 | case ColumnRole::ColumnCount: | 54 | case ColumnRole::ColumnCount: | ||
55 | break; // noop | 55 | break; // noop | ||
56 | } | 56 | } | ||
57 | 57 | | |||
58 | return {}; | 58 | return {}; | ||
59 | } | 59 | } | ||
▲ Show 20 Lines • Show All 88 Lines • Show Last 20 Lines |