aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt/color_utils.cpp
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2013-10-15 15:22:03 +0000
committerGerald Combs <gerald@wireshark.org>2013-10-15 15:22:03 +0000
commit720de303c74bae305cd980cf475b15b86a9c57c6 (patch)
tree1ab38f2ed9cccef667943053cf5f0af2e9b761a6 /ui/qt/color_utils.cpp
parent156659e308cd83aa0e13ed73650eb9d155d7506a (diff)
Add some missing parenthesis. Make sure we set our font in the right place.
Make the ColorUtils::fromColorT() convenience function a little more convenient. Use it. svn path=/trunk/; revision=52620
Diffstat (limited to 'ui/qt/color_utils.cpp')
-rw-r--r--ui/qt/color_utils.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/ui/qt/color_utils.cpp b/ui/qt/color_utils.cpp
index 02f9c56f4b..298c34e1b6 100644
--- a/ui/qt/color_utils.cpp
+++ b/ui/qt/color_utils.cpp
@@ -57,6 +57,11 @@ QColor ColorUtils::fromColorT (color_t *color) {
return QColor(color->red >> 8, color->green >> 8, color->blue >> 8);
}
+QColor ColorUtils::fromColorT(color_t color)
+{
+ return fromColorT(&color);
+}
+
/*
* Editor modelines
*