Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpenBoard
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lifo
Nicolas Ollinger
OpenBoard
Commits
2d35e74b
Commit
2d35e74b
authored
Aug 02, 2011
by
Claudio Valerio
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added Imported label into the translate string list
parent
73555ef0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
15 deletions
+15
-15
UBLibraryController.cpp
src/board/UBLibraryController.cpp
+15
-15
No files found.
src/board/UBLibraryController.cpp
View file @
2d35e74b
/*
/*
* This program is free software: you can redistribute it and/or modify
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* (at your option) any later version.
*
*
* This program is distributed in the hope that it will be useful,
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* GNU General Public License for more details.
*
*
* You should have received a copy of the GNU General Public License
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
*/
#include "UBLibraryController.h"
#include "UBLibraryController.h"
#include "frameworks/UBFileSystemUtils.h"
#include "frameworks/UBFileSystemUtils.h"
...
@@ -144,7 +144,7 @@ void UBLibraryController::importImageOnLibrary(QImage& pImage)
...
@@ -144,7 +144,7 @@ void UBLibraryController::importImageOnLibrary(QImage& pImage)
{
{
if
(
!
pImage
.
isNull
()){
if
(
!
pImage
.
isNull
()){
QDateTime
now
=
QDateTime
::
currentDateTime
();
QDateTime
now
=
QDateTime
::
currentDateTime
();
QString
filePath
=
mPicturesStandardDirectoryPath
.
toLocalFile
()
+
"/
ImportedImage
-"
+
now
.
toString
(
"dd-MM-yyyy hh-mm-ss"
)
+
".png"
;
QString
filePath
=
mPicturesStandardDirectoryPath
.
toLocalFile
()
+
"/
"
+
tr
(
"ImportedImage"
)
+
"
-"
+
now
.
toString
(
"dd-MM-yyyy hh-mm-ss"
)
+
".png"
;
filePath
=
UBFileSystemUtils
::
normalizeFilePath
(
filePath
);
filePath
=
UBFileSystemUtils
::
normalizeFilePath
(
filePath
);
pImage
.
save
(
filePath
);
pImage
.
save
(
filePath
);
UBApplication
::
showMessage
(
tr
(
"Added 1 Image to Library"
));
UBApplication
::
showMessage
(
tr
(
"Added 1 Image to Library"
));
...
...
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