summary refs log tree commit diff
path: root/src/ui/TextField.cpp
diff options
context:
space:
mode:
authorDeepBlueV7.X <nicolas.werner@hotmail.de>2020-02-22 14:43:17 +0100
committerGitHub <noreply@github.com>2020-02-22 14:43:17 +0100
commitfee00746c8ec0e172abe355a744b7a3575904e13 (patch)
treed5b2c81496df8b1a4beb1dc3d37037980af8dba4 /src/ui/TextField.cpp
parentMerge pull request #127 from adasauce/cleanup-dark-qss (diff)
parentremove setStyleSheet calls directly from widget code (diff)
downloadnheko-fee00746c8ec0e172abe355a744b7a3575904e13.tar.xz
Merge pull request #128 from adasauce/no-setstylesheet
remove setStyleSheet calls directly from widget code
Diffstat (limited to 'src/ui/TextField.cpp')
-rw-r--r--src/ui/TextField.cpp17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/ui/TextField.cpp b/src/ui/TextField.cpp

index 6c1552a8..4bb7596a 100644 --- a/src/ui/TextField.cpp +++ b/src/ui/TextField.cpp
@@ -103,23 +103,6 @@ TextField::label() const } void -TextField::setTextColor(const QColor &color) -{ - text_color_ = color; - setStyleSheet(QString("QLineEdit { color: %1; }").arg(color.name())); -} - -QColor -TextField::textColor() const -{ - if (!text_color_.isValid()) { - return QPalette().color(QPalette::Text); - } - - return text_color_; -} - -void TextField::setLabelColor(const QColor &color) { label_color_ = color;