attributewidget.h
author anng888
Thu, 06 Dec 2007 18:30:29 +0000
changeset 632 f4282e4db9f7
parent 627 513107d1ed59
permissions -rw-r--r--
- Fixed Win32 start up crash as a result of "showing" the main window to
early when its previous state was maximized.
     1 #ifndef ATTRIBUTEWIDGET_H
     2 #define ATTRIBUTEWIDGET_H
     3 
     4 #include "ui_attributewidget.h"
     5 
     6 #include "attribute.h"
     7 
     8 #include <QWidget>
     9 
    10 class AttributeWidget: public QWidget
    11 {
    12 	Q_OBJECT
    13 public:
    14 	AttributeWidget (QWidget *parent=0);
    15 	void setTable (AttributeTable *at=0);
    16 	void setKey (const QString &k);
    17 	void setValues (const QStringList &vl);
    18 
    19 public slots:
    20 	virtual void keyTextChanged(const QString &t);
    21 	virtual void valueTextChanged(const QString &t);
    22 
    23 private:
    24 	Ui::AttributeWidget ui;
    25 	AttributeTable *table;
    26 	QString key;
    27 };
    28 #endif