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;
public:
QSK_SUBCONTROLS( Panel, ButtonPanel, ButtonText )
QskInputPredictionBar( QQuickItem* parent = nullptr );
virtual ~QskInputPredictionBar();
2018-04-06 17:30:24 +02:00
virtual QskAspect::Subcontrol effectiveSubcontrol(
QskAspect::Subcontrol subControl ) const override;
QStringList candidates() const;
2018-04-06 17:30:24 +02:00
Q_SIGNALS:
void predictiveTextSelected( int );
2018-04-06 17:30:24 +02:00
public Q_SLOTS:
void setPrediction( const QStringList& );
2018-04-06 17:30:24 +02:00
private:
void buttonClicked();
void setScrollOffset( int );
2018-04-06 17:30:24 +02:00
class PrivateData;
std::unique_ptr< PrivateData > m_data;
};
#endif