diff options
author | Timothy Pearson <[email protected]> | 2013-02-01 15:10:05 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2013-02-01 15:10:05 -0600 |
commit | 74a2067d286867e313f736d6733407586b71195e (patch) | |
tree | 182ea565d6909db1541424e4ffb3168b4b139c21 /ksig | |
parent | 081670a12774435ae60cf8eba9226b91d27852b3 (diff) | |
download | tdeaddons-74a2067d286867e313f736d6733407586b71195e.tar.gz tdeaddons-74a2067d286867e313f736d6733407586b71195e.zip |
Rename a number of classes to enhance compatibility with KDE4
Diffstat (limited to 'ksig')
-rw-r--r-- | ksig/ksig.cpp | 14 | ||||
-rw-r--r-- | ksig/ksig.h | 2 | ||||
-rw-r--r-- | ksig/siglistview.cpp | 6 | ||||
-rw-r--r-- | ksig/siglistview.h | 2 | ||||
-rw-r--r-- | ksig/siglistviewitem.cpp | 6 | ||||
-rw-r--r-- | ksig/siglistviewitem.h | 2 |
6 files changed, 16 insertions, 16 deletions
diff --git a/ksig/ksig.cpp b/ksig/ksig.cpp index 0858b4a..5b562c7 100644 --- a/ksig/ksig.cpp +++ b/ksig/ksig.cpp @@ -36,7 +36,7 @@ // public methods //////////////////////////////////////////////////////////////////////////////// -KSig::KSig(TQWidget *parent, const char *name) : KMainWindow(parent, name), +KSig::KSig(TQWidget *parent, const char *name) : TDEMainWindow(parent, name), changed(false) { setupActions(); @@ -64,17 +64,17 @@ KSig::~KSig() void KSig::setupActions() { KStdAction::openNew(TQT_TQOBJECT(this), TQT_SLOT(add()), actionCollection()); - new KAction(i18n("Remove"), "editdelete", 0, TQT_TQOBJECT(this), TQT_SLOT(remove()), actionCollection(), "remove"); + new TDEAction(i18n("Remove"), "editdelete", 0, TQT_TQOBJECT(this), TQT_SLOT(remove()), actionCollection(), "remove"); KStdAction::save(TQT_TQOBJECT(this), TQT_SLOT(save()), actionCollection()); KStdAction::quit(TQT_TQOBJECT(this), TQT_SLOT(quit()), actionCollection()); KStdAction::cut(TQT_TQOBJECT(kapp), TQT_SLOT(cut()), actionCollection()); KStdAction::copy(TQT_TQOBJECT(kapp), TQT_SLOT(copy()), actionCollection()); KStdAction::paste(TQT_TQOBJECT(kapp), TQT_SLOT(paste()), actionCollection()); - new KAction(i18n("C&lear"), "editclear", 0, TQT_TQOBJECT(kapp), TQT_SLOT(clear()), actionCollection(), "clear"); + new TDEAction(i18n("C&lear"), "editclear", 0, TQT_TQOBJECT(kapp), TQT_SLOT(clear()), actionCollection(), "clear"); - new KAction(i18n("Edit Standard Header"), 0, 0, TQT_TQOBJECT(this), TQT_SLOT(editHeader()), actionCollection(), "editHeader"); - new KAction(i18n("Edit Standard Footer"), 0, 0, TQT_TQOBJECT(this), TQT_SLOT(editFooter()), actionCollection(), "editFooter"); + new TDEAction(i18n("Edit Standard Header"), 0, 0, TQT_TQOBJECT(this), TQT_SLOT(editHeader()), actionCollection(), "editHeader"); + new TDEAction(i18n("Edit Standard Footer"), 0, 0, TQT_TQOBJECT(this), TQT_SLOT(editFooter()), actionCollection(), "editFooter"); } void KSig::setupLayout() @@ -103,8 +103,8 @@ void KSig::setupLayout() void KSig::setupSearchLine() { - KListViewSearchLineWidget *searchWidget = new KListViewSearchLineWidget(sigList, this); - new KWidgetAction(searchWidget, i18n("Search"), KShortcut(), 0, 0, actionCollection(), "search"); + TDEListViewSearchLineWidget *searchWidget = new TDEListViewSearchLineWidget(sigList, this); + new KWidgetAction(searchWidget, i18n("Search"), TDEShortcut(), 0, 0, actionCollection(), "search"); } void KSig::loadData() diff --git a/ksig/ksig.h b/ksig/ksig.h index a8ce410..7e484be 100644 --- a/ksig/ksig.h +++ b/ksig/ksig.h @@ -25,7 +25,7 @@ class KTextEdit; class TQSplitter; -class KSig : public KMainWindow +class KSig : public TDEMainWindow { Q_OBJECT diff --git a/ksig/siglistview.cpp b/ksig/siglistview.cpp index 76a440f..e4fe168 100644 --- a/ksig/siglistview.cpp +++ b/ksig/siglistview.cpp @@ -96,19 +96,19 @@ SigListViewItem *SigListView::createItem() SigListViewItem *SigListView::currentItem() { - return(dynamic_cast<SigListViewItem *>(KListView::currentItem())); + return(dynamic_cast<SigListViewItem *>(TDEListView::currentItem())); } const SigListViewItem *SigListView::currentItem() const { - return(dynamic_cast<SigListViewItem *>(KListView::currentItem())); + return(dynamic_cast<SigListViewItem *>(TDEListView::currentItem())); } //////////////////////////////////////////////////////////////////////////////// // protected members //////////////////////////////////////////////////////////////////////////////// -SigListView::SigListView(TQWidget *parent, const char *name) : KListView(parent, name) +SigListView::SigListView(TQWidget *parent, const char *name) : TDEListView(parent, name) { addColumn(i18n("Signatures")); diff --git a/ksig/siglistview.h b/ksig/siglistview.h index 82633e6..5508de5 100644 --- a/ksig/siglistview.h +++ b/ksig/siglistview.h @@ -34,7 +34,7 @@ class SigListViewItem; * be two instances of this widget created. */ -class SigListView : public KListView +class SigListView : public TDEListView { Q_OBJECT diff --git a/ksig/siglistviewitem.cpp b/ksig/siglistviewitem.cpp index 0442c2e..85fd343 100644 --- a/ksig/siglistviewitem.cpp +++ b/ksig/siglistviewitem.cpp @@ -49,9 +49,9 @@ void SigListViewItem::setText(const TQString &t) void SigListViewItem::refreshText() { if(!text().isEmpty()) - KListViewItem::setText(0, text().simplifyWhiteSpace()); + TDEListViewItem::setText(0, text().simplifyWhiteSpace()); else - KListViewItem::setText(0, emptySigString); + TDEListViewItem::setText(0, emptySigString); } void SigListViewItem::nodeToText(const TQDomNode &n, TQString &s) @@ -74,7 +74,7 @@ void SigListViewItem::nodeToText(const TQDomNode &n, TQString &s) // private members //////////////////////////////////////////////////////////////////////////////// -SigListViewItem::SigListViewItem(TQListView *parent, TQDomDocument document, TQDomElement signatureElement) : KListViewItem(parent) +SigListViewItem::SigListViewItem(TQListView *parent, TQDomDocument document, TQDomElement signatureElement) : TDEListViewItem(parent) { emptySigString = i18n("<empty signature>"); diff --git a/ksig/siglistviewitem.h b/ksig/siglistviewitem.h index 2b51edd..8dd42eb 100644 --- a/ksig/siglistviewitem.h +++ b/ksig/siglistviewitem.h @@ -22,7 +22,7 @@ #include <tqdom.h> -class SigListViewItem : public KListViewItem +class SigListViewItem : public TDEListViewItem { friend class SigListView; public: |