43 class QStyleOptionViewItem;
96 FitFlags flags =
NoFlags,
const QPoint& shiftAdd = QPoint (0, 0));
125 FitFlags flags =
NoFlags,
const QPoint& shiftAdd = QPoint (0, 0));
205 QByteArray infosData;
206 QDataStream ostr { &infosData, QIODevice::WriteOnly };
209 mimeData->setData (name, infosData);
214 Q_DECLARE_OPERATORS_FOR_FLAGS (LeechCraft::Util::FitFlags)
QLabel * ShowPixmapLabel(const QPixmap &srcPx, const QPoint &pos)
Shows a pixmap at the given pos.
detail::ExprTree< detail::ExprType::LeafStaticPlaceholder, boost::mpl::int_< Idx > > pos
QString ElideProgressBarText(const QString &text, const QStyleOptionViewItem &option)
QPoint FitRectScreen(QPoint pos, const QSize &size, FitFlags flags, const QPoint &shiftAdd)
Tries to fit a rectangle (like a dialog or popup) into screen.
void Save2MimeData(QMimeData *mimeData, const QString &name, const T &t)
QColor TintColors(const QColor &c1, const QColor &c2, double alpha)
Mixes two colors with the given weights.
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 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.
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.
Q_DECLARE_FLAGS(FitFlags, FitFlag)