Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kde/kguiaddons
KGuiAddons
https://github.com/kde/kguiaddons
Last synced: 4 days ago
JSON representation
KGuiAddons
- Host: GitHub
- URL: https://github.com/kde/kguiaddons
- Owner: KDE
- Created: 2015-09-18T12:02:34.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2024-10-24T11:41:49.000Z (21 days ago)
- Last Synced: 2024-10-25T11:03:03.744Z (20 days ago)
- Language: C++
- Homepage: https://invent.kde.org/frameworks/kguiaddons
- Size: 669 KB
- Stars: 23
- Watchers: 4
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSES/BSD-2-Clause.txt
Awesome Lists containing this project
README
# KDE GUI Addons
Utilities for graphical user interfaces
## Introduction
The &KDE GUI addons provide utilities for graphical user interfaces in the areas
of colors, fonts, text, images, keyboard input.## Usage
To use KGuiAddons, you'll want to look for it using
```cmake
find_package(KF6GuiAddons)
```or its QMake counterpart.
### Color utilities
The KColorUtils namespace contains various small utilities to work with colors. KColorCollection provides
handling of color collections ("pallettes"). KColorMimeData adds drag-and-drop and clipboard mimedata
manipulation to QColor objects### Text utilities
KWordWrap is a special word wrapping algorithm that takes beauty into account. It can be used
directly with QPainter or can return the wrapped text in a QString.KDateValidator is a QValidator that validates user-entered dates.
KFontUtils::adaptFontSize() is a function that calculates the biggest font size (in points)
that can be used to draw a text centered in a rectangle using word wrapping.### Keyboard utilities
KKeySequenceRecorder is a utility that records a QKeySequence by listening to key events in a window.
This can be used to let the user modify predefined keyboard shortcuts for example.### Icon utilities
KIconUtils contains functions to add overlays on top of a QIcon.
### Cursor utilities
KCursorSaver is used to temporarily set a mouse cursor and restore the previous one on destruction.