diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-02-01 15:15:35 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-02-01 15:15:35 -0600 |
commit | f78eb03afb8c9a380985d26286afc40b4c89b292 (patch) | |
tree | 3c087e2f119e645c902958c3bc3c802abf078ad0 /lib/widgets/propeditor/propertyeditor.cpp | |
parent | da1941ccadffe5ae70ee111c53f0ec2b3d990869 (diff) | |
download | tdevelop-f78eb03afb8c9a380985d26286afc40b4c89b292.tar.gz tdevelop-f78eb03afb8c9a380985d26286afc40b4c89b292.zip |
Rename a number of classes to enhance compatibility with KDE4
Diffstat (limited to 'lib/widgets/propeditor/propertyeditor.cpp')
-rw-r--r-- | lib/widgets/propeditor/propertyeditor.cpp | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/lib/widgets/propeditor/propertyeditor.cpp b/lib/widgets/propeditor/propertyeditor.cpp index c7eafd8f..1bf3adc9 100644 --- a/lib/widgets/propeditor/propertyeditor.cpp +++ b/lib/widgets/propeditor/propertyeditor.cpp @@ -40,16 +40,16 @@ namespace PropertyLib{ -class PropertyItem: public KListViewItem{ +class PropertyItem: public TDEListViewItem{ public: PropertyItem(PropertyEditor *parent, MultiProperty *property) - :KListViewItem(parent, property->description()), m_editor(parent), m_property(property), + :TDEListViewItem(parent, property->description()), m_editor(parent), m_property(property), m_changed(false) { } - PropertyItem(PropertyEditor *editor, KListViewItem *parent, MultiProperty *property) - :KListViewItem(parent, property->description()), m_editor(editor), + PropertyItem(PropertyEditor *editor, TDEListViewItem *parent, MultiProperty *property) + :TDEListViewItem(parent, property->description()), m_editor(editor), m_property(property), m_changed(false) { } @@ -97,12 +97,12 @@ public: m_editor->machine(m_property)->propertyEditor->drawViewer(p, icg, r, valueToDraw); return; } - KListViewItem::paintCell(p, cg, column, width, align); + TDEListViewItem::paintCell(p, cg, column, width, align); } virtual void setup() { - KListViewItem::setup(); + TDEListViewItem::setup(); setHeight(static_cast<int>(height()*1.5)); } @@ -118,15 +118,15 @@ private: }; -class PropertyGroupItem: public KListViewItem{ +class PropertyGroupItem: public TDEListViewItem{ public: - PropertyGroupItem(KListView *parent, const TQString &name) - :KListViewItem(parent, name) + PropertyGroupItem(TDEListView *parent, const TQString &name) + :TDEListViewItem(parent, name) { init(); } - PropertyGroupItem(KListViewItem *parent, const TQString &name) - :KListViewItem(parent, name) + PropertyGroupItem(TDEListViewItem *parent, const TQString &name) + :TDEListViewItem(parent, name) { init(); } @@ -141,11 +141,11 @@ public: p->setBrush(cg.highlight()); p->setPen(cg.highlightedText()); } - KListViewItem::paintCell(p, cg, column, width, align); + TDEListViewItem::paintCell(p, cg, column, width, align); } virtual void setup() { - KListViewItem::setup(); + TDEListViewItem::setup(); setHeight(static_cast<int>(height()*1.4)); } @@ -156,16 +156,16 @@ private: } }; -class SeparatorItem: public KListViewItem{ +class SeparatorItem: public TDEListViewItem{ public: - SeparatorItem(KListView *parent) - :KListViewItem(parent) + SeparatorItem(TDEListView *parent) + :TDEListViewItem(parent) { setSelectable(false); } }; PropertyEditor::PropertyEditor(TQWidget *parent, const char *name) - :KListView(parent, name) + :TDEListView(parent, name) { setSorting(-1); |