diff --git a/tooltipcontent.cpp b/tooltipcontent.cpp index dccedbae1..318689c98 100644 --- a/tooltipcontent.cpp +++ b/tooltipcontent.cpp @@ -143,7 +143,7 @@ QPixmap ToolTipContent::image() const return d->image; } -void ToolTipContent::setWindowToPreview(const WId id) +void ToolTipContent::setWindowToPreview(WId id) { d->windowsToPreview.clear(); d->windowsToPreview.append(id); diff --git a/widgets/meter.cpp b/widgets/meter.cpp index 4264d1bb6..33a81d36b 100644 --- a/widgets/meter.cpp +++ b/widgets/meter.cpp @@ -385,7 +385,7 @@ QFont Meter::labelFont(int index) const return d->fonts[index]; } -void Meter::setLabelAlignment(int index, Qt::Alignment alignment) +void Meter::setLabelAlignment(int index, const Qt::Alignment alignment) { while (d->alignments.count() <= index) { d->alignments << alignment;