blob: a4fec59198512f302edd6e896cc73d44a7f36f49 [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;
Nicolas Jager97a21b42015-12-03 16:55:45 -050029
30 setFrame(false);
31
Nicolas Jager74fe46f2016-02-29 14:55:09 -050032 addAction(QIcon(":images/icons/ic_search_black_18dp_2x.png"), QLineEdit::ActionPosition::LeadingPosition);
Nicolas Jager97a21b42015-12-03 16:55:45 -050033}
34
35RingContactLineEdit::~RingContactLineEdit()
36{
37}
Andreas Traczykdc17c812019-01-11 15:35:20 -050038
39void
40RingContactLineEdit::setPlaceholderString(const QString& str)
41{
42 setPlaceholderText(str);
43}