From 801ff295f6a42d7ed0396423fb04b58eb65b9c3c Mon Sep 17 00:00:00 2001 From: Alessandro Portale Date: Tue, 16 Aug 2022 10:49:10 +0200 Subject: [PATCH] Help: Remove filternamedialog.* Unused code. Change-Id: Icfcd613d63f549655ac62daa82e9a7e6f5c78d6c Reviewed-by: Jarek Kobus --- src/plugins/help/help.qbs | 1 - src/shared/help/CMakeLists.txt | 1 - src/shared/help/filternamedialog.cpp | 53 ------------------ src/shared/help/filternamedialog.h | 43 --------------- src/shared/help/filternamedialog.ui | 80 ---------------------------- 5 files changed, 178 deletions(-) delete mode 100644 src/shared/help/filternamedialog.cpp delete mode 100644 src/shared/help/filternamedialog.h delete mode 100644 src/shared/help/filternamedialog.ui diff --git a/src/plugins/help/help.qbs b/src/plugins/help/help.qbs index ec3fb7929e4..5c75128ffa7 100644 --- a/src/plugins/help/help.qbs +++ b/src/plugins/help/help.qbs @@ -84,7 +84,6 @@ Project { "bookmarkdialog.ui", "bookmarkmanager.cpp", "bookmarkmanager.h", "contentwindow.cpp", "contentwindow.h", - "filternamedialog.cpp", "filternamedialog.h", "filternamedialog.ui", "helpicons.h", "indexwindow.cpp", "indexwindow.h", "topicchooser.cpp", "topicchooser.h", "topicchooser.ui", diff --git a/src/shared/help/CMakeLists.txt b/src/shared/help/CMakeLists.txt index aba90cda07a..fb70a315e9b 100644 --- a/src/shared/help/CMakeLists.txt +++ b/src/shared/help/CMakeLists.txt @@ -23,7 +23,6 @@ add_qtc_library(shared_help STATIC bookmarkdialog.ui bookmarkmanager.cpp bookmarkmanager.h contentwindow.cpp contentwindow.h - filternamedialog.cpp filternamedialog.h filternamedialog.ui helpicons.h indexwindow.cpp indexwindow.h topicchooser.cpp topicchooser.h topicchooser.ui diff --git a/src/shared/help/filternamedialog.cpp b/src/shared/help/filternamedialog.cpp deleted file mode 100644 index 930d4396334..00000000000 --- a/src/shared/help/filternamedialog.cpp +++ /dev/null @@ -1,53 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of Qt Creator. -** -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3 as published by the Free Software -** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-3.0.html. -** -****************************************************************************/ - -#include "filternamedialog.h" - -#include - -FilterNameDialog::FilterNameDialog(QWidget *parent) - : QDialog(parent) -{ - m_ui.setupUi(this); - connect(m_ui.buttonBox->button(QDialogButtonBox::Ok), - &QAbstractButton::clicked, this, &QDialog::accept); - connect(m_ui.buttonBox->button(QDialogButtonBox::Cancel), - &QAbstractButton::clicked, this, &QDialog::reject); - connect(m_ui.lineEdit, &QLineEdit::textChanged, - this, &FilterNameDialog::updateOkButton); - m_ui.buttonBox->button(QDialogButtonBox::Ok)->setDisabled(true); - -} - -QString FilterNameDialog::filterName() const -{ - return m_ui.lineEdit->text(); -} - -void FilterNameDialog::updateOkButton() -{ - m_ui.buttonBox->button(QDialogButtonBox::Ok) - ->setDisabled(m_ui.lineEdit->text().isEmpty()); -} diff --git a/src/shared/help/filternamedialog.h b/src/shared/help/filternamedialog.h deleted file mode 100644 index 86e6a2ecbad..00000000000 --- a/src/shared/help/filternamedialog.h +++ /dev/null @@ -1,43 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of Qt Creator. -** -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3 as published by the Free Software -** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-3.0.html. -** -****************************************************************************/ - -#pragma once - -#include -#include "ui_filternamedialog.h" - -class FilterNameDialog : public QDialog -{ - Q_OBJECT - -public: - FilterNameDialog(QWidget *parent = 0); - QString filterName() const; - -private: - void updateOkButton(); - - Ui::FilterNameDialogClass m_ui; -}; diff --git a/src/shared/help/filternamedialog.ui b/src/shared/help/filternamedialog.ui deleted file mode 100644 index cf7deabf3e6..00000000000 --- a/src/shared/help/filternamedialog.ui +++ /dev/null @@ -1,80 +0,0 @@ - - FilterNameDialogClass - - - - 0 - 0 - 312 - 95 - - - - Add Filter Name - - - - 9 - - - 6 - - - - - Filter Name: - - - - - - - - - - Qt::Vertical - - - - 20 - 40 - - - - - - - - Qt::Horizontal - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - Qt::Horizontal - - - QDialogButtonBox::Cancel|QDialogButtonBox::NoButton|QDialogButtonBox::Ok - - - - - - - - -