|
| QLabel * | LC::Util::ShowPixmapLabel (const QPixmap &pixmap, const QPoint &pos=QPoint()) |
| | Shows a pixmap at the given pos.
|
| void | LC::Util::SetCurrentRow (QAbstractItemView &view, const QModelIndex &index) |
| | Makes the given row current and the only selected one.
|
| QColor | LC::Util::TintColors (const QColor &c1, const QColor &c2, double alpha=0.5) |
| | Mixes two colors with the given weights.
|
| 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.
|
| 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.
|
| QString | LC::Util::FormatHumanReadableList (QStringList items) |
| | Joins items for use in a sentence.
|
| QString | LC::Util::FormatHumanReadableList (const QStringList &items, const QString &one, const QString &few, const QString &many) |
| | Builds a sentence about items, choosing its form by their count.
|
| QPixmap | LC::Util::DrawOverlayText (QPixmap px, const QString &text, QFont font, const QPen &pen, const QBrush &brush) |
| QIcon | LC::Util::FixupTrayIcon (const QIcon &icon) |
| QString | LC::Util::MakeFileDialogFilter (std::initializer_list< FileDialogFilterEntry > entries) |
| QString | LC::Util::MakeFileDialogFilter (const QList< FileDialogFilterEntry > &entries) |
| template<typename T> |
| void | LC::Util::Save2MimeData (QMimeData *mimeData, const QString &name, const T &t) |
| consteval QColor | LC::operator""_rgb (const char *str, std::size_t size) |