qskinny/src/inputpanel/QskInputPredictionBar.h
2021-08-05 15:30:27 +02:00

43 lines
1.0 KiB
C++

/******************************************************************************
* 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
#include "QskBox.h"
class QSK_EXPORT QskInputPredictionBar : public QskBox
{
Q_OBJECT
using Inherited = QskBox;
public:
QSK_SUBCONTROLS( Panel, ButtonPanel, ButtonText )
QskInputPredictionBar( QQuickItem* parent = nullptr );
~QskInputPredictionBar() override;
QStringList candidates() const;
Q_SIGNALS:
void predictiveTextSelected( int );
public Q_SLOTS:
void setPrediction( const QStringList& );
protected:
QskAspect::Subcontrol substitutedSubcontrol(
QskAspect::Subcontrol ) const override;
void buttonClicked();
void setScrollOffset( int );
class PrivateData;
std::unique_ptr< PrivateData > m_data;
};
#endif