Commit 796ca5d5 authored by Christian Kandeler's avatar Christian Kandeler
Browse files

Maemo: Add another link pointing to the device configurations page.

The widget where the developer actually chooses the configuration
should definitely have that link as well.
parent d2cfe6cb
......@@ -5,11 +5,14 @@
#include "maemodeployablelistmodel.h"
#include "maemodeployables.h"
#include "maemodeviceconfigurations.h"
#include "maemosettingspages.h"
#include "maemoglobal.h"
#include "maemomanager.h"
#include "maemopertargetdeviceconfigurationlistmodel.h"
#include "maemorunconfiguration.h"
#include "qt4maemotarget.h"
#include <coreplugin/icore.h>
#include <projectexplorer/buildconfiguration.h>
#include <projectexplorer/target.h>
#include <utils/qtcassert.h>
......@@ -60,6 +63,8 @@ void MaemoDeployStepWidget::init()
ui->deployToSysrootCheckBox->setChecked(m_step->isDeployToSysrootEnabled());
connect(ui->deployToSysrootCheckBox, SIGNAL(toggled(bool)), this,
SLOT(setDeployToSysroot(bool)));
connect(ui->manageDevConfsLabel, SIGNAL(linkActivated(QString)),
SLOT(showDeviceConfigurations()));
}
void MaemoDeployStepWidget::handleDeviceUpdate()
......@@ -190,5 +195,12 @@ void MaemoDeployStepWidget::addIcon()
ui->tableView->resizeRowsToContents();
}
void MaemoDeployStepWidget::showDeviceConfigurations()
{
MaemoDeviceConfigurationsSettingsPage *page
= MaemoManager::instance().deviceConfigurationsSettingsPage();
Core::ICore::instance()->showOptionsDialog(page->category(), page->id());
}
} // namespace Internal
} // namespace Qt4ProjectManager
......@@ -30,6 +30,7 @@ private:
Q_SLOT void handleModelListReset();
Q_SLOT void addDesktopFile();
Q_SLOT void addIcon();
Q_SLOT void showDeviceConfigurations();
virtual void init();
virtual QString summaryText() const;
......
......@@ -30,6 +30,13 @@
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="manageDevConfsLabel">
<property name="text">
<string>&lt;a href=irrelevant&gt;Manage device configurations&lt;/a&gt;</string>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer">
<property name="orientation">
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment