diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-02-01 15:12:18 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-02-01 15:12:18 -0600 |
commit | ee52bb567f32fefdcf06e083c76562ea40ccf174 (patch) | |
tree | 8926667faaed3a18bec210ec14ffb9392ea8930d /kiten/widgets.cpp | |
parent | 088cc453ec425bf86d610880d09645ea166a14fa (diff) | |
download | tdeedu-ee52bb567f32fefdcf06e083c76562ea40ccf174.tar.gz tdeedu-ee52bb567f32fefdcf06e083c76562ea40ccf174.zip |
Rename a number of classes to enhance compatibility with KDE4
Diffstat (limited to 'kiten/widgets.cpp')
-rw-r--r-- | kiten/widgets.cpp | 24 |
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 ); |