swift
modelbrowserdialog.cpp
1 // SPDX-FileCopyrightText: Copyright (C) 2019 swift Project Community / Contributors
2 // SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
3 
4 #include "modelbrowserdialog.h"
5 
6 #include "ui_modelbrowserdialog.h"
7 
8 #include "gui/guiapplication.h"
9 
10 namespace swift::gui::components
11 {
12  CModelBrowserDialog::CModelBrowserDialog(QWidget *parent) : QDialog(parent), ui(new Ui::CModelBrowserDialog)
13  {
14  ui->setupUi(this);
15  }
16 
18  {
19  // void;
20  }
21 
22  bool CModelBrowserDialog::event(QEvent *event)
23  {
24  if (CGuiApplication::triggerShowHelp(this, event)) { return true; }
25  return QDialog::event(event);
26  }
27 
29  {
30  ui->comp_ModelBrowser->close();
31  QDialog::done(r);
32  }
33 
34 } // namespace swift::gui::components
static bool triggerShowHelp(const QWidget *widget, QEvent *event)
Static version used with dialogs.
CModelBrowserDialog(QWidget *parent=nullptr)
Constructor.
High level reusable GUI components.
Definition: aboutdialog.cpp:13