Changeset View
Changeset View
Standalone View
Standalone View
Settings/SettingsData.cpp
Show First 20 Lines • Show All 124 Lines • ▼ Show 20 Line(s) | |||||
125 | { | 125 | { | ||
126 | m_hasAskedAboutTimeStamps = false; | 126 | m_hasAskedAboutTimeStamps = false; | ||
127 | 127 | | |||
128 | QString s = STR( "/" ); | 128 | QString s = STR( "/" ); | ||
129 | m_imageDirectory = imageDirectory.endsWith(s) ? imageDirectory : imageDirectory + s; | 129 | m_imageDirectory = imageDirectory.endsWith(s) ? imageDirectory : imageDirectory + s; | ||
130 | 130 | | |||
131 | _smoothScale = value( "Viewer", "smoothScale", true ); | 131 | _smoothScale = value( "Viewer", "smoothScale", true ); | ||
132 | 132 | | |||
133 | // Split the list of EXIF comments that should be stripped automatically to a list | 133 | // Split the list of Exif comments that should be stripped automatically to a list | ||
134 | 134 | | |||
135 | QStringList commentsToStrip = value( "General", "commentsToStrip", QString::fromLatin1("") ).split(QString::fromLatin1("-,-"), QString::SkipEmptyParts ); | 135 | QStringList commentsToStrip = value( "General", "commentsToStrip", QString::fromLatin1("") ).split(QString::fromLatin1("-,-"), QString::SkipEmptyParts ); | ||
136 | for (QString &comment : commentsToStrip ) | 136 | for (QString &comment : commentsToStrip ) | ||
137 | comment.replace( QString::fromLatin1(",,"), QString::fromLatin1(",") ); | 137 | comment.replace( QString::fromLatin1(",,"), QString::fromLatin1(",") ); | ||
138 | 138 | | |||
139 | m_EXIFCommentsToStrip = commentsToStrip; | 139 | m_EXIFCommentsToStrip = commentsToStrip; | ||
140 | } | 140 | } | ||
141 | 141 | | |||
▲ Show 20 Lines • Show All 56 Lines • ▼ Show 20 Line(s) | |||||
198 | { | 198 | { | ||
199 | if ( tTimeStamps() == Always ) | 199 | if ( tTimeStamps() == Always ) | ||
200 | return true; | 200 | return true; | ||
201 | else if ( tTimeStamps() == Never ) | 201 | else if ( tTimeStamps() == Never ) | ||
202 | return false; | 202 | return false; | ||
203 | else { | 203 | else { | ||
204 | if (!m_hasAskedAboutTimeStamps ) { | 204 | if (!m_hasAskedAboutTimeStamps ) { | ||
205 | QApplication::setOverrideCursor( Qt::ArrowCursor ); | 205 | QApplication::setOverrideCursor( Qt::ArrowCursor ); | ||
206 | QString txt = i18n("When reading time information of images, their EXIF info is used. " | 206 | QString txt = i18n("When reading time information of images, their Exif info is used. " | ||
207 | "Exif info may, however, not be supported by your KPhotoAlbum installation, " | 207 | "Exif info may, however, not be supported by your KPhotoAlbum installation, " | ||
208 | "or no valid information may be in the file. " | 208 | "or no valid information may be in the file. " | ||
209 | "As a backup, KPhotoAlbum may use the timestamp of the image - this may, " | 209 | "As a backup, KPhotoAlbum may use the timestamp of the image - this may, " | ||
210 | "however, not be valid in case the image is scanned in. " | 210 | "however, not be valid in case the image is scanned in. " | ||
211 | "So the question is, should KPhotoAlbum trust the time stamp on your images?" ); | 211 | "So the question is, should KPhotoAlbum trust the time stamp on your images?" ); | ||
212 | int answer = KMessageBox::questionYesNo( nullptr, txt, i18n("Trust Time Stamps?") ); | 212 | int answer = KMessageBox::questionYesNo( nullptr, txt, i18n("Trust Time Stamps?") ); | ||
213 | QApplication::restoreOverrideCursor(); | 213 | QApplication::restoreOverrideCursor(); | ||
214 | if ( answer == KMessageBox::Yes ) | 214 | if ( answer == KMessageBox::Yes ) | ||
▲ Show 20 Lines • Show All 335 Lines • Show Last 20 Lines |