forked from qt-creator/qt-creator
QmlDesigner: Remove unused PuppetDialog class
Change-Id: I0939d28137fe5119df1c8c7c1203aef6c093aac5 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
@@ -82,7 +82,6 @@ extend_qtc_library(QmlDesignerCore
|
||||
|
||||
set(UI_FILES
|
||||
${CMAKE_CURRENT_LIST_DIR}/designercore/instances/puppetbuildprogressdialog.ui
|
||||
${CMAKE_CURRENT_LIST_DIR}/designercore/instances/puppetdialog.ui
|
||||
)
|
||||
qt_wrap_ui(UI_SOURCES ${UI_FILES})
|
||||
|
||||
@@ -283,8 +282,6 @@ extend_qtc_library(QmlDesignerCore
|
||||
puppetstartdata.h
|
||||
puppetstarter.cpp
|
||||
puppetstarter.h
|
||||
puppetdialog.cpp
|
||||
puppetdialog.h
|
||||
qprocessuniqueptr.h
|
||||
)
|
||||
|
||||
|
||||
@@ -1,42 +0,0 @@
|
||||
// Copyright (C) 2016 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
||||
|
||||
#include "puppetdialog.h"
|
||||
#include "ui_puppetdialog.h"
|
||||
|
||||
namespace QmlDesigner {
|
||||
|
||||
PuppetDialog::PuppetDialog(QWidget *parent) :
|
||||
QDialog(parent),
|
||||
ui(new Ui::PuppetDialog)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
}
|
||||
|
||||
PuppetDialog::~PuppetDialog()
|
||||
{
|
||||
delete ui;
|
||||
}
|
||||
|
||||
void PuppetDialog::setDescription(const QString &description)
|
||||
{
|
||||
ui->descriptionLabel->setText(description);
|
||||
}
|
||||
|
||||
void PuppetDialog::setCopyAndPasteCode(const QString &text)
|
||||
{
|
||||
ui->copyAndPasteTextEdit->setText(text);
|
||||
}
|
||||
|
||||
void PuppetDialog::warning(QWidget *parent, const QString &title, const QString &description, const QString ©AndPasteCode)
|
||||
{
|
||||
PuppetDialog dialog(parent);
|
||||
|
||||
dialog.setWindowTitle(title);
|
||||
dialog.setDescription(description);
|
||||
dialog.setCopyAndPasteCode(copyAndPasteCode);
|
||||
|
||||
dialog.exec();
|
||||
}
|
||||
|
||||
} //QmlDesigner
|
||||
@@ -1,35 +0,0 @@
|
||||
// Copyright (C) 2016 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <QDialog>
|
||||
|
||||
namespace QmlDesigner {
|
||||
|
||||
namespace Ui {
|
||||
class PuppetDialog;
|
||||
}
|
||||
|
||||
|
||||
class PuppetDialog : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit PuppetDialog(QWidget *parent = nullptr);
|
||||
~PuppetDialog() override;
|
||||
|
||||
void setDescription(const QString &description);
|
||||
void setCopyAndPasteCode(const QString &text);
|
||||
|
||||
static void warning(QWidget *parent,
|
||||
const QString &title,
|
||||
const QString &description,
|
||||
const QString ©AndPasteCode);
|
||||
|
||||
private:
|
||||
Ui::PuppetDialog *ui;
|
||||
};
|
||||
|
||||
} //QmlDesigner
|
||||
@@ -1,96 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ui version="4.0">
|
||||
<class>QmlDesigner::PuppetDialog</class>
|
||||
<widget class="QDialog" name="QmlDesigner::PuppetDialog">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>1148</width>
|
||||
<height>344</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Dialog</string>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout">
|
||||
<property name="spacing">
|
||||
<number>12</number>
|
||||
</property>
|
||||
<item>
|
||||
<widget class="QLabel" name="descriptionLabel">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>1</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
<property name="wordWrap">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QTextEdit" name="copyAndPasteTextEdit">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>1</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="readOnly">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QDialogButtonBox" name="buttonBox">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="standardButtons">
|
||||
<set>QDialogButtonBox::Close</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<resources/>
|
||||
<connections>
|
||||
<connection>
|
||||
<sender>buttonBox</sender>
|
||||
<signal>accepted()</signal>
|
||||
<receiver>QmlDesigner::PuppetDialog</receiver>
|
||||
<slot>accept()</slot>
|
||||
<hints>
|
||||
<hint type="sourcelabel">
|
||||
<x>248</x>
|
||||
<y>254</y>
|
||||
</hint>
|
||||
<hint type="destinationlabel">
|
||||
<x>157</x>
|
||||
<y>274</y>
|
||||
</hint>
|
||||
</hints>
|
||||
</connection>
|
||||
<connection>
|
||||
<sender>buttonBox</sender>
|
||||
<signal>rejected()</signal>
|
||||
<receiver>QmlDesigner::PuppetDialog</receiver>
|
||||
<slot>reject()</slot>
|
||||
<hints>
|
||||
<hint type="sourcelabel">
|
||||
<x>316</x>
|
||||
<y>260</y>
|
||||
</hint>
|
||||
<hint type="destinationlabel">
|
||||
<x>286</x>
|
||||
<y>274</y>
|
||||
</hint>
|
||||
</hints>
|
||||
</connection>
|
||||
</connections>
|
||||
</ui>
|
||||
Reference in New Issue
Block a user