summaryrefslogtreecommitdiffstats
path: root/tdeui/ktoolbarlabelaction.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-01 15:13:01 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-01 15:13:01 -0600
commitdeac2ca49faed824fe83066080714eb6d653615b (patch)
tree8b5bf97c5acaaf5285985b87fa76dbea0f35e4fa /tdeui/ktoolbarlabelaction.cpp
parent0c9d97065a3d6ceb12d687555a1a33d90db96238 (diff)
downloadtdelibs-deac2ca49faed824fe83066080714eb6d653615b.tar.gz
tdelibs-deac2ca49faed824fe83066080714eb6d653615b.zip
Rename a number of classes to enhance compatibility with KDE4
Diffstat (limited to 'tdeui/ktoolbarlabelaction.cpp')
-rw-r--r--tdeui/ktoolbarlabelaction.cpp42
1 files changed, 21 insertions, 21 deletions
diff --git a/tdeui/ktoolbarlabelaction.cpp b/tdeui/ktoolbarlabelaction.cpp
index b86906e57..1716a64e8 100644
--- a/tdeui/ktoolbarlabelaction.cpp
+++ b/tdeui/ktoolbarlabelaction.cpp
@@ -21,10 +21,10 @@
#include <tqlabel.h>
#include <tqapplication.h>
-class KToolBarLabelAction::KToolBarLabelActionPrivate
+class TDEToolBarLabelAction::TDEToolBarLabelActionPrivate
{
public:
- KToolBarLabelActionPrivate()
+ TDEToolBarLabelActionPrivate()
: m_label(0)
{
}
@@ -32,53 +32,53 @@ public:
};
-KToolBarLabelAction::KToolBarLabelAction(const TQString &text,
- const KShortcut &cut,
+TDEToolBarLabelAction::TDEToolBarLabelAction(const TQString &text,
+ const TDEShortcut &cut,
const TQObject *receiver,
const char *slot,
- KActionCollection *parent,
+ TDEActionCollection *parent,
const char *name)
: KWidgetAction(new TQLabel(text, 0, "kde toolbar widget"), text, cut,
receiver, slot, parent, name),
- d(new KToolBarLabelActionPrivate)
+ d(new TDEToolBarLabelActionPrivate)
{
init();
}
-KToolBarLabelAction::KToolBarLabelAction(TQWidget* buddy,
+TDEToolBarLabelAction::TDEToolBarLabelAction(TQWidget* buddy,
const TQString &text,
- const KShortcut &cut,
+ const TDEShortcut &cut,
const TQObject *receiver,
const char *slot,
- KActionCollection *parent,
+ TDEActionCollection *parent,
const char *name)
: KWidgetAction(new TQLabel(buddy, text, 0, "kde toolbar widget"), text,
cut, receiver, slot, parent, name),
- d(new KToolBarLabelActionPrivate)
+ d(new TDEToolBarLabelActionPrivate)
{
init();
}
-KToolBarLabelAction::KToolBarLabelAction(TQLabel* label,
- const KShortcut &cut,
+TDEToolBarLabelAction::TDEToolBarLabelAction(TQLabel* label,
+ const TDEShortcut &cut,
const TQObject *receiver,
const char *slot,
- KActionCollection* parent,
+ TDEActionCollection* parent,
const char *name)
: KWidgetAction(label, label->text(), cut, receiver, slot, parent, name),
- d(new KToolBarLabelActionPrivate)
+ d(new TDEToolBarLabelActionPrivate)
{
Q_ASSERT(TQString::fromLatin1("kde toolbar widget") == label->name());
init();
}
-KToolBarLabelAction::~KToolBarLabelAction()
+TDEToolBarLabelAction::~TDEToolBarLabelAction()
{
delete d;
d = 0;
}
-void KToolBarLabelAction::init()
+void TDEToolBarLabelAction::init()
{
d->m_label = static_cast<TQLabel*>(widget());
/* these lines were copied from Konqueror's KonqDraggableLabel class in
@@ -90,28 +90,28 @@ void KToolBarLabelAction::init()
d->m_label->adjustSize();
}
-void KToolBarLabelAction::setText(const TQString& text)
+void TDEToolBarLabelAction::setText(const TQString& text)
{
KWidgetAction::setText(text);
d->m_label->setText(text);
}
-void KToolBarLabelAction::setBuddy(TQWidget* buddy)
+void TDEToolBarLabelAction::setBuddy(TQWidget* buddy)
{
d->m_label->setBuddy(buddy);
}
-TQWidget* KToolBarLabelAction::buddy() const
+TQWidget* TDEToolBarLabelAction::buddy() const
{
return d->m_label->buddy();
}
-TQLabel* KToolBarLabelAction::label() const
+TQLabel* TDEToolBarLabelAction::label() const
{
return d->m_label;
}
-void KToolBarLabelAction::virtual_hook(int, void*)
+void TDEToolBarLabelAction::virtual_hook(int, void*)
{
}