implement the setter

svn path=/trunk/KDE/kdelibs/; revision=1161802
This commit is contained in:
Aaron J. Seigo 2010-08-10 21:07:28 +00:00
parent 84233ee261
commit fa1350c34c
2 changed files with 11 additions and 0 deletions

View File

@ -332,6 +332,11 @@ int ComboBox::currentIndex() const
return nativeWidget()->currentIndex();
}
void ComboBox::setCurrentIndex(int index)
{
nativeWidget()->setCurrentIndex(index);
}
} // namespace Plasma
#include <combobox.moc>

View File

@ -99,6 +99,12 @@ public:
*/
int currentIndex() const;
/**
* Sets the current index of the combobox
* @since 4.6
*/
void setCurrentIndex(int index);
public Q_SLOTS:
void clear();