Fixed constParameter warnings

This commit is contained in:
Daniel Marjamäki 2019-07-24 08:30:36 +02:00
parent 753efb4c9b
commit 37a345c7d0
2 changed files with 32 additions and 32 deletions

View File

@ -245,97 +245,97 @@ void StyleEditDialog::setStyleDefaultDark()
updateStyle();
}
void StyleEditDialog::colorChangedWidgetFG(QColor& newColor)
void StyleEditDialog::colorChangedWidgetFG(const QColor& newColor)
{
mStyleOutgoing.widgetFGColor = newColor;
updateStyle();
}
void StyleEditDialog::colorChangedWidgetBG(QColor& newColor)
void StyleEditDialog::colorChangedWidgetBG(const QColor& newColor)
{
mStyleOutgoing.widgetBGColor = newColor;
updateStyle();
}
void StyleEditDialog::colorChangedHighlightBG(QColor& newColor)
void StyleEditDialog::colorChangedHighlightBG(const QColor& newColor)
{
mStyleOutgoing.highlightBGColor = newColor;
updateStyle();
}
void StyleEditDialog::colorChangedLineNumFG(QColor& newColor)
void StyleEditDialog::colorChangedLineNumFG(const QColor& newColor)
{
mStyleOutgoing.lineNumFGColor = newColor;
updateStyle();
}
void StyleEditDialog::colorChangedLineNumBG(QColor& newColor)
void StyleEditDialog::colorChangedLineNumBG(const QColor& newColor)
{
mStyleOutgoing.lineNumBGColor = newColor;
updateStyle();
}
void StyleEditDialog::colorChangedKeywordFG(QColor& newColor)
void StyleEditDialog::colorChangedKeywordFG(const QColor& newColor)
{
mStyleOutgoing.keywordColor = newColor;
updateStyle();
}
void StyleEditDialog::weightChangedKeyword(QFont::Weight& newWeight)
void StyleEditDialog::weightChangedKeyword(const QFont::Weight& newWeight)
{
mStyleOutgoing.keywordWeight = newWeight;
updateStyle();
}
void StyleEditDialog::colorChangedClassFG(QColor& newColor)
void StyleEditDialog::colorChangedClassFG(const QColor& newColor)
{
mStyleOutgoing.classColor = newColor;
updateStyle();
}
void StyleEditDialog::weightChangedClass(QFont::Weight& newWeight)
void StyleEditDialog::weightChangedClass(const QFont::Weight& newWeight)
{
mStyleOutgoing.classWeight = newWeight;
updateStyle();
}
void StyleEditDialog::colorChangedQuoteFG(QColor& newColor)
void StyleEditDialog::colorChangedQuoteFG(const QColor& newColor)
{
mStyleOutgoing.quoteColor = newColor;
updateStyle();
}
void StyleEditDialog::weightChangedQuote(QFont::Weight& newWeight)
void StyleEditDialog::weightChangedQuote(const QFont::Weight& newWeight)
{
mStyleOutgoing.quoteWeight = newWeight;
updateStyle();
}
void StyleEditDialog::colorChangedCommentFG(QColor& newColor)
void StyleEditDialog::colorChangedCommentFG(const QColor& newColor)
{
mStyleOutgoing.commentColor = newColor;
updateStyle();
}
void StyleEditDialog::weightChangedComment(QFont::Weight& newWeight)
void StyleEditDialog::weightChangedComment(const QFont::Weight& newWeight)
{
mStyleOutgoing.commentWeight = newWeight;
updateStyle();
}
void StyleEditDialog::colorChangedSymbolFG(QColor& newColor)
void StyleEditDialog::colorChangedSymbolFG(const QColor& newColor)
{
mStyleOutgoing.symbolFGColor = newColor;
updateStyle();
}
void StyleEditDialog::colorChangedSymbolBG(QColor& newColor)
void StyleEditDialog::colorChangedSymbolBG(const QColor& newColor)
{
mStyleOutgoing.symbolBGColor = newColor;
updateStyle();
}
void StyleEditDialog::weightChangedSymbol(QFont::Weight& newWeight)
void StyleEditDialog::weightChangedSymbol(const QFont::Weight& newWeight)
{
mStyleOutgoing.symbolWeight = newWeight;
updateStyle();

View File

@ -42,22 +42,22 @@ public slots:
void resetStyle();
void setStyleDefaultLight();
void setStyleDefaultDark();
void colorChangedWidgetFG(QColor& newColor);
void colorChangedWidgetBG(QColor& newColor);
void colorChangedHighlightBG(QColor& newColor);
void colorChangedLineNumFG(QColor& newColor);
void colorChangedLineNumBG(QColor& newColor);
void colorChangedKeywordFG(QColor& newColor);
void weightChangedKeyword(QFont::Weight& newWeight);
void colorChangedClassFG(QColor& newColor);
void weightChangedClass(QFont::Weight& newWeight);
void colorChangedQuoteFG(QColor& newColor);
void weightChangedQuote(QFont::Weight& newWeight);
void colorChangedCommentFG(QColor& newColor);
void weightChangedComment(QFont::Weight& newWeight);
void colorChangedSymbolFG(QColor& newColor);
void colorChangedSymbolBG(QColor& newColor);
void weightChangedSymbol(QFont::Weight& newWeight);
void colorChangedWidgetFG(const QColor& newColor);
void colorChangedWidgetBG(const QColor& newColor);
void colorChangedHighlightBG(const QColor& newColor);
void colorChangedLineNumFG(const QColor& newColor);
void colorChangedLineNumBG(const QColor& newColor);
void colorChangedKeywordFG(const QColor& newColor);
void weightChangedKeyword(const QFont::Weight& newWeight);
void colorChangedClassFG(const QColor& newColor);
void weightChangedClass(const QFont::Weight& newWeight);
void colorChangedQuoteFG(const QColor& newColor);
void weightChangedQuote(const QFont::Weight& newWeight);
void colorChangedCommentFG(const QColor& newColor);
void weightChangedComment(const QFont::Weight& newWeight);
void colorChangedSymbolFG(const QColor& newColor);
void colorChangedSymbolBG(const QColor& newColor);
void weightChangedSymbol(const QFont::Weight& newWeight);
private:
CodeEditorStyle mStyleIncoming;