AbiWidget: Add method to check whether a ABI is custom or not

Change-Id: I893f06d5863573a6b787b65d02262bbfc6eee2f7
Reviewed-by: Daniel Teske <daniel.teske@digia.com>
This commit is contained in:
Tobias Hunger
2013-11-14 11:48:55 +01:00
parent 6be520807f
commit a12a5c2710
2 changed files with 6 additions and 0 deletions

View File

@@ -192,6 +192,11 @@ QList<Abi> AbiWidget::supportedAbis() const
return result; return result;
} }
bool AbiWidget::isCustomAbi() const
{
return d->isCustom();
}
Abi AbiWidget::currentAbi() const Abi AbiWidget::currentAbi() const
{ {
return Abi(d->m_abi->itemData(d->m_abi->currentIndex()).toString()); return Abi(d->m_abi->itemData(d->m_abi->currentIndex()).toString());

View File

@@ -55,6 +55,7 @@ public:
void setAbis(const QList<Abi> &, const Abi &current); void setAbis(const QList<Abi> &, const Abi &current);
QList<Abi> supportedAbis() const; QList<Abi> supportedAbis() const;
bool isCustomAbi() const;
Abi currentAbi() const; Abi currentAbi() const;
signals: signals: