swift
dbliverycolorsearchdialog.cpp
1 // SPDX-FileCopyrightText: Copyright (C) 2015 swift Project Community / Contributors
2 // SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
3 
5 
6 #include "ui_dbliverycolorsearchdialog.h"
7 
8 #include "core/webdataservices.h"
9 #include "gui/guiapplication.h"
11 
12 using namespace swift::misc;
13 using namespace swift::misc::aviation;
14 
15 namespace swift::gui::components
16 {
17  CDbLiveryColorSearchDialog::CDbLiveryColorSearchDialog(QWidget *parent)
18  : QDialog(parent), ui(new Ui::CDbLiveryColorSearchDialog)
19  {
20  ui->setupUi(this);
21  connect(this, &CDbLiveryColorSearchDialog::accepted, this, &CDbLiveryColorSearchDialog::onAccepted);
22  }
23 
25 
26  const CLivery &CDbLiveryColorSearchDialog::getLivery() const { return m_foundLivery; }
27 
28  void CDbLiveryColorSearchDialog::onAccepted() { m_foundLivery = ui->comp_LiverySearch->getLivery(); }
29 } // namespace swift::gui::components
const swift::misc::aviation::CLivery & getLivery() const
Found livery if any, otherwise default.
Value object encapsulating information about an airpot.
Definition: livery.h:29
High level reusable GUI components.
Definition: aboutdialog.cpp:13
Free functions in swift::misc.