![]() |
LeechCraft
0.6.70-15082-g543737046d
Modular cross-platform feature rich live environment.
|
#include "util.h"#include <QSize>#include <QApplication>#include <QDesktopWidget>#include <QKeyEvent>#include <QTimer>#include <QLabel>#include <QPainter>#include <QStyleOptionViewItem>#include <QtDebug>#include "geometry.h"
Include dependency graph for util.cpp:Go to the source code of this file.
Namespaces | |
| LC | |
| LC::Util | |
Functions | |
| QLabel * | LC::Util::ShowPixmapLabel (const QPixmap &pixmap, const QPoint &pos=QPoint()) |
| Shows a pixmap at the given pos. More... | |
| QColor | LC::Util::TintColors (const QColor &c1, const QColor &c2, double alpha=0.5) |
| Mixes two colors with the given weights. More... | |
| QString | LC::Util::ElideProgressBarText (const QString &text, const QStyleOptionViewItem &option) |
| void | LC::Util::TintPalette (QWidget *widget, const QColor &color, double alpha=0.5, const QList< QPalette::ColorRole > &roles={ QPalette::ColorRole::Text, QPalette::ColorRole::WindowText }) |
| Mixes some of the widget's palette roles with the given color. More... | |
| QString | LC::Util::FormatName (const QString &name) |
| HTML-formats the name to let the user know it is not a part of the fixed dialog text. More... | |
| QPixmap | LC::Util::DrawOverlayText (QPixmap px, const QString &text, QFont font, const QPen &pen, const QBrush &brush) |