From 37a345c7d0ae02434a5b86488f92d7d30a4dc00c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Wed, 24 Jul 2019 08:30:36 +0200 Subject: [PATCH] Fixed constParameter warnings --- gui/codeeditstyledialog.cpp | 32 ++++++++++++++++---------------- gui/codeeditstyledialog.h | 32 ++++++++++++++++---------------- 2 files changed, 32 insertions(+), 32 deletions(-) diff --git a/gui/codeeditstyledialog.cpp b/gui/codeeditstyledialog.cpp index e3461bd55..ca970fdc7 100644 --- a/gui/codeeditstyledialog.cpp +++ b/gui/codeeditstyledialog.cpp @@ -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(); diff --git a/gui/codeeditstyledialog.h b/gui/codeeditstyledialog.h index a9c6066d3..dfe424de1 100644 --- a/gui/codeeditstyledialog.h +++ b/gui/codeeditstyledialog.h @@ -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;