mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
RideMap : no currentData() in QT 4
This commit is contained in:
@@ -226,7 +226,7 @@ void
|
||||
RideMapWindow::osmCustomTSURLTextChanged(QString text)
|
||||
{
|
||||
if (first) {
|
||||
if (tileCombo->currentData().toInt() == 1000 && (text.length() > 0)) {
|
||||
if (tileCombo->itemData(tileCombo->currentIndex()).toInt() == 1000 && (text.length() > 0)) {
|
||||
osmCurrentTileServerUrl = text;
|
||||
// only do this once when the text is set automatically by properties
|
||||
first = false;
|
||||
|
||||
@@ -150,7 +150,7 @@ class RideMapWindow : public GcChartWindow
|
||||
bool showMarkers() const { return ( showMarkersCk->checkState() == Qt::Checked); }
|
||||
void setShowMarkers(bool x) { if (x) showMarkersCk->setCheckState(Qt::Checked); else showMarkersCk->setCheckState(Qt::Unchecked) ;}
|
||||
|
||||
int osmTS() const { return ( tileCombo->currentData().toInt()); }
|
||||
int osmTS() const { return ( tileCombo->itemData(tileCombo->currentIndex()).toInt()); }
|
||||
void setOsmTS(int x) { tileCombo->setCurrentIndex(tileCombo->findData(x)); /*setTileServerUrlForTileType(x);*/}
|
||||
|
||||
QString osmTSUrl() const { return osmCustomTSUrl->text(); }
|
||||
|
||||
Reference in New Issue
Block a user