KNewStuff

questionlistener.cpp
1 /*
2  This file is part of KNewStuffCore.
3  SPDX-FileCopyrightText: 2016 Dan Leinir Turthra Jensen <admin@leinir.dk>
4 
5  SPDX-License-Identifier: LGPL-2.1-or-later
6 */
7 
8 #include "questionlistener.h"
9 #include "question.h"
10 #include "questionmanager.h"
11 
12 using namespace KNSCore;
13 
14 QuestionListener::QuestionListener(QObject *parent)
15  : QObject(parent)
16 {
17  connect(QuestionManager::instance(), &QuestionManager::askQuestion, this, &QuestionListener::askQuestion);
18 }
19 
20 QuestionListener::~QuestionListener() = default;
21 
22 #include "moc_questionlistener.cpp"
QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Thu Feb 15 2024 03:56:37 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.