Laurent Montel
1ab98e3485
If include is define in .h remove it if it's defined in .cpp too (scripted)
5 years ago
David Redondo
ee55b18de6
Convert copyright statements to SPDX expressions
...
I was in a video call with Volker and asked him under which license the GtkUpdateIconCache
is licensed.
6 years ago
Noah Davis
acfb94fb90
Move Breeze::Metrics into breezemetrics.h to reduce recompilations
...
Also remove some unecessary inclusions of breeze.h
6 years ago
David Edmundson
4edf2cc983
Port connections to new syntax
...
Summary: Porting done by clazy.
Test Plan: Compiles
Reviewers: #plasma
Subscribers: plasma-devel
Tags: #plasma
Differential Revision: https://phabricator.kde.org/D26823
6 years ago
Albert Astals Cid
993c96a0ea
Micro optimizations
...
Summary:
Add some const & for things that return const & so there's no need to make a copy
Add a std::move for a thing that we pass by copy and it's just saved in another variable
Reviewers: zzag
Reviewed By: zzag
Subscribers: zzag, plasma-devel
Tags: #plasma
Differential Revision: https://phabricator.kde.org/D24614
7 years ago
Hugo Pereira Da Costa
62ac0c1820
- fixed "missing override" warnings
...
- removed useless "virtual" specifications
- removed useless destructors
- cleanup variable initializations
- moved protected methods as private when possible for better encapsulation
7 years ago
Vlad Zagorodniy
004b81c4ef
modernize: delete redundant return statements
...
Summary:
All these return statements are at the end of functions which return
nothing.
Reviewers: #breeze, mart
Reviewed By: mart
Subscribers: plasma-devel
Tags: #plasma
Differential Revision: https://phabricator.kde.org/D11638
8 years ago
Vlad Zagorodniy
a7b40ce13d
modernize: use nullptr
...
Summary:
The old null pointer constants(NULL, 0, etc) are converted to the
the new C++11 nullptr keyword with clang-tidy.
Reviewers: #breeze, mart
Reviewed By: mart
Subscribers: plasma-devel
Tags: #plasma
Differential Revision: https://phabricator.kde.org/D11635
8 years ago
Hugo Pereira Da Costa
8a61b4184f
partial update to c++11
...
- use auto
- use override
- added some std::initializer_list
9 years ago
Kevin Funk
d827875638
Run convert-to-cmake-automoc.pl over files
...
Fixes warnings from moc
11 years ago
Hugo Pereira Da Costa
9e536b6986
removed Q3ListView support
11 years ago
Hugo Pereira Da Costa
12874e399d
ShadowArea -> Side
12 years ago
Hugo Pereira Da Costa
680b97b918
Store offsets between update rect and parent rect, in ::updateGeometry Offsets are applied to parent rect at next ::paintEvent.
...
This prevents rendering glitches when parent changes size between updateGeometry and ::paintEvent
12 years ago
Hugo Pereira Da Costa
1263628762
Only show frame shadows on first call to updateGeometry
...
BUG: 339134
12 years ago
Hugo Pereira Da Costa
2985b4cb6b
use one pixel for focus frame instead of 2
12 years ago
Hugo Pereira Da Costa
8846610e01
Removed FrameShadow event filter, since it was dealing only with mouseEvents and widget is said transparent to mouseEvent
12 years ago
Hugo Pereira Da Costa
5ec8d3533f
do not register QComboBoxPrivateContainer to frameShadows, nothing is drawn anyway
12 years ago
Hugo Pereira Da Costa
5a88de5ab4
register KTextEditor::View to animations and frameShadowFactory
12 years ago
Hugo Pereira Da Costa
92aa18f3a9
Simplified frame shadow rendering:
...
- parent geometry is passed directly from style painting method
- all metrics has been sanitized
- event handlers are simplified
12 years ago
Hugo Pereira Da Costa
35b04b5e34
cleanup
12 years ago
Hugo Pereira Da Costa
00a92a64cf
Fix license
12 years ago
Hugo Pereira Da Costa
f288c34c3e
Render 2px focused outline *inside* frames rather than outside
12 years ago
Hugo Pereira Da Costa
c017272992
moved all relevant enumerations to breeze.h
...
moved arrow rendering to helper
implemented empty toolbar handle
12 years ago
Hugo Pereira Da Costa
d63c7b11ac
cleanup
12 years ago
Hugo Pereira Da Costa
c4564aba6a
centralize outline color handling
12 years ago
Hugo Pereira Da Costa
f49765d648
implemented focus and hover animations for most frames
12 years ago
Hugo Pereira Da Costa
7edef37004
moved all generic rendering methods to helper class
12 years ago
Hugo Pereira Da Costa
178a072b88
added frame shadow factory, to paint over viewports
12 years ago