swift
stringlistdialog.h
Go to the documentation of this file.
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 
5 
6 #ifndef SWIFT_GUI_COMPONENTS_STRINGLISTDIALOG_H
7 #define SWIFT_GUI_COMPONENTS_STRINGLISTDIALOG_H
8 
9 #include <QDialog>
10 #include <QScopedPointer>
11 
12 namespace Ui
13 {
14  class CStringListDialog;
15 }
16 namespace swift::gui::components
17 {
21  class CStringListDialog : public QDialog
22  {
23  Q_OBJECT
24 
25  public:
27  explicit CStringListDialog(QWidget *parent = nullptr);
28 
30  virtual ~CStringListDialog() override;
31 
33  void setStrings(const QStringList &strings);
34 
36  QString getSelectedValue() const;
37 
38  private:
39  QScopedPointer<Ui::CStringListDialog> ui;
40  };
41 } // namespace swift::gui::components
42 
43 #endif // SWIFT_GUI_COMPONENTS_STRINGLISTDIALOG_H
QString getSelectedValue() const
Selected value.
void setStrings(const QStringList &strings)
Strings.
CStringListDialog(QWidget *parent=nullptr)
Ctor.
High level reusable GUI components.
Definition: aboutdialog.cpp:13