diff options
author | Gerald Combs <gerald@wireshark.org> | 2013-07-17 21:55:38 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2013-07-17 21:55:38 +0000 |
commit | 2d006a2d57316a19edc58322757537443e98c852 (patch) | |
tree | d4dfaf10cba888a67c3fec676c8382ce509848ea /ui/qt/profile_dialog.cpp | |
parent | a18172147f2c64d3bd143de0309278b7491d21f4 (diff) | |
download | wireshark-2d006a2d57316a19edc58322757537443e98c852.tar.gz |
Use the valid/invalid/deprecated backround color preferences.
svn path=/trunk/; revision=50709
Diffstat (limited to 'ui/qt/profile_dialog.cpp')
-rw-r--r-- | ui/qt/profile_dialog.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/ui/qt/profile_dialog.cpp b/ui/qt/profile_dialog.cpp index 095f0750f4..879afb1894 100644 --- a/ui/qt/profile_dialog.cpp +++ b/ui/qt/profile_dialog.cpp @@ -32,7 +32,7 @@ #include "profile_dialog.h" #include "ui_profile_dialog.h" #include "wireshark_application.h" -#include "tango_colors.h" +#include "color_utils.h" #include <QFont> #include <QUrl> @@ -170,12 +170,10 @@ void ProfileDialog::updateWidgets() if (profile->is_global) continue; if (current_profile && !current_profile->is_global && profile != current_profile && strcmp(profile->name, current_profile->name) == 0) { item->setToolTip(0, tr("A profile already exists with that name.")); - item->setBackground(0, QColor(ws_syntax_invalid_background)); - item->setForeground(0, QColor(ws_syntax_invalid_foreground)); + item->setBackground(0, ColorUtils::fromColorT(&prefs.gui_text_invalid)); enable_ok = false; } else { item->setBackground(0, QBrush()); - item->setForeground(0, QBrush()); } } } |