Skip to content
Snippets Groups Projects
Commit 3267a917 authored by con's avatar con
Browse files

Update Qt versions when refresh button is pressed.

At the moment you need to close and reopen the preferences dialog though.
parent a81b79fe
No related branches found
No related tags found
No related merge requests found
* 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
......@@ -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
}
......@@ -115,6 +115,7 @@ bool S60Devices::detectQtForDevices()
}
qtDll.close();
}
emit qtVersionsChanged();
return true;
}
......
......@@ -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;
......
......@@ -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()
......
......@@ -46,6 +46,8 @@ class S60Manager : public QObject
public:
S60Manager(QObject *parent = 0);
~S60Manager();
private slots:
void updateQtVersions();
private:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment