9#include "QskListView.h"
10#include <qstringlist.h>
16 Q_PROPERTY( QStringList entries READ entries
17 WRITE setEntries NOTIFY entriesChanged )
25 void setColumnWidthHint(
int column, qreal width );
26 qreal columnWidthHint(
int column )
const;
31 void insert(
const QStringList&,
int index );
32 void insert(
const QString&,
int index );
34 void append(
const QStringList& );
35 void append(
const QString& );
37 void removeAt(
int index );
38 void removeBulk(
int from,
int to = -1 );
40 int rowCount()
const override final;
41 int columnCount()
const override final;
43 qreal columnWidth(
int col )
const override;
44 qreal rowHeight()
const override;
46 QString entryAt(
int row )
const;
47 QString selectedEntry()
const;
48 QStringList entries()
const;
50 QVariant valueAt(
int row,
int col )
const override final;
53 void setEntries(
const QStringList& );
57 void entriesChanged();
58 void selectedEntryChanged(
const QString& );
61 void propagateEntries();
64 std::unique_ptr< PrivateData > m_data;
67inline void QskSimpleListBox::append(
const QStringList& entries )
69 insert( entries, -1 );
72inline void QskSimpleListBox::append(
const QString& entry )
77inline QString QskSimpleListBox::selectedEntry()
const
79 return entryAt( selectedRow() );