mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-07 02:57:16 +08:00
23 lines
1.1 KiB
Diff
23 lines
1.1 KiB
Diff
|
--- src/pages/localepage.cpp.orig 2010-12-16 21:23:36.873333336 -0500
|
||
|
+++ src/pages/localepage.cpp 2010-12-16 21:24:04.696666671 -0500
|
||
|
@@ -146,7 +146,7 @@
|
||
|
bool LocalePage::eventFilter(QObject * object, QEvent * event)
|
||
|
{
|
||
|
if (object == marble && event->type() == QEvent::MouseButtonPress) {
|
||
|
- QVector<QModelIndex> indexes = marble->whichFeatureAt(marble->mapFromGlobal(QCursor::pos()));
|
||
|
+ QVector<QModelIndex> indexes = marble->model()->whichFeatureAt(marble->mapFromGlobal(QCursor::pos()));
|
||
|
if (!indexes.isEmpty()) {
|
||
|
QHash<QString, QStringList>::const_iterator it;
|
||
|
|
||
|
--- src/pages/localepage.cpp.orig 2010-12-18 08:12:39.583334081 -0500
|
||
|
+++ src/pages/localepage.cpp 2010-12-18 08:13:09.600000747 -0500
|
||
|
@@ -66,7 +66,7 @@
|
||
|
marble->setShowCompass(false);
|
||
|
marble->setShowCrosshairs(false);
|
||
|
marble->setShowGrid(false);
|
||
|
- marble->addGeoDataFile(QString(DATA_INSTALL_DIR) + "/marble/data/placemarks/cities.kml");
|
||
|
+ marble->addPlacemarkFile(QString(DATA_INSTALL_DIR) + "/marble/data/placemarks/cities.kml");
|
||
|
|
||
|
QFile fp(QString(CONFIG_INSTALL_PATH) + "/timezones");
|
||
|
|