blob: f5e2b8da7a97730d495c209459cb041a1b354f7b [file] [log] [blame]
Nicolas Jager97a21b42015-12-03 16:55:45 -05001/***************************************************************************
Anthony Léonard2fde81d2017-04-17 10:06:55 -04002 * Copyright (C) 2015-2017 by Savoir-faire Linux *
Nicolas Jager97a21b42015-12-03 16:55:45 -05003 * Author: Jäger Nicolas <nicolas.jager@savoirfairelinux.com> *
4 * *
5 * This program is free software; you can redistribute it and/or modify *
6 * it under the terms of the GNU General Public License as published by *
7 * the Free Software Foundation; either version 3 of the License, or *
8 * (at your option) any later version. *
9 * *
10 * This program is distributed in the hope that it will be useful, *
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13 * GNU General Public License for more details. *
14 * *
15 * You should have received a copy of the GNU General Public License *
16 * along with this program. If not, see <http://www.gnu.org/licenses/>. *
17 **************************************************************************/
18
19#include <QDebug>
20#include <QIcon>
21#include <QtWidgets/QApplication>
22
23#include "ringcontactlineedit.h"
24
25RingContactLineEdit::RingContactLineEdit(QWidget* parent) :
26 QLineEdit(parent)
27{
28 QPalette palette;
29 palette.setColor(QPalette::Base, QColor(242, 242, 242));
30 setPalette(palette);
31
32 setFrame(false);
33
Nicolas Jager74fe46f2016-02-29 14:55:09 -050034 addAction(QIcon(":images/icons/ic_search_black_18dp_2x.png"), QLineEdit::ActionPosition::LeadingPosition);
Nicolas Jager97a21b42015-12-03 16:55:45 -050035}
36
37RingContactLineEdit::~RingContactLineEdit()
38{
39}