 |
LeechCraft
0.6.70-13605-g8cd066ad6a
Modular cross-platform feature rich live environment.
|
Go to the documentation of this file.
43 class QStyleOptionViewItem;
96 FitFlags flags =
NoFlags,
const QPoint& shiftAdd = QPoint (0, 0));
125 FitFlags flags =
NoFlags,
const QPoint& shiftAdd = QPoint (0, 0));
203 void Save2MimeData (QMimeData *mimeData,
const QString& name,
const T& t)
205 QByteArray infosData;
206 QDataStream ostr { &infosData, QIODevice::WriteOnly };
209 mimeData->setData (name, infosData);
214 Q_DECLARE_OPERATORS_FOR_FLAGS (LC::Util::FitFlags)
QString FormatName(const QString &name)
HTML-formats the name to let the user know it is not a part of the fixed dialog text.
void Save2MimeData(QMimeData *mimeData, const QString &name, const T &t)
QString ElideProgressBarText(const QString &text, const QStyleOptionViewItem &option)
void TintPalette(QWidget *widget, const QColor &color, double alpha, const QList< QPalette::ColorRole > &roles)
Mixes some of the widget's palette roles with the given color.
QColor TintColors(const QColor &c1, const QColor &c2, double alpha)
Mixes two colors with the given weights.
Q_DECLARE_FLAGS(FitFlags, FitFlag)
QPoint FitRectScreen(QPoint pos, const QSize &size, FitFlags flags, const QPoint &shiftAdd)
Tries to fit a rectangle (like a dialog or popup) into screen.
QLabel * ShowPixmapLabel(const QPixmap &srcPx, const QPoint &pos)
Shows a pixmap at the given pos.
QPoint FitRect(QPoint pos, const QSize &size, const QRect &geometry, FitFlags flags, const QPoint &shiftAdd)
Tries to fit a rectangle (like a dialog or popup) into geometry.