Blokkal::Ui::ProviderComboBox Class Reference
KComboBox for selection of provider setups. More...
#include <providercombobox.h>
Public Slots | |
void | setCurrentProvider (const QString &id) |
Signals | |
void | providerSelected (const QString &id) |
Public Member Functions | |
void | addProviders (const ProviderList &providers) |
QString | currentProvider (void) const |
ProviderComboBox (QWidget *parent=0) | |
void | setProviders (const ProviderList &providers) |
virtual | ~ProviderComboBox (void) |
Detailed Description
KComboBox for selection of provider setups.This class is intended to simplify presentation of various provider setups.
Definition at line 46 of file providercombobox.h.
Constructor & Destructor Documentation
Blokkal::Ui::ProviderComboBox::ProviderComboBox | ( | QWidget * | parent = 0 |
) |
Creates a new ProviderComboBox.
- Parameters:
-
parent parent widget
Definition at line 90 of file providercombobox.cpp.
Blokkal::Ui::ProviderComboBox::~ProviderComboBox | ( | void | ) | [virtual] |
Destructor
Definition at line 98 of file providercombobox.cpp.
Member Function Documentation
void Blokkal::Ui::ProviderComboBox::addProviders | ( | const ProviderList & | providers | ) |
Adds the providers in providers to the current provider list.
- Parameters:
-
providers the new providers
- Note:
- The "Custom" item is always at the end of the list that is presented to the user
Definition at line 111 of file providercombobox.cpp.
QString Blokkal::Ui::ProviderComboBox::currentProvider | ( | void | ) | const |
Returns the id string of the currently selected provider.
- Returns:
- the id string of the currently selected provider
Definition at line 132 of file providercombobox.cpp.
void Blokkal::Ui::ProviderComboBox::providerSelected | ( | const QString & | id | ) | [signal] |
This signal is emitted when a new provider is selected.
- Parameters:
-
id id of the newly selected provider
void Blokkal::Ui::ProviderComboBox::setCurrentProvider | ( | const QString & | id | ) | [slot] |
Sets the currently selected provider to the one which id matches id. If no such provider exists the "Custom"-Element is selected
- Parameters:
-
id id of the provider to select
Definition at line 141 of file providercombobox.cpp.
void Blokkal::Ui::ProviderComboBox::setProviders | ( | const ProviderList & | providers | ) |
Replaces the current provider list with providers
- Parameters:
-
providers the new provider list
- Note:
- An item for "Custom" is always added to the provider list.
Definition at line 103 of file providercombobox.cpp.
The documentation for this class was generated from the following files: