X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fuisupport%2Fclearablelineedit.cpp;h=2f2f8b3431c09916753381f746264b7f8bc2b2e3;hp=11d6239aa651bb2baddd336d988674056b79ca52;hb=68878dc8366f2f4a0afe132847aad9a51a80cdbf;hpb=9fc57dc2c000e80fb8bd746a090e2e8210e1278e diff --git a/src/uisupport/clearablelineedit.cpp b/src/uisupport/clearablelineedit.cpp index 11d6239a..2f2f8b34 100644 --- a/src/uisupport/clearablelineedit.cpp +++ b/src/uisupport/clearablelineedit.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2013 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,19 +20,16 @@ #include "clearablelineedit.h" +#include #include #include -#include "iconloader.h" - ClearableLineEdit::ClearableLineEdit(QWidget *parent) : QLineEdit(parent) { clearButton = new QToolButton(this); - clearButton->setIcon(SmallIcon("edit-clear-locationbar-rtl")); -#ifndef Q_WS_QWS + clearButton->setIcon(QIcon::fromTheme("edit-clear-locationbar-rtl", QIcon::fromTheme("edit-clear"))); clearButton->setCursor(Qt::ArrowCursor); -#endif clearButton->setStyleSheet("QToolButton { border: none; padding: 0px; }"); clearButton->hide();