X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fuisupport%2Fcolorbutton.cpp;h=22e03836e2f3bf7f10e5a9c68099fffdf3ff3b20;hp=5c8572ae55c197d0443816e64416590ddb691d4f;hb=1a45f16a9734820fba42fe1db3f38dd1eee49df6;hpb=5b686746c880e5cda6d5de3e08180ea4332ff222 diff --git a/src/uisupport/colorbutton.cpp b/src/uisupport/colorbutton.cpp index 5c8572ae..22e03836 100644 --- a/src/uisupport/colorbutton.cpp +++ b/src/uisupport/colorbutton.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2012 by the Quassel Project * + * Copyright (C) 2005-2018 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -20,15 +20,11 @@ #include "colorbutton.h" +#include #include #include #include -#ifdef HAVE_KDE -# include -#else -# include -#endif ColorButton::ColorButton(QWidget *parent) : QToolButton(parent) { @@ -56,13 +52,7 @@ QColor ColorButton::color() const void ColorButton::chooseColor() { -#ifdef HAVE_KDE - QColor c = color(); - KColorDialog::getColor(c, this); -#else QColor c = QColorDialog::getColor(color(), this); -#endif - if (c.isValid()) { setColor(c); }