Changeset View
Changeset View
Standalone View
Standalone View
libkookascan/kscanoptset.cpp
Show First 20 Lines • Show All 51 Lines • ▼ Show 20 Line(s) | |||||
52 | { | 52 | { | ||
53 | return (ScanSettings::self()->saveSetDescItem()->group()+" "+setName); | 53 | return (ScanSettings::self()->saveSetDescItem()->group()+" "+setName); | ||
54 | } | 54 | } | ||
55 | 55 | | |||
56 | 56 | | |||
57 | static QString setNameFromGroup(const QString &grpName) | 57 | static QString setNameFromGroup(const QString &grpName) | ||
58 | { | 58 | { | ||
59 | QString prefix = ScanSettings::self()->saveSetDescItem()->group(); | 59 | QString prefix = ScanSettings::self()->saveSetDescItem()->group(); | ||
60 | if (!grpName.startsWith(prefix)) return (QString::null); | 60 | if (!grpName.startsWith(prefix)) return (QString()); | ||
61 | return (grpName.mid(prefix.length()+1)); | 61 | return (grpName.mid(prefix.length()+1)); | ||
62 | } | 62 | } | ||
63 | 63 | | |||
64 | KScanOptSet::KScanOptSet(const QString &setName) | 64 | KScanOptSet::KScanOptSet(const QString &setName) | ||
65 | { | 65 | { | ||
66 | mSetName = setName; | 66 | mSetName = setName; | ||
67 | mSetDescription = ""; | 67 | mSetDescription = ""; | ||
68 | 68 | | |||
▲ Show 20 Lines • Show All 137 Lines • Show Last 20 Lines |