Change-Id: I0e9a856ab3bea80b730ba30d343c5ab88df83db2
Reviewed-on: http://codereview.qt-project.org/4991
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Lasse Holmstedt
return QVariant();
}
+QVariant CrumblePath::dataForLastIndex() const
+{
+ if (d->m_buttons.isEmpty())
+ return QVariant();
+ return d->m_buttons.last()->data();
+}
+
void CrumblePath::pushElement(const QString &title, const QVariant &data)
{
CrumblePathButton *newButton = new CrumblePathButton(title, this);
void selectIndex(int index);
QVariant dataForIndex(int index) const;
+ QVariant dataForLastIndex() const;
public slots:
void pushElement(const QString &title, const QVariant &data = QVariant());