qskinny/src/inputpanel/QskInputPredictionBar.h

43 lines
1.0 KiB
C
Raw Normal View History

2018-04-06 17:30:24 +02:00
/******************************************************************************
* QSkinny - Copyright (C) 2016 Uwe Rathmann
* This file may be used under the terms of the QSkinny License, Version 1.0
*****************************************************************************/
#ifndef QSK_INPUT_PREDICTION_BAR_H
#define QSK_INPUT_PREDICTION_BAR_H
2018-04-06 17:30:24 +02:00
#include "QskBox.h"
class QSK_EXPORT QskInputPredictionBar : public QskBox
2018-04-06 17:30:24 +02:00
{
Q_OBJECT
using Inherited = QskBox;
2018-08-03 08:15:28 +02:00
public:
2018-04-06 17:30:24 +02:00
QSK_SUBCONTROLS( Panel, ButtonPanel, ButtonText )
QskInputPredictionBar( QQuickItem* parent = nullptr );
2018-07-31 17:32:25 +02:00
~QskInputPredictionBar() override;
2018-04-06 17:30:24 +02:00
QStringList candidates() const;
2018-08-03 08:15:28 +02:00
Q_SIGNALS:
void predictiveTextSelected( int );
2018-04-06 17:30:24 +02:00
2018-08-03 08:15:28 +02:00
public Q_SLOTS:
void setPrediction( const QStringList& );
2018-04-06 17:30:24 +02:00
2021-08-05 15:30:27 +02:00
protected:
QskAspect::Subcontrol substitutedSubcontrol(
QskAspect::Subcontrol ) const override;
void buttonClicked();
void setScrollOffset( int );
2018-04-06 17:30:24 +02:00
class PrivateData;
std::unique_ptr< PrivateData > m_data;
};
#endif