Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
digiKam
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Graphics
digiKam
Commits
25280c73
Commit
25280c73
authored
Aug 28, 2014
by
Gilles Caulier
🗼
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix FirstRun assistant sentence about to "Keep" image collections
BUGS: 187651 FIXED-IN: 4.3.0
parent
da3e2272
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
19 deletions
+19
-19
utilities/firstrun/collectionpage.cpp
utilities/firstrun/collectionpage.cpp
+17
-17
utilities/firstrun/collectionpage.h
utilities/firstrun/collectionpage.h
+2
-2
No files found.
utilities/firstrun/collectionpage.cpp
View file @
25280c73
...
...
@@ -6,7 +6,7 @@
* Date : 2009-28-04
* Description : first run assistant dialog
*
* Copyright (C) 2009-201
3
by Gilles Caulier <caulier dot gilles at gmail dot com>
* Copyright (C) 2009-201
4
by Gilles Caulier <caulier dot gilles at gmail dot com>
*
* This program is free software; you can redistribute it
* and/or modify it under the terms of the GNU General
...
...
@@ -73,20 +73,22 @@ public:
};
CollectionPage
::
CollectionPage
(
KAssistantDialog
*
const
dlg
)
:
AssistantDlgPage
(
dlg
,
i18n
(
"<b>Configure where
images and metadata are stored
</b>"
)),
:
AssistantDlgPage
(
dlg
,
i18n
(
"<b>Configure where
do you keep your images and you will store database
</b>"
)),
d
(
new
Private
)
{
QWidget
*
const
widget
=
new
QWidget
(
this
);
QVBoxLayout
*
const
vlayout
=
new
QVBoxLayout
(
widget
);
QString
picturesPath
;
#if KDE_IS_VERSION(4,1,61)
picturesPath
=
KGlobalSettings
::
picturesPath
();
#else
#if QT_VERSION >= 0x040400
#
if QT_VERSION >= 0x040400
picturesPath
=
QDesktopServices
::
storageLocation
(
QDesktopServices
::
PicturesLocation
);
# endif
#endif
#endif
kDebug
()
<<
picturesPath
;
if
(
picturesPath
.
isEmpty
())
...
...
@@ -97,22 +99,20 @@ CollectionPage::CollectionPage(KAssistantDialog* const dlg)
QLabel
*
const
textLabel1
=
new
QLabel
(
widget
);
textLabel1
->
setWordWrap
(
true
);
QString
message
=
i18n
(
"<p>Please enter a location where dou you keep your images.</p> "
"<p>You can choose any local folder, even one that already contains images."
"<br/> "
"More folders can be added later under the <i>Settings</i> menu. "
"</p> "
);
#ifndef _WIN32
textLabel1
->
setText
(
i18n
(
"<p>Please enter a location where you want to store your images.</p> "
"<p>You can choose any local folder, even one that already contains images."
"<br/> "
"More folders can be added later under the <i>Settings</i> menu. "
"</p> "
"<p><i>Note:</i> removable media (such as USB drives or DVDs) and remote file systems "
"(such as NFS, or Samba mounted with cifs/smbfs) are supported.</p>"
));
#else
textLabel1
->
setText
(
i18n
(
"<p>Please enter a location where you want to store your images.</p> "
"<p>You can choose any local folder, even one that already contains images."
"<br/> "
"More folders can be added later under the <i>Settings</i> menu. "
"</p> "
));
message
.
append
(
i18n
(
"<p><i>Note:</i> removable media (such as USB drives or DVDs) and remote file systems "
"(such as NFS, or Samba mounted with cifs/smbfs) are supported.</p>"
));
#endif
textLabel1
->
setText
(
message
);
d
->
rootAlbumPathRequester
=
new
KUrlRequester
(
widget
);
d
->
rootAlbumPathRequester
->
setMode
(
KFile
::
Directory
|
KFile
::
LocalOnly
);
d
->
rootAlbumPathRequester
->
setUrl
(
picturesPath
);
...
...
utilities/firstrun/collectionpage.h
View file @
25280c73
...
...
@@ -6,7 +6,7 @@
* Date : 2009-28-04
* Description : first run assistant dialog
*
* Copyright (C) 2009-201
3
by Gilles Caulier <caulier dot gilles at gmail dot com>
* Copyright (C) 2009-201
4
by Gilles Caulier <caulier dot gilles at gmail dot com>
*
* This program is free software; you can redistribute it
* and/or modify it under the terms of the GNU General
...
...
@@ -72,4 +72,4 @@ private:
}
// namespace Digikam
#endif
/*
WELCOME
_PAGE_H */
#endif
/*
COLLECTION
_PAGE_H */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment