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_SUGGESTION_BAR_H
|
|
|
|
#define QSK_INPUT_SUGGESTION_BAR_H
|
|
|
|
|
|
|
|
#include "QskBox.h"
|
|
|
|
|
|
|
|
class QSK_EXPORT QskInputSuggestionBar : public QskBox
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
using Inherited = QskBox;
|
|
|
|
|
|
|
|
public:
|
|
|
|
QSK_SUBCONTROLS( Panel, ButtonPanel, ButtonText )
|
|
|
|
|
|
|
|
QskInputSuggestionBar( QQuickItem* parent = nullptr );
|
|
|
|
virtual ~QskInputSuggestionBar();
|
|
|
|
|
|
|
|
virtual QskAspect::Subcontrol effectiveSubcontrol(
|
|
|
|
QskAspect::Subcontrol subControl ) const override;
|
|
|
|
|
2018-04-10 16:51:35 +02:00
|
|
|
QVector< QString > candidates() const;
|
|
|
|
|
2018-04-06 17:30:24 +02:00
|
|
|
Q_SIGNALS:
|
2018-04-10 16:51:35 +02:00
|
|
|
void suggested( int );
|
2018-04-06 17:30:24 +02:00
|
|
|
|
|
|
|
public Q_SLOTS:
|
|
|
|
void setCandidates( const QVector< QString >& );
|
|
|
|
|
|
|
|
private:
|
|
|
|
void candidateClicked();
|
|
|
|
void setCandidateOffset( int );
|
|
|
|
|
|
|
|
class PrivateData;
|
|
|
|
std::unique_ptr< PrivateData > m_data;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|