attributewidget.cpp
author insilmaril
Mon, 27 Apr 2009 12:07:15 +0000
changeset 756 a8a5c7288f57
parent 627 513107d1ed59
permissions -rw-r--r--
relinking branches and removing branches works
insilmaril@623
     1
#include "attributewidget.h"
insilmaril@623
     2
insilmaril@623
     3
AttributeWidget::AttributeWidget (QWidget *parent):QWidget (parent)
insilmaril@623
     4
{
insilmaril@623
     5
	ui.setupUi (this);
insilmaril@627
     6
	//ui.keyComboBox->setEditable (true);
insilmaril@627
     7
	ui.valueComboBox->setEditable (true);
insilmaril@623
     8
}
insilmaril@627
     9
insilmaril@627
    10
void AttributeWidget::setTable(AttributeTable *at)
insilmaril@627
    11
{
insilmaril@627
    12
	table=at;
insilmaril@627
    13
}
insilmaril@627
    14
insilmaril@627
    15
void AttributeWidget::setKey (const QString &k)
insilmaril@627
    16
{
insilmaril@627
    17
	key=k;
insilmaril@627
    18
	ui.keyComboBox->insertItem (ui.keyComboBox->count(), key);
insilmaril@627
    19
}
insilmaril@627
    20
insilmaril@627
    21
void AttributeWidget::setValues(const QStringList &vl)
insilmaril@627
    22
{
insilmaril@627
    23
	ui.valueComboBox->clear();
insilmaril@627
    24
	ui.valueComboBox->insertStringList(vl);
insilmaril@627
    25
}
insilmaril@627
    26
insilmaril@627
    27
/*
insilmaril@627
    28
void AttributeWidget::setValue (const QString &v)
insilmaril@627
    29
{
insilmaril@627
    30
}
insilmaril@627
    31
*/
insilmaril@627
    32
insilmaril@627
    33
void AttributeWidget::keyTextChanged(const QString &t)
insilmaril@627
    34
{
insilmaril@627
    35
}
insilmaril@627
    36
insilmaril@627
    37
void AttributeWidget::valueTextChanged(const QString &t)
insilmaril@627
    38
{
insilmaril@627
    39
}