summaryrefslogtreecommitdiffstats
path: root/utils/regtools/qeditor/utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'utils/regtools/qeditor/utils.h')
-rw-r--r--utils/regtools/qeditor/utils.h28
1 files changed, 13 insertions, 15 deletions
diff --git a/utils/regtools/qeditor/utils.h b/utils/regtools/qeditor/utils.h
index 6612ce20a4..970010233a 100644
--- a/utils/regtools/qeditor/utils.h
+++ b/utils/regtools/qeditor/utils.h
@@ -149,20 +149,9 @@ Q_DECLARE_METATYPE(SocFieldCachedValue)
class SocFieldCachedItemDelegate : public QStyledItemDelegate
{
public:
- enum DisplayMode
- {
- DisplayValueAndName, /* "value (name)" or "value" if no name */
- DisplayName, /* "name" or "value" if no name */
- DisplayValue, /* "value" */
- };
-
SocFieldCachedItemDelegate(QObject *parent = 0):QStyledItemDelegate(parent) {}
- virtual QString displayText(const QVariant& value, const QLocale& locale) const;
- void SetMode(DisplayMode mode) { m_mode = mode; }
- DisplayMode GetMode() const { return m_mode; }
-protected:
- DisplayMode m_mode;
+ virtual QString displayText(const QVariant& value, const QLocale& locale) const;
};
class SocFieldCachedEditor : public SocFieldEditor
@@ -214,12 +203,21 @@ private:
mutable QSize m_size;
};
-class GrowingTableView : public QTableView
+class GrowingTextEdit : public QTextEdit
+{
+ Q_OBJECT
+public:
+ GrowingTextEdit(QWidget *parent = 0);
+
+protected slots:
+ void TextChanged();
+};
+
+class GrowingTableWidget : public QTableWidget
{
Q_OBJECT
public:
- GrowingTableView(QWidget *parent = 0);
- virtual void setModel(QAbstractItemModel *model);
+ GrowingTableWidget(QWidget *parent = 0);
protected slots:
void DataChanged(const QModelIndex& tl, const QModelIndex& br);