summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2013-02-01 15:04:33 -0600
committerTimothy Pearson <[email protected]>2013-02-01 15:04:33 -0600
commit9aa2a73641f4d386c9667ac946cebfabca872940 (patch)
tree9d6d443b7e100cbe48a8747207f7f2db1d42e141 /src/gui
parent0f2dc8b9f38b8cbb3cd1769173a4f3ed32a7a189 (diff)
downloadktechlab-9aa2a73641f4d386c9667ac946cebfabca872940.tar.gz
ktechlab-9aa2a73641f4d386c9667ac946cebfabca872940.zip
Rename a number of classes to enhance compatibility with KDE4
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/itemselector.cpp8
-rw-r--r--src/gui/itemselector.h4
-rw-r--r--src/gui/linkeroptionswidget.ui2
-rw-r--r--src/gui/oscilloscopeview.cpp2
-rw-r--r--src/gui/plvitem.cpp12
-rw-r--r--src/gui/plvitem.h6
-rw-r--r--src/gui/propertieslistview.cpp4
-rw-r--r--src/gui/propertieslistview.h2
-rw-r--r--src/gui/symbolviewer.cpp4
-rw-r--r--src/gui/symbolviewer.h6
10 files changed, 25 insertions, 25 deletions
diff --git a/src/gui/itemselector.cpp b/src/gui/itemselector.cpp
index 32e0cf6..8ddcc2a 100644
--- a/src/gui/itemselector.cpp
+++ b/src/gui/itemselector.cpp
@@ -31,7 +31,7 @@
#include <assert.h>
ILVItem::ILVItem( TQListView* parent, const TQString &id )
- : KListViewItem( parent, 0 )
+ : TDEListViewItem( parent, 0 )
{
m_id = id;
b_isRemovable = false;
@@ -39,7 +39,7 @@ ILVItem::ILVItem( TQListView* parent, const TQString &id )
}
ILVItem::ILVItem( TQListViewItem* parent, const TQString &id )
- : KListViewItem( parent, 0 )
+ : TDEListViewItem( parent, 0 )
{
m_id = id;
b_isRemovable = false;
@@ -48,7 +48,7 @@ ILVItem::ILVItem( TQListViewItem* parent, const TQString &id )
ItemSelector::ItemSelector( TQWidget *parent, const char *name )
- : KListView( parent, name )
+ : TDEListView( parent, name )
{
addColumn( i18n( "Component" ) );
setFullWidth(true);
@@ -71,7 +71,7 @@ ItemSelector::~ItemSelector()
void ItemSelector::clear()
{
m_categories.clear();
- KListView::clear();
+ TDEListView::clear();
}
diff --git a/src/gui/itemselector.h b/src/gui/itemselector.h
index 2b327bf..72df34f 100644
--- a/src/gui/itemselector.h
+++ b/src/gui/itemselector.h
@@ -24,7 +24,7 @@ namespace KateMDI { class ToolView; }
@short Contains info about item for ItemSelector
@author David Saxton
*/
-class ILVItem : public TQObject, public KListViewItem
+class ILVItem : public TQObject, public TDEListViewItem
{
public:
ILVItem( TQListView *parent, const TQString &id );
@@ -55,7 +55,7 @@ class ILVItem : public TQObject, public KListViewItem
@short Allows selection of generic items for dragging / clicking
@author David Saxton
*/
-class ItemSelector : public KListView
+class ItemSelector : public TDEListView
{
Q_OBJECT
diff --git a/src/gui/linkeroptionswidget.ui b/src/gui/linkeroptionswidget.ui
index ef4dcb8..e353f5e 100644
--- a/src/gui/linkeroptionswidget.ui
+++ b/src/gui/linkeroptionswidget.ui
@@ -122,7 +122,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="KListView">
+ <widget class="TDEListView">
<column>
<property name="text">
<string>Library</string>
diff --git a/src/gui/oscilloscopeview.cpp b/src/gui/oscilloscopeview.cpp
index 81471b2..b7673a7 100644
--- a/src/gui/oscilloscopeview.cpp
+++ b/src/gui/oscilloscopeview.cpp
@@ -122,7 +122,7 @@ void OscilloscopeView::mousePressEvent( TQMouseEvent *event )
{
event->accept();
- KPopupMenu fpsMenu;
+ TDEPopupMenu fpsMenu;
fpsMenu.insertTitle( i18n("Framerate") );
const int fps[] = { 10, 25, 50, 75, 100 };
diff --git a/src/gui/plvitem.cpp b/src/gui/plvitem.cpp
index 55f6f6a..24b12ac 100644
--- a/src/gui/plvitem.cpp
+++ b/src/gui/plvitem.cpp
@@ -16,8 +16,8 @@
#include <tqvariant.h>
//BEGIN class PLVItem
-PLVItem::PLVItem(KListView *listview, const TQString &id, Variant *data)
- : KListViewItem(listview, data->editorCaption())
+PLVItem::PLVItem(TDEListView *listview, const TQString &id, Variant *data)
+ : TDEListViewItem(listview, data->editorCaption())
{
p_data = data;
m_id = id;
@@ -45,7 +45,7 @@ int PLVItem::width ( const TQFontMetrics & fm, const TQListView * lv, int c ) co
{
if ( c == 0 )
return 100;
-// return KListViewItem::width( fm, lv, c );
+// return TDEListViewItem::width( fm, lv, c );
else
return 200;
}
@@ -54,7 +54,7 @@ int PLVItem::width ( const TQFontMetrics & fm, const TQListView * lv, int c ) co
//BEGIN class PLVColorItem
-PLVColorItem::PLVColorItem(KListView *listview, const TQString &id, Variant *data)
+PLVColorItem::PLVColorItem(TDEListView *listview, const TQString &id, Variant *data)
: PLVItem(listview,id,data)
{
}
@@ -74,10 +74,10 @@ void PLVColorItem::paintCell ( TQPainter * p, const TQColorGroup & cg, int colum
{
p->setBackgroundColor( p_data->value().toColor() );
TQBrush brush( p_data->value().toColor() );
- p->fillRect(TQRect(0,0,listView()->columnWidth(1),KListViewItem::height()),brush);
+ p->fillRect(TQRect(0,0,listView()->columnWidth(1),TDEListViewItem::height()),brush);
}
else
- KListViewItem::paintCell(p,cg,column,width,align);
+ TDEListViewItem::paintCell(p,cg,column,width,align);
}
void PLVColorItem::updateData(TQVariant value)
diff --git a/src/gui/plvitem.h b/src/gui/plvitem.h
index 3e7ea12..5dd653c 100644
--- a/src/gui/plvitem.h
+++ b/src/gui/plvitem.h
@@ -24,12 +24,12 @@ class Variant;
PropertiesListView Item
Basic item, which holds the Variant data and Id for an item
*/
-class PLVItem : public TQObject, public KListViewItem
+class PLVItem : public TQObject, public TDEListViewItem
{
Q_OBJECT
public:
- PLVItem( KListView *listview, const TQString &id, Variant * data );
+ PLVItem( TDEListView *listview, const TQString &id, Variant * data );
~PLVItem();
TQString id() const { return m_id; }
@@ -55,7 +55,7 @@ class PLVItem : public TQObject, public KListViewItem
class PLVColorItem : public PLVItem
{
public:
- PLVColorItem( KListView *listview, const TQString &id, Variant *data );
+ PLVColorItem( TDEListView *listview, const TQString &id, Variant *data );
~PLVColorItem();
void updateData(TQVariant value);
diff --git a/src/gui/propertieslistview.cpp b/src/gui/propertieslistview.cpp
index e647997..cf30212 100644
--- a/src/gui/propertieslistview.cpp
+++ b/src/gui/propertieslistview.cpp
@@ -26,7 +26,7 @@
#include <tqvariant.h>
PropertiesListView::PropertiesListView(TQWidget *parent, const char *name)
- : KListView(parent, name)
+ : TDEListView(parent, name)
{
addColumn(i18n("Property"));
addColumn(i18n("Data"));
@@ -321,7 +321,7 @@ void PropertiesListView::wheelEvent( TQWheelEvent *e )
e->accept();
if(!item->isSelected()) slotSelectionChanged(item);
}
- else KListView::wheelEvent(e);
+ else TDEListView::wheelEvent(e);
}
#include "propertieslistview.moc"
diff --git a/src/gui/propertieslistview.h b/src/gui/propertieslistview.h
index 5073455..dd75276 100644
--- a/src/gui/propertieslistview.h
+++ b/src/gui/propertieslistview.h
@@ -26,7 +26,7 @@ typedef TQMap< TQString, PLVItem * > PLVItemMap;
@author Daniel Clarke
@author David Saxton
*/
-class PropertiesListView : public KListView
+class PropertiesListView : public TDEListView
{
Q_OBJECT
diff --git a/src/gui/symbolviewer.cpp b/src/gui/symbolviewer.cpp
index 71265b6..e887c8b 100644
--- a/src/gui/symbolviewer.cpp
+++ b/src/gui/symbolviewer.cpp
@@ -29,7 +29,7 @@ static const int VALUE_COLUMN = 1;
//BEGIN class SymbolViewerItem
SymbolViewerItem::SymbolViewerItem( SymbolViewer * symbolViewer, RegisterInfo * registerInfo )
- : KListViewItem( symbolViewer->symbolList() )
+ : TDEListViewItem( symbolViewer->symbolList() )
{
assert(registerInfo);
m_pRegisterInfo = registerInfo;
@@ -76,7 +76,7 @@ SymbolViewer::SymbolViewer( KateMDI::ToolView * parent )
{
TQGridLayout * grid = new TQGridLayout( this, 1, 1, 0, 6 );
- m_pSymbolList = new KListView(this);
+ m_pSymbolList = new TDEListView(this);
grid->addMultiCellWidget( m_pSymbolList, 0, 0, 0, 1 );
grid->addWidget( new TQLabel( i18n("Value radix:"), this ), 1, 0 );
diff --git a/src/gui/symbolviewer.h b/src/gui/symbolviewer.h
index 78c0140..68826a4 100644
--- a/src/gui/symbolviewer.h
+++ b/src/gui/symbolviewer.h
@@ -46,7 +46,7 @@ class SymbolViewer : public TQWidget
Radix valueRadix() const { return m_valueRadix; }
- KListView * symbolList() const { return m_pSymbolList; }
+ TDEListView * symbolList() const { return m_pSymbolList; }
/**
* Write the current properties (such as currently selected radix) to
* the config.
@@ -74,7 +74,7 @@ class SymbolViewer : public TQWidget
protected:
TQGuardedPtr<GpsimProcessor> m_pGpsim;
RegisterSet * m_pCurrentContext;
- KListView * m_pSymbolList;
+ TDEListView * m_pSymbolList;
Radix m_valueRadix;
private:
@@ -84,7 +84,7 @@ class SymbolViewer : public TQWidget
};
-class SymbolViewerItem : public TQObject, public KListViewItem
+class SymbolViewerItem : public TQObject, public TDEListViewItem
{
Q_OBJECT