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