forked from qt-creator/qt-creator
Help: Remove filternamedialog.*
Unused code. Change-Id: Icfcd613d63f549655ac62daa82e9a7e6f5c78d6c Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
@@ -84,7 +84,6 @@ Project {
|
|||||||
"bookmarkdialog.ui",
|
"bookmarkdialog.ui",
|
||||||
"bookmarkmanager.cpp", "bookmarkmanager.h",
|
"bookmarkmanager.cpp", "bookmarkmanager.h",
|
||||||
"contentwindow.cpp", "contentwindow.h",
|
"contentwindow.cpp", "contentwindow.h",
|
||||||
"filternamedialog.cpp", "filternamedialog.h", "filternamedialog.ui",
|
|
||||||
"helpicons.h",
|
"helpicons.h",
|
||||||
"indexwindow.cpp", "indexwindow.h",
|
"indexwindow.cpp", "indexwindow.h",
|
||||||
"topicchooser.cpp", "topicchooser.h", "topicchooser.ui",
|
"topicchooser.cpp", "topicchooser.h", "topicchooser.ui",
|
||||||
|
@@ -23,7 +23,6 @@ add_qtc_library(shared_help STATIC
|
|||||||
bookmarkdialog.ui
|
bookmarkdialog.ui
|
||||||
bookmarkmanager.cpp bookmarkmanager.h
|
bookmarkmanager.cpp bookmarkmanager.h
|
||||||
contentwindow.cpp contentwindow.h
|
contentwindow.cpp contentwindow.h
|
||||||
filternamedialog.cpp filternamedialog.h filternamedialog.ui
|
|
||||||
helpicons.h
|
helpicons.h
|
||||||
indexwindow.cpp indexwindow.h
|
indexwindow.cpp indexwindow.h
|
||||||
topicchooser.cpp topicchooser.h topicchooser.ui
|
topicchooser.cpp topicchooser.h topicchooser.ui
|
||||||
|
@@ -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 <QPushButton>
|
|
||||||
|
|
||||||
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());
|
|
||||||
}
|
|
@@ -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 <QDialog>
|
|
||||||
#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;
|
|
||||||
};
|
|
@@ -1,80 +0,0 @@
|
|||||||
<ui version="4.0" >
|
|
||||||
<class>FilterNameDialogClass</class>
|
|
||||||
<widget class="QDialog" name="FilterNameDialogClass" >
|
|
||||||
<property name="geometry" >
|
|
||||||
<rect>
|
|
||||||
<x>0</x>
|
|
||||||
<y>0</y>
|
|
||||||
<width>312</width>
|
|
||||||
<height>95</height>
|
|
||||||
</rect>
|
|
||||||
</property>
|
|
||||||
<property name="windowTitle" >
|
|
||||||
<string>Add Filter Name</string>
|
|
||||||
</property>
|
|
||||||
<layout class="QGridLayout" >
|
|
||||||
<property name="margin" >
|
|
||||||
<number>9</number>
|
|
||||||
</property>
|
|
||||||
<property name="spacing" >
|
|
||||||
<number>6</number>
|
|
||||||
</property>
|
|
||||||
<item row="0" column="0" >
|
|
||||||
<widget class="QLabel" name="label" >
|
|
||||||
<property name="text" >
|
|
||||||
<string>Filter Name:</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="0" column="1" colspan="2" >
|
|
||||||
<widget class="QLineEdit" name="lineEdit" />
|
|
||||||
</item>
|
|
||||||
<item row="1" column="0">
|
|
||||||
<spacer name="verticalSpacer">
|
|
||||||
<property name="orientation">
|
|
||||||
<enum>Qt::Vertical</enum>
|
|
||||||
</property>
|
|
||||||
<property name="sizeHint" stdset="0">
|
|
||||||
<size>
|
|
||||||
<width>20</width>
|
|
||||||
<height>40</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
</spacer>
|
|
||||||
</item>
|
|
||||||
<item row="2" column="0" colspan="3" >
|
|
||||||
<widget class="Line" name="line" >
|
|
||||||
<property name="orientation" >
|
|
||||||
<enum>Qt::Horizontal</enum>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="3" column="0" colspan="2" >
|
|
||||||
<spacer>
|
|
||||||
<property name="orientation" >
|
|
||||||
<enum>Qt::Horizontal</enum>
|
|
||||||
</property>
|
|
||||||
<property name="sizeHint" >
|
|
||||||
<size>
|
|
||||||
<width>40</width>
|
|
||||||
<height>20</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
</spacer>
|
|
||||||
</item>
|
|
||||||
<item row="3" column="2" >
|
|
||||||
<widget class="QDialogButtonBox" name="buttonBox" >
|
|
||||||
<property name="orientation" >
|
|
||||||
<enum>Qt::Horizontal</enum>
|
|
||||||
</property>
|
|
||||||
<property name="standardButtons" >
|
|
||||||
<set>QDialogButtonBox::Cancel|QDialogButtonBox::NoButton|QDialogButtonBox::Ok</set>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</widget>
|
|
||||||
<layoutdefault spacing="6" margin="11" />
|
|
||||||
<resources/>
|
|
||||||
<connections/>
|
|
||||||
</ui>
|
|
Reference in New Issue
Block a user