Fixed constParameter warnings
This commit is contained in:
parent
753efb4c9b
commit
37a345c7d0
|
@ -245,97 +245,97 @@ void StyleEditDialog::setStyleDefaultDark()
|
||||||
updateStyle();
|
updateStyle();
|
||||||
}
|
}
|
||||||
|
|
||||||
void StyleEditDialog::colorChangedWidgetFG(QColor& newColor)
|
void StyleEditDialog::colorChangedWidgetFG(const QColor& newColor)
|
||||||
{
|
{
|
||||||
mStyleOutgoing.widgetFGColor = newColor;
|
mStyleOutgoing.widgetFGColor = newColor;
|
||||||
updateStyle();
|
updateStyle();
|
||||||
}
|
}
|
||||||
|
|
||||||
void StyleEditDialog::colorChangedWidgetBG(QColor& newColor)
|
void StyleEditDialog::colorChangedWidgetBG(const QColor& newColor)
|
||||||
{
|
{
|
||||||
mStyleOutgoing.widgetBGColor = newColor;
|
mStyleOutgoing.widgetBGColor = newColor;
|
||||||
updateStyle();
|
updateStyle();
|
||||||
}
|
}
|
||||||
|
|
||||||
void StyleEditDialog::colorChangedHighlightBG(QColor& newColor)
|
void StyleEditDialog::colorChangedHighlightBG(const QColor& newColor)
|
||||||
{
|
{
|
||||||
mStyleOutgoing.highlightBGColor = newColor;
|
mStyleOutgoing.highlightBGColor = newColor;
|
||||||
updateStyle();
|
updateStyle();
|
||||||
}
|
}
|
||||||
|
|
||||||
void StyleEditDialog::colorChangedLineNumFG(QColor& newColor)
|
void StyleEditDialog::colorChangedLineNumFG(const QColor& newColor)
|
||||||
{
|
{
|
||||||
mStyleOutgoing.lineNumFGColor = newColor;
|
mStyleOutgoing.lineNumFGColor = newColor;
|
||||||
updateStyle();
|
updateStyle();
|
||||||
}
|
}
|
||||||
|
|
||||||
void StyleEditDialog::colorChangedLineNumBG(QColor& newColor)
|
void StyleEditDialog::colorChangedLineNumBG(const QColor& newColor)
|
||||||
{
|
{
|
||||||
mStyleOutgoing.lineNumBGColor = newColor;
|
mStyleOutgoing.lineNumBGColor = newColor;
|
||||||
updateStyle();
|
updateStyle();
|
||||||
}
|
}
|
||||||
|
|
||||||
void StyleEditDialog::colorChangedKeywordFG(QColor& newColor)
|
void StyleEditDialog::colorChangedKeywordFG(const QColor& newColor)
|
||||||
{
|
{
|
||||||
mStyleOutgoing.keywordColor = newColor;
|
mStyleOutgoing.keywordColor = newColor;
|
||||||
updateStyle();
|
updateStyle();
|
||||||
}
|
}
|
||||||
|
|
||||||
void StyleEditDialog::weightChangedKeyword(QFont::Weight& newWeight)
|
void StyleEditDialog::weightChangedKeyword(const QFont::Weight& newWeight)
|
||||||
{
|
{
|
||||||
mStyleOutgoing.keywordWeight = newWeight;
|
mStyleOutgoing.keywordWeight = newWeight;
|
||||||
updateStyle();
|
updateStyle();
|
||||||
}
|
}
|
||||||
|
|
||||||
void StyleEditDialog::colorChangedClassFG(QColor& newColor)
|
void StyleEditDialog::colorChangedClassFG(const QColor& newColor)
|
||||||
{
|
{
|
||||||
mStyleOutgoing.classColor = newColor;
|
mStyleOutgoing.classColor = newColor;
|
||||||
updateStyle();
|
updateStyle();
|
||||||
}
|
}
|
||||||
|
|
||||||
void StyleEditDialog::weightChangedClass(QFont::Weight& newWeight)
|
void StyleEditDialog::weightChangedClass(const QFont::Weight& newWeight)
|
||||||
{
|
{
|
||||||
mStyleOutgoing.classWeight = newWeight;
|
mStyleOutgoing.classWeight = newWeight;
|
||||||
updateStyle();
|
updateStyle();
|
||||||
}
|
}
|
||||||
|
|
||||||
void StyleEditDialog::colorChangedQuoteFG(QColor& newColor)
|
void StyleEditDialog::colorChangedQuoteFG(const QColor& newColor)
|
||||||
{
|
{
|
||||||
mStyleOutgoing.quoteColor = newColor;
|
mStyleOutgoing.quoteColor = newColor;
|
||||||
updateStyle();
|
updateStyle();
|
||||||
}
|
}
|
||||||
|
|
||||||
void StyleEditDialog::weightChangedQuote(QFont::Weight& newWeight)
|
void StyleEditDialog::weightChangedQuote(const QFont::Weight& newWeight)
|
||||||
{
|
{
|
||||||
mStyleOutgoing.quoteWeight = newWeight;
|
mStyleOutgoing.quoteWeight = newWeight;
|
||||||
updateStyle();
|
updateStyle();
|
||||||
}
|
}
|
||||||
|
|
||||||
void StyleEditDialog::colorChangedCommentFG(QColor& newColor)
|
void StyleEditDialog::colorChangedCommentFG(const QColor& newColor)
|
||||||
{
|
{
|
||||||
mStyleOutgoing.commentColor = newColor;
|
mStyleOutgoing.commentColor = newColor;
|
||||||
updateStyle();
|
updateStyle();
|
||||||
}
|
}
|
||||||
|
|
||||||
void StyleEditDialog::weightChangedComment(QFont::Weight& newWeight)
|
void StyleEditDialog::weightChangedComment(const QFont::Weight& newWeight)
|
||||||
{
|
{
|
||||||
mStyleOutgoing.commentWeight = newWeight;
|
mStyleOutgoing.commentWeight = newWeight;
|
||||||
updateStyle();
|
updateStyle();
|
||||||
}
|
}
|
||||||
|
|
||||||
void StyleEditDialog::colorChangedSymbolFG(QColor& newColor)
|
void StyleEditDialog::colorChangedSymbolFG(const QColor& newColor)
|
||||||
{
|
{
|
||||||
mStyleOutgoing.symbolFGColor = newColor;
|
mStyleOutgoing.symbolFGColor = newColor;
|
||||||
updateStyle();
|
updateStyle();
|
||||||
}
|
}
|
||||||
|
|
||||||
void StyleEditDialog::colorChangedSymbolBG(QColor& newColor)
|
void StyleEditDialog::colorChangedSymbolBG(const QColor& newColor)
|
||||||
{
|
{
|
||||||
mStyleOutgoing.symbolBGColor = newColor;
|
mStyleOutgoing.symbolBGColor = newColor;
|
||||||
updateStyle();
|
updateStyle();
|
||||||
}
|
}
|
||||||
|
|
||||||
void StyleEditDialog::weightChangedSymbol(QFont::Weight& newWeight)
|
void StyleEditDialog::weightChangedSymbol(const QFont::Weight& newWeight)
|
||||||
{
|
{
|
||||||
mStyleOutgoing.symbolWeight = newWeight;
|
mStyleOutgoing.symbolWeight = newWeight;
|
||||||
updateStyle();
|
updateStyle();
|
||||||
|
|
|
@ -42,22 +42,22 @@ public slots:
|
||||||
void resetStyle();
|
void resetStyle();
|
||||||
void setStyleDefaultLight();
|
void setStyleDefaultLight();
|
||||||
void setStyleDefaultDark();
|
void setStyleDefaultDark();
|
||||||
void colorChangedWidgetFG(QColor& newColor);
|
void colorChangedWidgetFG(const QColor& newColor);
|
||||||
void colorChangedWidgetBG(QColor& newColor);
|
void colorChangedWidgetBG(const QColor& newColor);
|
||||||
void colorChangedHighlightBG(QColor& newColor);
|
void colorChangedHighlightBG(const QColor& newColor);
|
||||||
void colorChangedLineNumFG(QColor& newColor);
|
void colorChangedLineNumFG(const QColor& newColor);
|
||||||
void colorChangedLineNumBG(QColor& newColor);
|
void colorChangedLineNumBG(const QColor& newColor);
|
||||||
void colorChangedKeywordFG(QColor& newColor);
|
void colorChangedKeywordFG(const QColor& newColor);
|
||||||
void weightChangedKeyword(QFont::Weight& newWeight);
|
void weightChangedKeyword(const QFont::Weight& newWeight);
|
||||||
void colorChangedClassFG(QColor& newColor);
|
void colorChangedClassFG(const QColor& newColor);
|
||||||
void weightChangedClass(QFont::Weight& newWeight);
|
void weightChangedClass(const QFont::Weight& newWeight);
|
||||||
void colorChangedQuoteFG(QColor& newColor);
|
void colorChangedQuoteFG(const QColor& newColor);
|
||||||
void weightChangedQuote(QFont::Weight& newWeight);
|
void weightChangedQuote(const QFont::Weight& newWeight);
|
||||||
void colorChangedCommentFG(QColor& newColor);
|
void colorChangedCommentFG(const QColor& newColor);
|
||||||
void weightChangedComment(QFont::Weight& newWeight);
|
void weightChangedComment(const QFont::Weight& newWeight);
|
||||||
void colorChangedSymbolFG(QColor& newColor);
|
void colorChangedSymbolFG(const QColor& newColor);
|
||||||
void colorChangedSymbolBG(QColor& newColor);
|
void colorChangedSymbolBG(const QColor& newColor);
|
||||||
void weightChangedSymbol(QFont::Weight& newWeight);
|
void weightChangedSymbol(const QFont::Weight& newWeight);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
CodeEditorStyle mStyleIncoming;
|
CodeEditorStyle mStyleIncoming;
|
||||||
|
|
Loading…
Reference in New Issue