Update Qt versions when refresh button is pressed.

At the moment you need to close and reopen the preferences dialog though.
This commit is contained in:
con
2009-05-28 16:48:02 +02:00
parent a81b79fe9e
commit 3267a917a3
6 changed files with 13 additions and 1 deletions

View File

@@ -0,0 +1,3 @@
* When the refresh button in the SDK option page is pressed
the qtoptionspage is not updated to reflect the new versions
though we update them in S60Manager

View File

@@ -11,5 +11,5 @@ SUPPORT_QT_S60 = $$(QTCREATOR_WITH_S60)
$$PWD/s60devicespreferencepane.h \
$$PWD/s60manager.h
FORMS += $$PWD/s60devicespreferencepane.ui
OTHER_FILES += qt-s60-todo.txt
}

View File

@@ -115,6 +115,7 @@ bool S60Devices::detectQtForDevices()
}
qtDll.close();
}
emit qtVersionsChanged();
return true;
}

View File

@@ -27,6 +27,10 @@ public:
QList<Device> devices() const;
bool detectQtForDevices();
Device deviceForRoot(const QString &epocRoot) const;
signals:
void qtVersionsChanged();
private:
QString m_errorString;
QList<Device> m_devices;

View File

@@ -50,6 +50,8 @@ S60Manager::S60Manager(QObject *parent)
ExtensionSystem::PluginManager::instance()
->addObject(m_devicesPreferencePane);
updateQtVersions();
connect(m_devices, SIGNAL(qtVersionsChanged()),
this, SLOT(updateQtVersions()));
}
S60Manager::~S60Manager()

View File

@@ -46,6 +46,8 @@ class S60Manager : public QObject
public:
S60Manager(QObject *parent = 0);
~S60Manager();
private slots:
void updateQtVersions();
private: