QSkinny 0.8.0
C++/Qt UI toolkit
Loading...
Searching...
No Matches
QskInputPredictionBar.h
1/******************************************************************************
2 * QSkinny - Copyright (C) The authors
3 * SPDX-License-Identifier: BSD-3-Clause
4 *****************************************************************************/
5
6#ifndef QSK_INPUT_PREDICTION_BAR_H
7#define QSK_INPUT_PREDICTION_BAR_H
8
9#include "QskBox.h"
10
11class QSK_EXPORT QskInputPredictionBar : public QskBox
12{
13 Q_OBJECT
14
15 using Inherited = QskBox;
16
17 public:
18 QSK_SUBCONTROLS( Panel, ButtonPanel, ButtonText )
19
20 QskInputPredictionBar( QQuickItem* parent = nullptr );
21 ~QskInputPredictionBar() override;
22
23 QStringList candidates() const;
24
25 Q_SIGNALS:
26 void predictiveTextSelected( int );
27
28 public Q_SLOTS:
29 void setPrediction( const QStringList& );
30
31 protected:
32 QskAspect::Subcontrol substitutedSubcontrol(
33 QskAspect::Subcontrol ) const override;
34
35 void buttonClicked();
36 void setScrollOffset( int );
37
38 class PrivateData;
39 std::unique_ptr< PrivateData > m_data;
40};
41
42#endif
Subcontrol
For use within the rendering or lay-outing of a specific QskSkinnable.
Definition QskAspect.h:104