Gustavo Carneiro
3d2bc6fe05
konsole: move a SessionGroup to a new file
6 years ago
Tomaz Canabrava
4b43b2a45c
Keep function body always with success case
6 years ago
Tomaz Canabrava
ef074e2380
Be pedantic with the test for QVariant validity
6 years ago
Tomaz Canabrava
de8444c361
Pass the QColor directly
6 years ago
Tomaz Canabrava
04484fd1c6
Be more pedantic on the color values
6 years ago
Tomaz Canabrava
309be51fc3
Off by one error in the loop
6 years ago
Tomaz Canabrava
7fda6d2868
Code Style
6 years ago
Christoph Feck
c58058b2ed
GIT_SILENT Update Appstream for new release
...
(cherry picked from commit 16914cac337d5bdf3dd2b480b93c063db99986fd)
6 years ago
Kurt Hindenburg
d8b9ccd24e
Simpify return after else statements
6 years ago
Kurt Hindenburg
90c81d0ecf
Simpify return after else statements
6 years ago
Kurt Hindenburg
9a80c74bff
Fix some implicit-bool-conversions
6 years ago
Kurt Hindenburg
6733a9367b
Convert QFontMetrics depreciated width to horizontalAdvance
...
This change matches what Qt was doing behind the scenes.
int QFontMetrics::width(QChar ch) const
{
return horizontalAdvance(ch);
}
int QFontMetrics::width(const QString &text, int len) const
{
return horizontalAdvance(text, len);
}
Tested with varies files in the konsole/tests folder.
6 years ago
Kurt Hindenburg
5c793cb042
Convert depreciated setWorldMatrix to setWorldTransform
...
This change matches what Qt was doing behind the scenes.
setWorldMatrix(const QMatrix &matrix, bool combine)
{
setWorldTransform(QTransform(matrix), combine);
}
Tested with varies files in the konsole/tests folder.
6 years ago
Gustavo Carneiro
e788b2a894
Konsole: Add a color tabs support in Konsole
...
Signed-off-by: Gustavo Carneiro <gcarneiroa@hotmail.com>
6 years ago
Kurt Hindenburg
2511258338
Use a braced initializer list
6 years ago
Kurt Hindenburg
f3f8cca628
Use auto when initializing with a template cast to avoid duplicating the type
6 years ago
Yaroslav Sidlovsky
d3519ae24c
Use Qurl::fromPercentEncoding for bookmarks
...
This will allow % in URLs; also sync test code with actual code.
Previously the tests were using toUtf8(); however fromPercentEncoding
seems better.
BUG: 420791
Differential Revision: https://phabricator.kde.org/D29322
6 years ago
Luca Weiss
eaef61e1c4
Add DBus call setDefaultProfile() to ViewManager
...
This allows the user to set the default Konsole profile via D-Bus.
Differential Revision: https://phabricator.kde.org/D29236
6 years ago
Friedrich W. H. Kossebau
a1b78079c5
Remove unneeded <optional> include
...
(cherry picked from commit b1b2eee80dfee2e86edd833055fe7d06f1ad159b)
6 years ago
Kurt Hindenburg
1b08f3058a
Do not show "Search for" if web shortcuts are disabled
...
Before showing menu, check System Settings to see if user has disabled
"Enable Web shortcuts".
BUG: 417048
6 years ago
Kurt Hindenburg
b35a13e553
Remove unused variable
...
Missed removing in 0aaa53db54
6 years ago
Gastón Haro
2a48850688
Cursor thickness follows font size
...
Summary:
Before this patch cursors (bloc, i-beam, underline)
were always drawn with 1px lines. They are now
adjusted to follow the font size.
BUG: 397986
Test Plan:
1. Open Konsole
2. Go to Edit Profile and set various font sizes and weights
3. Also mix the different cursor types
4. The cursor width should follow the font size and not
remain always 1px wide.
6 years ago
Ahmad Samir
474886dba8
[TerminalDisplay] Change the mouse cursor shape back to beam on leaveEvent
...
Test case:
- press Ctrl and hover on a link, the mouse cursor changes to a hand,
click the link and a browser or text editor ... etc is launched
- if you have focus stealing prevention set to low or none, the launched
app could cover the terminal window and the mouse cursor will be stuck
at the hand shape, even when the mouse cursor enters the konsole window
again, until you hover on a link again
6 years ago
Kurt Hindenburg
028a31edda
Use std::array
6 years ago
Kurt Hindenburg
795180cb4a
Do not call a virtual function during construction
6 years ago
Kurt Hindenburg
79c6cefe5c
Remove unused variable
6 years ago
Kurt Hindenburg
1563ed9b89
initialize variable in constructor
6 years ago
Kurt Hindenburg
bb157d33c8
Use = default to define a trivial default destructor
6 years ago
Kurt Hindenburg
0d1504993b
Simplify boolean expression
6 years ago
Kurt Hindenburg
0aaa53db54
Remove unused code and assignment
...
17cb78cee removed some commented out code; however, some code that
was never used was left in.
6 years ago
Kurt Hindenburg
c7ea0413ad
Simplify redundant else logic
6 years ago
Kurt Hindenburg
b6b82b790d
Mark constructors explicit
6 years ago
Kurt Hindenburg
92f03de922
Match variable names
6 years ago
Ahmad Samir
caeca72a01
Change depreciated orientation() to angleDelta()
6 years ago
Kurt Hindenburg
56c6d59289
Revert "Change depreciated orientation() to angleDelta()"
...
I attributed this to the wrong person.
This reverts commit e8b66b5b65 .
6 years ago
Martin T. H. Sandsmark
e8b66b5b65
Change depreciated orientation() to angleDelta()
6 years ago
Kurt Hindenburg
61047714dc
Add Qt check for position() - fix build on Qt5.12
6 years ago
Kurt Hindenburg
425f70ff13
Change obsolete pos() to position()
...
Exact code change:
QPoint pos() const { return p.toPoint(); }
QPointF position() const { return p; }
6 years ago
Martin T. H. Sandsmark
785fedbe53
fix deprecated qset warnings
6 years ago
Tomaz Canabrava
3fae1fc49e
Do not depend on c++17
6 years ago
Tomaz Canabrava
ca783c1a6e
Fix Build
6 years ago
Tomaz Canabrava
58e49ab500
Replace manual memory management with unique_ptr
6 years ago
Tomaz Canabrava
6fbf8161b9
Const Correctness
6 years ago
Tomaz Canabrava
753b174b48
Remove the calls to java based iterators
...
C++ has range for loops for a reason.
This also simplifies the FilterChain not to inherit from QList
6 years ago
Tomaz Canabrava
71f426ea2b
Use structured bingings to return the value of multiple variables
...
instead of passing the variables via pointer to the fucntion.
this way we initialize on the declaration, and is simpler to
read the code.
6 years ago
Tomaz Canabrava
6ba182f3f1
Declare and initialize the variable in one go
6 years ago
Tomaz Canabrava
3c49248a46
Use ternary to return a multiple choice
6 years ago
Gustavo Carneiro
609b09e85b
konsole: Add .vscode to ignored list to use the Visual Studio Code to coding
...
Signed-off-by: Gustavo Carneiro <gcarneiroa@hotmail.com>
6 years ago
Christoph Feck
8dafe0a132
GIT_SILENT Update Appstream for new release
...
(cherry picked from commit 15fecd4f3b2859506b43500cce4b83fb89838cd9)
6 years ago
Kurt Hindenburg
bc8530f71e
For hotspot links use https instead of http
...
If the URL path does not include the protocol, use https now.
https://www.volkerkrause.eu/2018/12/08/kde-privacy-finding-insecure-network-connections.html
6 years ago