Commit 28ae70b5 authored by Ralf Habacker's avatar Ralf Habacker

Remove only locally used method UMLDatatypeWidget::currentText().

CCBUG:60452
parent d016b61a
......@@ -144,11 +144,6 @@ QString ParameterPropertiesDialog::getInitialValue()
return m_pInitialLE->text();
}
QString ParameterPropertiesDialog::getTypeName()
{
return m_datatypeWidget->currentText();
}
/**
* Return the kind of the parameter (in, out, or inout).
* @return The Uml::ParameterDirection::Enum corresponding to
......
......@@ -48,7 +48,6 @@ public:
protected:
QString getName();
QString getInitialValue();
QString getTypeName();
Uml::ParameterDirection::Enum getParmKind();
virtual bool validate();
......
......@@ -137,7 +137,7 @@ bool UMLDatatypeWidget::apply()
bool UMLDatatypeWidget::applyAttribute()
{
QString typeName = currentText();
QString typeName = m_comboBox->currentText();
UMLClassifier * pConcept = dynamic_cast<UMLClassifier *>(m_datatype->parent());
UMLTemplate *tmplParam = pConcept->findTemplate(typeName);
if (tmplParam) {
......@@ -184,7 +184,7 @@ bool UMLDatatypeWidget::applyAttribute()
bool UMLDatatypeWidget::applyEntityAttribute()
{
QString typeName = currentText();
QString typeName = m_comboBox->currentText();
UMLDoc *pDoc = UMLApp::app()->document();
UMLClassifierList dataTypes = pDoc->datatypes();
foreach (UMLClassifier* dat, dataTypes) {
......@@ -212,7 +212,7 @@ bool UMLDatatypeWidget::applyEntityAttribute()
bool UMLDatatypeWidget::applyOperation()
{
QString typeName = currentText();
QString typeName = m_comboBox->currentText();
UMLClassifier *classifier = dynamic_cast<UMLClassifier*>(m_operation->parent());
UMLTemplate *tmplParam = 0;
if (classifier) {
......@@ -228,7 +228,7 @@ bool UMLDatatypeWidget::applyOperation()
bool UMLDatatypeWidget::applyParameter()
{
// set the type name
QString typeName = currentText();
QString typeName = m_comboBox->currentText();
UMLClassifier * pConcept = dynamic_cast<UMLClassifier*>(m_attribute->parent()->parent());
if (pConcept == NULL) {
uError() << "grandparent of " << m_attribute->name() << " is not a UMLClassifier";
......@@ -264,7 +264,7 @@ bool UMLDatatypeWidget::applyParameter()
bool UMLDatatypeWidget::applyTemplate()
{
QString typeName = currentText();
QString typeName = m_comboBox->currentText();
UMLDoc *pDoc = UMLApp::app()->document();
UMLClassifierList namesList(pDoc->concepts());
foreach (UMLClassifier* obj, namesList) {
......@@ -475,12 +475,3 @@ void UMLDatatypeWidget::addToLayout(QGridLayout *layout, int row, int startColum
layout->addWidget(m_label, row, startColumn);
layout->addWidget(m_comboBox, row, startColumn + 1);
}
/**
* Return currently selected text of the widget.
* @return string
*/
QString UMLDatatypeWidget::currentText() const
{
return m_comboBox->currentText();
}
......@@ -33,7 +33,6 @@ public:
~UMLDatatypeWidget();
void addToLayout(QGridLayout *layout, int row, int startColumn = 0);
QString currentText() const;
bool apply();
void reset();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment