1. Computers
  2. Display Drivers
  3. Graphics Cards
  4. Memory
  5. Motherboards
  6. Processors
  7. Software
  8. Storage
  9. Operating Systems


Facebook RSS Twitter Twitter Google Plus


Phoronix Test Suite

OpenBenchmarking.org

QML Support For KDE KWin Window Decorations

KDE

Published on 27 July 2012 07:16 PM EDT
Written by Michael Larabel in KDE
3 Comments

KDE's KWin compositing window manager now has support for QML window decorations.

Martin Gräßlin has written today on his blog about QML support for window decorations.

For the key information relevant to KDE developers and users with this change:
In the current state the decoration consists of 370 lines of QML code and I expect to need an additional 100 lines to finish the buttons (they are already functional, that is the close button closes the window) and add some of the configuration options. The same API in C++ consists of 1500 lines of code. So we do not only get fewer lines of code but also a more readable and easier to maintain codebase. For something like a window decoration a declarative approach is much better suited than the imperative C++ way of painting elements.

Overall the new QML API will provide the same powerful features as the KDecoration API, but also provides convenience functionality as KCommonDecoration, e.g. a button group taking care of laying out the decoration buttons. To make development of QML based decorations quite simple support is currently being added to Plasmate as part of the Google Summer of Code project. So you will be able to design and also test the decoration directly from inside Plasmate. This is also quite some improvement as with C++ the only way to test a decoration is to use it in KWin, which can be quite nasty during development.

The API will need some more love till I’m quite confident to provide it’s usage but there is enough time till 4.10 :-) So I hope that we can provide a better decoration experience in 4.10. I have a few ideas concerning the usage of QML based decorations in KWin and are looking forward to experiment with them.

About The Author
Michael Larabel is the principal author of Phoronix.com and founded the web-site in 2004 with a focus on enriching the Linux hardware experience and being the largest web-site devoted to Linux hardware reviews, particularly for products relevant to Linux gamers and enthusiasts but also commonly reviewing servers/workstations and embedded Linux devices. Michael has written more than 10,000 articles covering the state of Linux hardware support, Linux performance, graphics hardware drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated testing software. He can be followed via and or contacted via .
Latest Linux Hardware Reviews
  1. The MSI X99S SLI PLUS Is Working & Running Well On Linux
  2. NVIDIA GeForce GTX 980: The Best GPU For Linux Gamers
  3. ROCCAT LUA: A Linux-Friendly Gaming Mouse
  4. Cheetah Mounts: The Affordable Way To Put Your TV On The Wall
Latest Linux Articles
  1. Preview: Radeon Gallium3D Performance For CS:GO On Linux
  2. XWayland Linux Gaming Performance With GNOME Wayland On Fedora 21
  3. EXT4/Btrfs/XFS/F2FS Benchmarks On Linux 3.17
  4. Fedora 21 Alpha First Impressions: It's Great
Latest Linux News
  1. Fedora 21 Workstation Is Making Great Progress
  2. Dash As The Default Shell For Fedora?
  3. CUPS Turn 15 Years Old, CUPS 2.0 Released
  4. VA-API Gallium3D State Tracker Added Back To Mesa
  5. Radeon DRM Gets New Information Ioctl Queries
  6. Mir 0.8 Works On Less ABI Breakage, Touchspots, Responsiveness
  7. CS:GO For Linux Gains Better Stability, Community Server Support
  8. NVIDIA Issues Updated 340.46 Long-Lived Driver Release
  9. KDE Plasma 5.1 Now In Beta
  10. Systemd & Debian Were Most Popular In September
Latest Forum Discussions
  1. Microsoft Announces... Windows 10 With A Start Menu
  2. Borderlands 2 Launches On Steam For Linux
  3. Take the Steam Survey results with a grain of salt. It is flawed.
  4. X.Org Is Looking For Some Female Help
  5. Hacking Express gate (Asus Splashtop)
  6. NVIDIA Alerts Nouveau: They're Starting To Sign/Validate GPU Firmware Images
  7. Updated and Optimized Ubuntu Free Graphics Drivers
  8. Nero CD/DVD Burning Software On Linux Is Dead