/***************************************************************************
- * Copyright (C) 2005-2015 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 *
#include "colorbutton.h"
+#include <QColorDialog>
#include <QPainter>
#include <QStyle>
#include <QStyleOptionFrame>
-#ifdef HAVE_KDE4
-# include <KColorDialog>
-#else
-# include <QColorDialog>
-#endif
ColorButton::ColorButton(QWidget *parent) : QToolButton(parent)
{
void ColorButton::chooseColor()
{
-#ifdef HAVE_KDE4
- QColor c = color();
- KColorDialog::getColor(c, this);
-#else
QColor c = QColorDialog::getColor(color(), this);
-#endif
-
if (c.isValid()) {
setColor(c);
}