Commit Graph

477 Commits

Author SHA1 Message Date
Luís Pereira 2df79b77bf Remove user declared copy assignment
The implicit definition of a copy constructor as defaulted is deprecated if
the class has a user-declared copy assignment operator or a user-declared
destructor.
In this case the user-declared copy assignment is equal to the
default-generated. Deleting and just use the default generated seems the
best option.
2020-07-04 17:33:01 +08:00
Luís Pereira 96fc2dbd43 Initialize member variables
It's always good practice.
2020-06-25 00:40:49 +08:00
Luís Pereira f04032e450 Move initialization to the initialization list
When the object of a class is created, the constructors of all member
variables are called consecutively in the order the variables are declared,
even if we don't explicitly write them to the initialization list.
2020-06-25 00:40:49 +08:00
Luís Pereira b30730b0e4 Fix ColorEntry copy operator
A copy operator should not return void.
2020-06-25 00:36:15 +08:00
Thore Bödecker 8eac739cbc Allow QTermWidget access to TerminalDisplay::setBoldIntense 2020-06-19 22:32:58 +08:00
Luís Pereira 91c5c2a48d Don't use 0/nullptr to initialize QFlags
It's deprecated.
2020-06-19 22:17:25 +08:00
Luís Pereira 9c7bd6879e Drop deprecated QLinkedList
Use std::list. Code updated accordingly.
2020-06-13 12:14:18 +08:00
Luís Pereira 6f72d9abad Fix calling signal without the emit keyword
A signal should always be emitted using emit/Q_EMIT.
2020-06-10 20:08:10 +08:00
Luís Pereira f16e4495b4 Don't search application dir for keyboard and scheme data
QCoreApplication::applicationDirPath() is the right place to store
application data.
Exception is MacOs, where it can make sense.
2020-06-09 12:30:51 +08:00
Luís Pereira 60836291f6 Use qAsConst
It's available now and much easier to read.
2020-06-09 12:30:51 +08:00
Ercan Ersoy 106a8966ee Update Turkish translations
Signed-off-by: Ercan Ersoy <ercanersoy@ercanersoy.net>
2020-05-22 09:40:49 +00:00
milotype 99619eaeac Release Croatian translation 2020-05-05 12:13:05 +08:00
tsujan ccd6b7d4f5 Merge pull request #339 from lxqt/prerelease
Pre-release changes
2020-04-24 07:52:14 +04:30
Tsu Jan 4ba3e8acfa Pre-release changes 2020-04-24 07:26:18 +04:30
Chih-Hsuan Yen d090577750 Correctly initialize sigsets (closes #334) (#336) 2020-04-24 09:49:09 +08:00
Axel Kittenberger b025013706 version defines (#333)
* version defines

* version defines

* version defines
2020-04-24 09:48:08 +08:00
tsujan efdacc585f Merge pull request #335 from lxqt/export
Explicitly mark exported classes
2020-04-23 21:30:17 +04:30
tsujan cf662315b3 Merge pull request #338 from dhgutteridge/master
Another NetBSD build fix
2020-04-23 20:58:56 +04:30
tsujan de92ffff25 Merge pull request #330 from HelixBot/weblate-lxqt-qtermwidget
Translations update from Weblate
2020-04-23 20:07:17 +04:30
David H. Gutteridge d0a1fd39b9 Another NetBSD build fix
Add a HAVE_OPENPTY definition, and move NetBSD definitions into their own block, for clarity.
2020-04-22 21:52:55 -04:00
eltonfabricio10 1cd6011fc3 Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (21 of 21 strings)

Translation: LXQt/QTermWidget
Translate-URL: https://weblate.lxqt.org/projects/lxqt/qtermwidget/pt_BR/
2020-04-03 18:29:33 +00:00
Luís Pereira ed8b7cbad0 Merge pull request #337 from lxqt/issue323
Fix QCharRef deprecated behavior (closes #323)
2020-04-03 19:29:22 +01:00
Chih-Hsuan Yen e7feed379f Fix QCharRef deprecated behavior (closes #323)
Inspired by https://github.com/KDE/konsole/commit/324d78c07fc4fe2cdb2219a9e042a969df73d39c
2020-04-02 11:38:20 +08:00
Luís Pereira 6927304ac9 Explicitly mark exported classes
Replace EXPORT_MACRO_NAME by BASE_NAME. It serves all macros, not only the
EXPORT ones.
2020-04-01 20:30:52 +01:00
Paul Galbraith 11c706d3ad rename BlockSize macro to avoid conflict with windows.h (#327)
* rename BlockSize macro to avoid conflict with windows.h

* refactor LXQT_BlockSize -> QTERMWIDGET_BlockSize

* refactor again for all caps QTERMWIDGET_BLOCKSIZE
2020-03-16 10:03:59 +08:00
Tomasz Paweł Gajc 82a919fe20 Fix build with LLVM/clang
Fix error:

/usr/bin/clang++  -DCOLORSCHEMES_DIR=\"/usr/share/qtermwidget5/color-schemes\" -DHAVE_POSIX_OPENPT -DHAVE_SYS_TIME_H -DHAVE_UPDWTMPX -DKB_LAYOUT_DIR=\"/usr/share/qtermwidget5/kb-layouts\" -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_FROM_BYTEARRAY -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_NO_FOREACH -DQT_NO_URL_CAST_FROM_STRING -DQT_USE_QSTRINGBUILDER -DQT_WIDGETS_LIB -DTRANSLATIONS_DIR=\"/usr/share/qtermwidget5/translations\" -Dqtermwidget5_EXPORTS -I/builddir/build/BUILD/qtermwidget-0.14.1/build -I/builddir/build/BUILD/qtermwidget-0.14.1 -I/builddir/build/BUILD/qtermwidget-0.14.1/lib -I/builddir/build/BUILD/qtermwidget-0.14.1/build/lib -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5/QtCore -isystem /usr/lib64/qt5/./mkspecs/linux-clang  -Os -fomit-frame-pointer -g1 -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4  -m64 -mtune=generic -flto -fno-exceptions -Wall -Wextra -Wchar-subscripts -Wno-long-long -Wpointer-arith -Wundef -Wformat-security -Wnon-virtual-dtor -Woverloaded-virtual -Wpedantic -Wno-gnu-zero-variadic-macro-arguments -Os -fomit-frame-pointer -g1 -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4  -m64 -mtune=generic -flto -fPIC -fvisibility=hidden -fvisibility-inlines-hidden   -fPIC -std=gnu++14 -o CMakeFiles/qtermwidget5.dir/lib/TerminalCharacterDecoder.cpp.o -c /builddir/build/BUILD/qtermwidget-0.14.1/lib/TerminalCharacterDecoder.cpp
make[2]: Leaving directory '/builddir/build/BUILD/qtermwidget-0.14.1/build'
BUILDSTDERR: /builddir/build/BUILD/qtermwidget-0.14.1/lib/TerminalCharacterDecoder.cpp:205:18: error: no member named 'iswspace' in namespace 'std'; did you mean 'isspace'?
BUILDSTDERR:         if (std::iswspace(ch))
BUILDSTDERR:             ~~~~~^~~~~~~~
BUILDSTDERR:                  isspace
BUILDSTDERR: /usr/bin/../lib64/gcc/x86_64-openmandriva-linux-gnu/10.0.0/../../../../include/c++/10.0.0/cctype:72:11: note: 'isspace' declared here
BUILDSTDERR:   using ::isspace;
BUILDSTDERR:           ^
BUILDSTDERR: 1 error generated.
BUILDSTDERR: make[2]: *** [CMakeFiles/qtermwidget5.dir/build.make:442: CMakeFiles/qtermwidget5.dir/lib/TerminalCharacterDecoder.cpp.o] Error 1
BUILDSTDERR: make[2]: *** Waiting for unfinished jobs....
2020-03-10 18:40:29 +08:00
Luís Pereira ab81290ea7 Avoid buffer overflows exploits
sprintf() perform unbounded operations. It allows a buffer overflow
exploit.
2020-02-22 18:22:44 +01:00
Luís Pereira 59ac023f60 Drop deprecated QString::sprintf()
Made obsolete in Qt5.14.
2020-02-22 18:22:44 +01:00
Alf Gaida 911ae03ccf Updating runtime dependency in README.md
We have 5.7.1 as minimum in CMakeLists.txt
2020-01-18 23:39:39 +01:00
Luís Pereira ae71042e0d Prevent a c++11 range-loop might detach Qt container
Just make it const.
2020-01-18 23:39:39 +01:00
Chih-Hsuan Yen 887efa8151 pyqt: also check for sip 5.x path
See: https://www.archlinux.org/packages/extra/x86_64/python-pyqt5/files/
2020-01-18 23:29:14 +01:00
Ács Zoltán e64beb4621 Translated using Weblate (Hungarian)
Currently translated at 100.0% (21 of 21 strings)

Translation: LXQt/QTermWidget
Translate-URL: https://weblate.lxqt.org/projects/lxqt/qtermwidget/hu/
2020-01-18 22:15:29 +01:00
Daniel Ruiz de Alegría 64ef5be97f Fix SearchBar light text over white background with dark themes 2019-12-25 18:10:39 +01:00
Luís Pereira 51bfdd6c0e Remove obsolete qCopy
Use std::copy instead.
2019-12-16 11:44:32 +00:00
Luís Pereira 2c95b71d65 Remove (duplicated) string casts definitions
Already defined in LXQtCompilerSettings.
2019-12-16 11:44:07 +00:00
Enol P ccf9e69fd7 Added translation using Weblate (Asturian) 2019-11-25 00:45:52 +01:00
Vadim Zabermakh 0ad6fbfa86 Macro Q_WS_MAC renamed to Q_OS_MAC. Added QLatin1String in string concatenations on MacOS 2019-11-24 16:12:40 +01:00
Masamichi Ito 17d1e4cb70 Translated using Weblate (Japanese)
Currently translated at 100.0% (21 of 21 strings)

Translation: LXQt/QTermWidget
Translate-URL: https://weblate.lxqt.org/projects/lxqt/qtermwidget/ja/
2019-11-24 15:57:52 +01:00
Alf Gaida d4896ed1b6 Translated using Weblate (German)
Currently translated at 100.0% (21 of 21 strings)

Translation: LXQt/QTermWidget
Translate-URL: https://weblate.lxqt.org/projects/lxqt/qtermwidget/de/
2019-11-10 23:11:40 +01:00
hmollercl 575064f1d1 Added translation using Weblate (Mapudungun) 2019-10-26 18:39:59 +02:00
Tsu Jan e9d6b36624 Removed some debug outputs
Users don't need to seem them. If an info is really important, it should be shown in a message box, IMHO.
2019-10-21 21:08:54 +02:00
Chih-Hsuan Yen fbf23a1b1a Fix building on Travis CI
1. Adapted to arch-travis upstream changes [1]

2. Use Bionic (Ubuntu 18.04) on Travis CI

Previously, moc calls fail with:

standard input:0: Note: No relevant classes found. No output generated.

Some relevant discussions suggest that statx functionality is
needed [2], which is available with docker 18.04+ and libseccomp 2.3.3+
[3]. Ubuntu 16.04 do have libseccomp 2.4.1 [4]. Maybe Travis CI builders
are just not updated.

[1] https://github.com/mikkeloscar/arch-travis/issues/65
[2] https://github.com/Martchus/PKGBUILDs/issues/54
[3] https://github.com/moby/moby/pull/36417
[4] https://repology.org/project/libseccomp/versions
2019-10-21 21:06:04 +02:00
Chih-Hsuan Yen 9cce50054e Fix building of the example 2019-10-21 21:06:04 +02:00
Paulo Lieuthier a982330d05 Select all text when opening search bar 2019-10-14 02:35:54 +02:00
Einar Mostad d89ef6b0c6 Translated using Weblate (Norwegian Bokmål)
Currently translated at 100.0% (21 of 21 strings)

Translation: LXQt/QTermWidget
Translate-URL: https://weblate.lxqt.org/projects/lxqt/qtermwidget/nb_NO/
2019-10-05 15:49:40 +02:00
Alf Gaida b097f4e0c6 Translation source update 2019-09-22 20:00:03 +02:00
Pavel Shlyak 1269679b61 Session.cpp: simplify logical expression 2019-09-22 08:36:38 +02:00
Pavel Shlyak c67ea44265 Screen.h: boolean modes 2019-09-22 08:36:07 +02:00
Masamichi Ito 29c6d3cc59 Translated using Weblate (Japanese)
Currently translated at 100.0% (21 of 21 strings)

Translation: LXQt/QTermWidget
Translate-URL: https://weblate.lxqt.org/projects/lxqt/qtermwidget/ja/
2019-09-22 07:48:28 +02:00
p-bo fc74642060 Translated using Weblate (Czech)
Currently translated at 100.0% (21 of 21 strings)

Translation: LXQt/QTermWidget
Translate-URL: https://weblate.lxqt.org/projects/lxqt/qtermwidget/cs/
2019-09-22 07:48:28 +02:00