forked from qt-creator/qt-creator
Android: Remove "Edit rules.xml" button
It serves no pratical purpose. Change-Id: I65494ca6be14c96baa6bad521f11e130edfc614a Reviewed-by: BogDan Vatra <bogdan@kde.org>
This commit is contained in:
@@ -263,14 +263,6 @@ int AndroidDeployStep::deviceAPILevel()
|
|||||||
return m_deviceAPILevel;
|
return m_deviceAPILevel;
|
||||||
}
|
}
|
||||||
|
|
||||||
Utils::FileName AndroidDeployStep::localLibsRulesFilePath()
|
|
||||||
{
|
|
||||||
Utils::FileName fileName = AndroidManager::localLibsRulesFilePath(target());
|
|
||||||
fileName.append(QLatin1String("/rules.xml"));
|
|
||||||
|
|
||||||
return fileName;
|
|
||||||
}
|
|
||||||
|
|
||||||
unsigned int AndroidDeployStep::remoteModificationTime(const QString &fullDestination, QHash<QString, unsigned int> *cache)
|
unsigned int AndroidDeployStep::remoteModificationTime(const QString &fullDestination, QHash<QString, unsigned int> *cache)
|
||||||
{
|
{
|
||||||
QString destination = QFileInfo(fullDestination).absolutePath();
|
QString destination = QFileInfo(fullDestination).absolutePath();
|
||||||
|
|||||||
@@ -87,7 +87,6 @@ public:
|
|||||||
|
|
||||||
QString deviceSerialNumber();
|
QString deviceSerialNumber();
|
||||||
int deviceAPILevel();
|
int deviceAPILevel();
|
||||||
Utils::FileName localLibsRulesFilePath();
|
|
||||||
|
|
||||||
AndroidDeployAction deployAction();
|
AndroidDeployAction deployAction();
|
||||||
bool useLocalQtLibs();
|
bool useLocalQtLibs();
|
||||||
|
|||||||
@@ -62,7 +62,6 @@ AndroidDeployStepWidget::AndroidDeployStepWidget(AndroidDeployStep *step) :
|
|||||||
connect(ui->deployQtLibs, SIGNAL(clicked()), SLOT(setDeployLocalQtLibs()));
|
connect(ui->deployQtLibs, SIGNAL(clicked()), SLOT(setDeployLocalQtLibs()));
|
||||||
connect(ui->chooseButton, SIGNAL(clicked()), SLOT(setQASIPackagePath()));
|
connect(ui->chooseButton, SIGNAL(clicked()), SLOT(setQASIPackagePath()));
|
||||||
connect(ui->useLocalQtLibs, SIGNAL(stateChanged(int)), SLOT(useLocalQtLibsStateChanged(int)));
|
connect(ui->useLocalQtLibs, SIGNAL(stateChanged(int)), SLOT(useLocalQtLibsStateChanged(int)));
|
||||||
connect(ui->editRulesFilePushButton, SIGNAL(clicked()), SLOT(editRulesFile()));
|
|
||||||
connect(ui->cleanLibsPushButton, SIGNAL(clicked()), SLOT(cleanLibsOnDevice()));
|
connect(ui->cleanLibsPushButton, SIGNAL(clicked()), SLOT(cleanLibsOnDevice()));
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -106,11 +105,6 @@ void AndroidDeployStepWidget::useLocalQtLibsStateChanged(int state)
|
|||||||
m_step->setUseLocalQtLibs(state == Qt::Checked);
|
m_step->setUseLocalQtLibs(state == Qt::Checked);
|
||||||
}
|
}
|
||||||
|
|
||||||
void AndroidDeployStepWidget::editRulesFile()
|
|
||||||
{
|
|
||||||
Core::ICore::instance()->openFiles(QStringList() << m_step->localLibsRulesFilePath().toString(), Core::ICore::SwitchMode);
|
|
||||||
}
|
|
||||||
|
|
||||||
void AndroidDeployStepWidget::cleanLibsOnDevice()
|
void AndroidDeployStepWidget::cleanLibsOnDevice()
|
||||||
{
|
{
|
||||||
m_step->cleanLibsOnDevice();
|
m_step->cleanLibsOnDevice();
|
||||||
|
|||||||
@@ -53,7 +53,6 @@ private slots:
|
|||||||
void setDeployLocalQtLibs();
|
void setDeployLocalQtLibs();
|
||||||
void setQASIPackagePath();
|
void setQASIPackagePath();
|
||||||
void useLocalQtLibsStateChanged(int);
|
void useLocalQtLibsStateChanged(int);
|
||||||
void editRulesFile();
|
|
||||||
void cleanLibsOnDevice();
|
void cleanLibsOnDevice();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|||||||
@@ -63,13 +63,6 @@ You must have Qt libraries compiled for that platform</string>
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
|
||||||
<widget class="QPushButton" name="editRulesFilePushButton">
|
|
||||||
<property name="text">
|
|
||||||
<string>Edit Rules File</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
<item row="2" column="0">
|
<item row="2" column="0">
|
||||||
|
|||||||
Reference in New Issue
Block a user