113 Commits

Author SHA1 Message Date
Tobias Junghans
e6a15466ae Make retval of size()/count() match format string
Starting with Qt 6 qsizetype is returned (equals size_t).
2021-05-29 22:28:27 +00:00
Tobias Junghans
3e90e13d5e Use Qt::endl 2021-05-29 22:28:27 +00:00
Tobias Junghans
564e906dd1 Use QString::split(..., Qt::SplitBehavior, ...)
It's in Qt 5.14 already.
2021-05-29 22:28:27 +00:00
Albert Astals Cid
f62a8ee8f7 Run clang-format
find . \( -name "*.cpp" -or -name "*.h"  -or -name "*.c"  -or -name "*.cc" \) -exec clang-format -i {} \;

If you reached this file doing a git blame, please see README.clang-format (added 2 commits in the future of this one)
2020-09-07 02:13:47 +02:00
Albert Astals Cid
c1a028c345 Add const to a few lists 2020-02-16 12:11:57 +01:00
Albert Astals Cid
ad1b9e1b07 Enable QT_NO_CAST_FROM_ASCII 2020-02-15 10:21:12 +00:00
Albert Astals Cid
8b171279e9 clazy: enable qstring allocation warning 2020-02-13 01:07:24 +01:00
Albert Astals Cid
e2029649b9 clang-tidy: enable modernize-deprecated-headers and modernize-use-nullptr 2020-02-12 17:14:33 +01:00
Albert Astals Cid
93336bb110 Enable more clang-tidy modernize checks 2020-01-30 18:02:17 +01:00
Albert Astals Cid
8ee19a09e2 Add a few modernize clang-tidy checks 2020-01-30 17:37:15 +01:00
Albert Astals Cid
c5f5a4c038 clazy: Enable level2 except a few checks
also a few of the manual checks
2020-01-29 17:36:23 +01:00
Albert Astals Cid
294cf98f59 Enable all clazy level 0 tests except one
one: containter-anti-pattern, needs some bigger rework
2020-01-29 15:16:08 +01:00
Albert Astals Cid
dce16514fe Enable a clazy CI
Starting with only missing-qobject-macro check enabled
2020-01-29 14:31:55 +01:00
Albert Astals Cid
7df8f7e215 Move to the new connect syntax
QProcess::errorOccurred is since 5.6 so increase min version
2020-01-29 08:34:13 +00:00
Albert Astals Cid
dbef5838d4 Enable QT_NO_SIGNALS_SLOTS_KEYWORDS 2020-01-22 19:31:28 +01:00
Albert Astals Cid
70406170f5 Cleanup Qt version checks 2020-01-19 17:57:35 +01:00
Albert Astals Cid
4ad7e911d9 QString::sprintf -> QString::asprintf 2020-01-19 17:45:25 +01:00
Albert Astals Cid
00d311d90f Add override 2020-01-19 16:28:44 +01:00
David Faure
7b03a01b18 Fix compilation error due to QByteArray/QString mixup
main.cpp:4251:35: error: no matching function for call to ‘QByteArray::indexOf(QString&)’
2019-03-17 00:09:21 +01:00
Ivan Romanov
ed4a05f674 qcatool: use native dir separators for output on console 2014-09-24 18:03:37 +06:00
Ivan Romanov
4b8e2214cd added new functiion pluginPaths
Retrieve plugin paths. It consists of:
1. QCA_PLUGIN_PATH environment if set.
2. QCoreApplication::libraryPaths() .
3. Directory where plugins were installed.

QCA_PLUGIN_PATH is paths list like PATH or QT_PLUGIN_PATH.
It uses system path separator. ";" on Windows and ":" on Unix.

Also qcatool now uses this function.
2014-09-24 17:47:35 +06:00
Ivan Romanov
2950458c77 qcatool: prevent crash when only options on command line without any commands 2014-09-23 18:32:25 +06:00
Ivan Romanov
e2ff4f0a61 new cmake option DEVELOPER_MODE
DEVELOPER_MODE is designed for various developer issues. Now this mode
forced to use plugins only from build tree. To avoid excess plugins
from system QCA. Also now not need to set QT_PLUGIN_PATH to use plugins
from QCA build tree.
2014-01-07 04:47:18 +06:00
Ivan Romanov
6bf4e5213e Define QCA version only in cmake rules
Added new generated public include qca_version.h.
Also add new version DEFINES
  QCA_MAJOR_VERSION
  QCA_MINOR_VERSION
  QCA_PATCH_VERSION
  QCA_VERSION_STR
  QCA_VERSION_CHECK(major, minor, patch)

and new version functions
  const char *qcaVersionStr()
  int qcaMajorVersion()
  int qcaMinorVersion()
  int qcaPatchVersion()
