QSkinny 0.8.0
C++/Qt UI toolkit
Loading...
Searching...
No Matches
QskSelectionSubWindow.h
1/******************************************************************************
2 * QSkinny - Copyright (C) The authors
3 * SPDX-License-Identifier: BSD-3-Clause
4 *****************************************************************************/
5
6#ifndef QSK_SELECTION_SUB_WINDOW_H
7#define QSK_SELECTION_SUB_WINDOW_H
8
9#include "QskDialogSubWindow.h"
10
12{
13 Q_OBJECT
14
15 Q_PROPERTY( QStringList entries READ entries
16 WRITE setEntries NOTIFY entriesChanged FINAL )
17
18 Q_PROPERTY( int selectedRow READ selectedRow
19 WRITE setSelectedRow NOTIFY selectedRowChanged FINAL )
20
22
23 public:
24 QskSelectionSubWindow( QQuickItem* parent = nullptr );
25 ~QskSelectionSubWindow() override;
26
27 Q_INVOKABLE QStringList entries() const;
28 Q_INVOKABLE int selectedRow() const;
29 Q_INVOKABLE QString selectedEntry() const;
30
31 public Q_SLOTS:
32 void setEntries( const QStringList& );
33 void setSelectedRow( int row );
34
35 Q_SIGNALS:
36 void selectedRowChanged( int );
37 void selectedEntryChanged( const QString& );
38 void entriesChanged();
39};
40
41#endif