summaryrefslogtreecommitdiffstats
path: root/kiten/widgets.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kiten/widgets.cpp')
-rw-r--r--kiten/widgets.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/kiten/widgets.cpp b/kiten/widgets.cpp
index f7fec883..9a278ecb 100644
--- a/kiten/widgets.cpp
+++ b/kiten/widgets.cpp
@@ -293,10 +293,10 @@ void ResultView::updateFont()
// nice EDICT dictionary editor
eEdit::eEdit(const TQString &_filename, TQWidget *parent, const char *name)
- : KMainWindow(parent, name)
+ : TDEMainWindow(parent, name)
, filename(_filename)
{
- List = new KListView(this);
+ List = new TDEListView(this);
setCentralWidget(List);
List->addColumn(i18n("Kanji"));
@@ -318,9 +318,9 @@ eEdit::eEdit(const TQString &_filename, TQWidget *parent, const char *name)
List->setDragEnabled(true);
saveAct = KStdAction::save(TQT_TQOBJECT(this), TQT_SLOT(save()), actionCollection());
- removeAct = new KAction(i18n("&Delete"), "edit_remove", CTRL + Key_X, TQT_TQOBJECT(this), TQT_SLOT(del()), actionCollection(), "del");
- (void) new KAction(i18n("&Disable Dictionary"), 0, TQT_TQOBJECT(this), TQT_SLOT(disable()), actionCollection(), "disable");
- addAct = new KAction(i18n("&Add"), "edit_add", CTRL + Key_A, TQT_TQOBJECT(this), TQT_SLOT(add()), actionCollection(), "add");
+ removeAct = new TDEAction(i18n("&Delete"), "edit_remove", CTRL + Key_X, TQT_TQOBJECT(this), TQT_SLOT(del()), actionCollection(), "del");
+ (void) new TDEAction(i18n("&Disable Dictionary"), 0, TQT_TQOBJECT(this), TQT_SLOT(disable()), actionCollection(), "disable");
+ addAct = new TDEAction(i18n("&Add"), "edit_add", CTRL + Key_A, TQT_TQOBJECT(this), TQT_SLOT(add()), actionCollection(), "add");
(void) KStdAction::close(TQT_TQOBJECT(this), TQT_SLOT(close()), actionCollection());
createGUI("eeditui.rc");
@@ -338,7 +338,7 @@ eEdit::~eEdit()
void eEdit::add()
{
if (List)
- new KListViewItem(List);
+ new TDEListViewItem(List);
}
void eEdit::openFile(const TQString &file)
@@ -437,7 +437,7 @@ void eEdit::del()
// sorta taken from konqy
EditAction::EditAction(const TQString& text, int accel, const TQObject *receiver, const char *member, TQObject* parent, const char* name)
- : KAction(text, accel, parent, name)
+ : TDEAction(text, accel, parent, name)
{
m_receiver = receiver;
m_member = member;
@@ -449,12 +449,12 @@ EditAction::~EditAction()
int EditAction::plug( TQWidget *w, int index )
{
- // if ( !w->inherits( "KToolBar" ) )
+ // if ( !w->inherits( "TDEToolBar" ) )
// return -1;
- KToolBar *toolBar = (KToolBar *)w;
+ TDEToolBar *toolBar = (TDEToolBar *)w;
- int id = KAction::getToolButtonID();
+ int id = TDEAction::getToolButtonID();
KRomajiEdit *comboBox = new KRomajiEdit(toolBar, "search edit");
toolBar->insertWidget( id, 70, comboBox, index );
@@ -477,10 +477,10 @@ int EditAction::plug( TQWidget *w, int index )
void EditAction::unplug( TQWidget *w )
{
-// if ( !w->inherits( "KToolBar" ) )
+// if ( !w->inherits( "TDEToolBar" ) )
// return;
- KToolBar *toolBar = (KToolBar *)w;
+ TDEToolBar *toolBar = (TDEToolBar *)w;
int idx = findContainer( w );