forked from qt-creator/qt-creator
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.
This commit is contained in:
@@ -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><a href=irrelevant>Manage device configurations</a></string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="horizontalSpacer">
|
||||
<property name="orientation">
|
||||
|
||||
Reference in New Issue
Block a user