Commit Graph

262 Commits

Author SHA1 Message Date
Yen Chi Hsuan 880b3bcd6c Remove the deprecation notice
Keep everything in QTermWidget class. Confusing users with Konsole
namespace sounds a bad idea.
2017-07-21 19:51:55 +02:00
Yen Chi Hsuan 3e7f8d7875 Handle DECSCUSR signals 2017-07-21 19:51:55 +02:00
Alf Gaida 7677d1bbaf Copied issue template
refs lxde/lxqt/issues/1322
2017-07-08 23:48:18 +02:00
Yen Chi Hsuan 2f473c4ed2 Update building instructions 2017-05-19 22:57:22 +08:00
Yen Chi Hsuan a021195e93 Require Qt 5.6+
5.6+ is necessary since #122
2017-05-19 22:57:22 +08:00
Donnie West ab8a62fce6 This commit allows the consumer of qtermwidget to capture the (#111)
profileChanged signal and receive all of the settings change escape
codes

Fixes #110
2017-04-24 21:41:48 +02:00
Yen Chi Hsuan 443040dd24 Allow the terminal display to be smaller than the size hint (#123)
Fixes https://github.com/lxde/qterminal/issues/288
2017-04-24 21:27:20 +02:00
Donnie West d84849b04b Backport Vt102 emulation fixes (#113)
Also pull in KeyboardTranslator and Character updates
2017-04-24 21:26:56 +02:00
Yen Chi Hsuan 075e355faf Merge pull request #109 from DonnieWest/backportKeytab
Backport the default.keytab from Konsole
2017-04-25 02:54:02 +08:00
Donnie West 934107ae7d Backport the default.keytab from Konsole
Fixes #103 and corrects other key bindings
2017-04-24 13:38:36 -05:00
Luís Pereira 3ce71a3650 Fixes (#122)
* Prevent a possible C++11 range for detach

The solution with Qt>=5.7 is to use the qAsConst() macro.
But the qAsConst macro is just a const_cast to const T&.

* Don't call QByteArray::operator[]() on temporary

Just use the QByteArray::at().

* Adds missing reference in foreach

That's an non non trivial type (QString), using a reference as no drawbacks
and it performs better.

* Use QStringList::constFirst()

Drop QStringList::first(). It's faster and we might avoid detaching a
temporary.

* Don't call QList::operator[]() on temporary objects

It's not what we want. The at operator and QList::value() do the job in the
right way.

* Stops allocating an unneeded temporary container

We were allocating an temporary container (_entries.values(keyCode)) which
implies an extra iteration also.
Now we don't use any temporary container and only perform one iteration.
2017-04-22 11:55:16 +02:00
Yen Chi Hsuan 1f7f9f8b8d Merge pull request #114 from pawelkoston/master
Update PyQt5 bindings
2017-03-27 15:28:03 +08:00
Paweł Kostoń 6b0af2e5be Updated README, Added support for PyQT 5.7
PEP8
2017-03-21 17:22:19 +01:00
Yen Chi Hsuan 08628fda19 Fix memory leak in hotspot (URLs & emails) detection 2017-03-19 22:28:59 +08:00
Luís Pereira 1fbecace4d Adds superbuild support 2017-03-06 02:02:06 +08:00
Luís Pereira 31c516affe Use target_compile_definitions() instead of add_definitions()
The remaining ones.
2017-03-06 02:02:06 +08:00
Luís Pereira 63a71cf245 Update find_package() documentation 2017-03-06 02:02:06 +08:00
Luís Pereira f937393f09 Use the lxqt_create_pkgconfig_file
Drops the local one.
It also improves the .pc file in several ways.
2017-03-06 02:02:06 +08:00
Luís Pereira 46cffb0b6c Improve lxqt_translate_ts() use
Uses the INSTALL_DIR, COMPONENT and sources.
Add the UPDATE_TRANSLATIONS option.
2017-03-06 02:02:06 +08:00
Luís Pereira eb68ffe014 Adds COMPONENT to the install files 2017-03-06 02:02:06 +08:00
Luís Pereira 7829b18119 Renames test app to example. Make it work
test is a reserved name. Adapt it to match the changes done.
src directory renamed to example. src was a misleading name.
2017-03-06 02:02:06 +08:00
Luís Pereira 86389c8838 Drop include_directories() for in tree dirs
Use the target_include_directories() with BUILD_INTERFACE.
Also use CMAKE_INCLUDE_CURRENT_DIR.
2017-03-06 02:02:06 +08:00
Luís Pereira d7dbff6de1 Use the CMake Targets way
Drop the qtermwidget5_use file. Everything done with targets.
2017-03-06 02:02:06 +08:00
Luís Pereira a8d994803d Pack Utf8Proc stuff
Make the package required when USE_UTF8PROC IS ON.
Use target_compile_definitions(), target_include_directories() and
target_link_libraries().
2017-03-06 02:02:06 +08:00
Luís Pereira b1f37a882c Adds export header
We need it because LXQtCompilerSettings makes all symbols hidden by
default.
2017-03-06 02:02:06 +08:00
Luís Pereira 2bc47dc9a8 Use LXQtCompilerSettings
Since we are already using lxqt-build-tools, there's no reason to not take
advantage of it.
2017-03-06 02:02:06 +08:00
Luís Pereira 06156e73d7 Packs compile definitions 2017-03-06 02:02:06 +08:00
Luís Pereira f258e57488 Adds package version file
It's used by find_package() to handle versioning.
2017-03-06 02:02:06 +08:00
Luís Pereira a13a3eef2e Removes Qt4 stuff
We don't support it anymore.
2017-03-06 02:02:06 +08:00
Yen Chi Hsuan 248f29e9ff Add translation mechanism 2017-02-26 23:19:26 +08:00
Luís Pereira 69d4bdd825 Merge branch 'iterators'
* iterators:
  Use const iterators when possible.
  Enable strict iterators for debug builds
2017-02-24 11:19:24 +00:00
Luís Pereira 948b11d0b0 Use const iterators when possible.
Might avoid a detach.
2017-02-20 19:50:27 +00:00
Luís Pereira df95bee91c Enable strict iterators for debug builds
Reference: https://wiki.qt.io/Iterators

By default, it sometimes becomes possible to assign non-const iterators to
const-iterators. Thinking of an iterator as a typedef of some pointer type,
C++ allows assignment of a non-const pointer to a const pointer. To
illustrate:

QMap<QString, QString> map;

/* code compiles and works fine but find() returns the non-const
   QMap::iterator that detaches!
*/
QMap<QString, QString>::const_iterator it = map.find("girish");
2017-02-20 19:19:04 +00:00
Palo Kisa 42a2d78f2d TerminalDisplay: Make resizing "Size" translatable 2017-02-10 10:13:52 +01:00
Yen Chi Hsuan 947742cc88 Merge pull request #107 from aheck/master
Exposes the receivedData signal
2017-01-05 18:32:36 +08:00
Andreas Heck 553eaf16ee Exposes receivedData signal to users of QTermWidget 2017-01-03 00:08:43 +01:00
Andreas Heck c7103b0cc6 Exposes sessions autoClose property to QTermWidget 2016-12-25 01:39:32 +08:00
Alf Gaida 2d57179311 Release 0.7.1: Update changelog 2016-12-21 18:51:55 +01:00
Alf Gaida fce9fedd31 Bump patch version (#105) 2016-12-17 10:57:05 +01:00
Alf Gaida 9e5b946d09 Added a modified Breeze color scheme (#104)
* Changed some of the accent colors for better readability
* Default opacity 0.95
2016-12-16 22:54:57 +01:00
Yen Chi Hsuan 586715accc Accept hex color strings as well (#101)
Fixes https://github.com/lxde/qterminal/issues/286
2016-12-02 22:26:54 +01:00
Yen Chi Hsuan 807619af53 Remove the stale lib/README (#102)
Fixes #54
2016-12-02 01:43:30 +01:00
Yen Chi Hsuan 58f96bacb3 Implement background images (#95) 2016-11-20 22:18:29 +01:00
Yen Chi Hsuan 9be45d6a61 Implement other BOX DRAWING characters (#98)
Porting of
https://github.com/KDE/konsole/commit/1a61aaa5915b5c4a5b205e87d35c38562f932fe0

Fixes https://github.com/lxde/qterminal/issues/277
2016-11-20 15:52:17 +01:00
Yen Chi Hsuan 000fc2e8cf Preparations for context menu actions on URLs (#97)
1. Define click-action so that QTermWidget clients can tell clicking
   from context menu actions
2. Expose filterActions
2016-11-20 15:26:14 +01:00
Yen Chi Hsuan 5d8544455f Drop the ancient wcwidth impl. and use utf8proc if possible (#99) 2016-11-19 12:31:50 +01:00
Pavel Khlebovich e27b89f4ef Remove widget size checks in setVTFont() (#86) 2016-10-04 11:37:43 +02:00
Igor e5dbf9a359 Delete unused tooltip code (#81) 2016-10-03 21:38:18 +02:00
Igor 1727d921b2 Fix size of the array passed to memset() (#79) 2016-10-03 21:38:01 +02:00
Alf Gaida 2cca598036 Remove cpack (#93)
* remove "building with cpack" from CMakeLists.txt - not used anymore

* Added very basic .gitattributes
2016-09-30 17:18:04 +02:00