Krita Source Code Documentation
Loading...
Searching...
No Matches
KisPopupSelfActivatingLineEdit.cpp
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2021 Alvin Wong <alvin@alvinhc.com>
3 *
4 * SPDX-License-Identifier: GPL-3.0-or-later
5 */
6
8
9
11 : QLineEdit(parent)
12{
13}
14
18
19
21{
22 QWidget *w = window();
23 if (w->windowType() == Qt::Popup) {
24 w->activateWindow();
25 }
26 QLineEdit::focusInEvent(e);
27}
KisPopupSelfActivatingLineEdit(QWidget *parent=nullptr)