2014-01-03 14:37:00 +06:00
Ivan Romanov
6d690c0070 Build static QCA
Added new cmake variable SHARED_LIBRARY. By default is on.
When it is off QCA library, plugins, tools, examples and unittests
will be built as static. Also if is used static Qt plugins will be
built as static. Tested with Qt4.
2014-01-02 03:50:18 +06:00
Ivan Romanov
013d6846fc oops, some changes for previous commit
forgot fix qcatool usage
forgot rename qcatool manpage
2013-10-02 22:23:33 +06:00
David Faure
57ce5c3bc9 Port to Qt5 by Ivan Romanov <drizt@land.ru>
svn path=/trunk/kdesupport/qca/; revision=1347515
2013-04-02 11:00:43 +00:00
Justin Karneges
1df0a8e5d9 fix return value warnings
svn path=/trunk/kdesupport/qca/; revision=1201472
2010-11-27 20:38:00 +00:00
Justin Karneges
b982fe98f0 prepare for 2.0.3 release
svn path=/trunk/kdesupport/qca/; revision=1201470
2010-11-27 20:34:37 +00:00
Brad Hards
d6774e9a57 Display the list of capabilities of each provider for the "plugins" command, if we're in debug mode.
svn path=/trunk/kdesupport/qca/; revision=1024107
2009-09-16 02:51:43 +00:00
Justin Karneges
f4bec75e39 really set version to 2.0.2
svn path=/trunk/kdesupport/qca/; revision=961313
2009-04-29 21:43:35 +00:00
Albert Astals Cid
ece6dbfe27 save some unnecessary copies
svn path=/trunk/kdesupport/qca/; revision=815911
2008-06-02 20:20:37 +00:00
Justin Karneges
3722d45473 ability to clear a string entry
svn path=/trunk/kdesupport/qca/; revision=812525
2008-05-25 17:11:37 +00:00
Justin Karneges
ac119bc046 update qca version to 2.0.1
update qcatool version to 2.0.1

svn path=/trunk/kdesupport/qca/; revision=810570
2008-05-21 00:30:15 +00:00
Justin Karneges
3fba35bfcf respect blank lines in diagnostic text
svn path=/trunk/kdesupport/qca/; revision=810529
2008-05-20 22:24:18 +00:00
Justin Karneges
ea5acb9ec5 better support for displaying pgp keys
svn path=/trunk/kdesupport/qca/; revision=800357
2008-04-23 23:59:05 +00:00
Rolf Eike Beer
6d8e902ce9 Add const to logging functions to shut up newer gcc versions
svn path=/trunk/kdesupport/qca/; revision=728492
2007-10-23 13:11:38 +00:00
Justin Karneges
79ca34e298 display cert fingerprints
svn path=/trunk/kdesupport/qca/; revision=702423
2007-08-20 15:58:28 +00:00
Justin Karneges
a42edc8d97 check for pem/der rather than guess
svn path=/trunk/kdesupport/qca/; revision=702408
2007-08-20 15:16:08 +00:00
Justin Karneges
e31ddc9c7d prompting for unavailable entries
svn path=/trunk/kdesupport/qca/; revision=684063
2007-07-06 01:47:35 +00:00
Justin Karneges
87c0c1c64e use getChar
svn path=/trunk/kdesupport/qca/; revision=678666
2007-06-21 22:38:43 +00:00
Justin Karneges
d39b4a033f only wait if store:obj is passed
svn path=/trunk/kdesupport/qca/; revision=677774
2007-06-19 21:39:27 +00:00
Justin Karneges
6e6401b0d3 follow ConstraintType api changes
svn path=/trunk/kdesupport/qca/; revision=675730
2007-06-14 21:32:04 +00:00
Christian Ehrlicher
eaab196763 compile++
svn path=/trunk/kdesupport/qca/; revision=673044
2007-06-08 20:40:22 +00:00
Justin Karneges
385fac08e3 getters
svn path=/trunk/kdesupport/qca/; revision=672757
2007-06-08 03:47:24 +00:00
Justin Karneges
5a97d03b5b CertificateInfoType is now a class, average uses are still API compatible
svn path=/trunk/kdesupport/qca/; revision=672697
2007-06-07 21:31:12 +00:00
Justin Karneges
b7139b89b1 executable is called qcatool2 now
svn path=/trunk/kdesupport/qca/; revision=669910
2007-05-30 19:15:29 +00:00
Justin Karneges
478f48751e finish pkcs11 configurator
svn path=/trunk/kdesupport/qca/; revision=665423
2007-05-16 21:46:00 +00:00
Justin Karneges
93f0e9143a provider configurator, partial work on a pkcs#11-specific configurator
svn path=/trunk/kdesupport/qca/; revision=665147
2007-05-16 01:04:15 +00:00
Justin Karneges
98ae96b995 qcatool is 1.0
svn path=/trunk/kdesupport/qca/; revision=664920
2007-05-15 06:52:55 +00:00