Untitled
By: a guest | Mar 16th, 2010 | Syntax:
C++ | Size: 0.94 KB | Hits: 53 | Expires: Never
locations = locationLibrary->getLocations();
fromComboBox->clear();
toComboBox->clear();
fromComboBox->insertItem(QComboBox::InsertAtBottom, "");
toComboBox->insertItem(QComboBox::InsertAtBottom, "");
fromComboBox->insertItem(QComboBox::InsertAtBottom, tr("New..."));
toComboBox->insertItem(QComboBox::InsertAtBottom, tr("New..."));
if (temporaryFromLocationSet) {
fromComboBox->insertItem(QComboBox::InsertAtBottom, temporaryFromLocation);
}
if (temporaryToLocationSet) {
toComboBox->insertItem(QComboBox::InsertAtBottom, temporaryToLocation);
}
fromComboBox->insertItem(QComboBox::InsertAtBottom, tr("GPS"));
for (QVector<reittiopas::Loc>::const_iterator iter = locations.begin(); iter != locations.end(); iter++) {
fromComboBox->insertItem(QComboBox::InsertAtBottom, iter->name1);
toComboBox->insertItem(QComboBox::InsertAtBottom, iter->name1);
}