Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
mobile Datovka
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
9
Issues
9
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Packages
Packages
Container Registry
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Datovka projects
mobile Datovka
Commits
00d04599
Commit
00d04599
authored
Feb 21, 2018
by
Karel Slaný
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor enhancements.
parent
65267f83
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
src/auxiliaries/attachment_helper.cpp
src/auxiliaries/attachment_helper.cpp
+3
-3
src/auxiliaries/attachment_helper.h
src/auxiliaries/attachment_helper.h
+2
-2
src/setwrapper.h
src/setwrapper.h
+1
-1
No files found.
src/auxiliaries/attachment_helper.cpp
View file @
00d04599
/*
* Copyright (C) 2014-201
7
CZ.NIC
* Copyright (C) 2014-201
8
CZ.NIC
*
* 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
...
...
@@ -47,9 +47,9 @@ QString getApproximatelyAttachmentFileSizeFromBase64(int base64Length)
return
str
;
}
QString
getAttachmentFileIconFromFileExtension
(
QString
fileName
)
QString
getAttachmentFileIconFromFileExtension
(
const
QString
&
fileName
)
{
QString
img
=
"qrc:/fileicons/fileicon_blank.png"
;
QString
img
(
"qrc:/fileicons/fileicon_blank.png"
)
;
QFileInfo
fi
(
fileName
);
const
QString
ext
=
fi
.
suffix
();
ext
.
toLower
();
...
...
src/auxiliaries/attachment_helper.h
View file @
00d04599
/*
* Copyright (C) 2014-201
7
CZ.NIC
* Copyright (C) 2014-201
8
CZ.NIC
*
* 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
...
...
@@ -40,6 +40,6 @@ QString getApproximatelyAttachmentFileSizeFromBase64(int base64Length);
* @param[in] fileName Attachment filename with extension.
* @return Attachment icon filename string.
*/
QString
getAttachmentFileIconFromFileExtension
(
QString
fileName
);
QString
getAttachmentFileIconFromFileExtension
(
const
QString
&
fileName
);
#endif
/* _ATTACHMENT_HELPER_H_ */
src/setwrapper.h
View file @
00d04599
...
...
@@ -41,7 +41,7 @@ public:
/*!
* @brief Constructor.
*/
GlobalSettingsQmlWrapper
(
QObject
*
parent
=
Q_NULLPTR
);
explicit
GlobalSettingsQmlWrapper
(
QObject
*
parent
=
Q_NULLPTR
);
/*!
* @brief Get application version string.
...
...
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