summaryrefslogtreecommitdiffstats
path: root/quanta/utility/toolbartabwidget.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-01 15:16:01 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-01 15:16:01 -0600
commit9771f17f8cc5252b12ec5f3edf47ff9bffdf997f (patch)
treeb9e389db87bdba126010d03fb5bccdc748d0e6fa /quanta/utility/toolbartabwidget.cpp
parent9930e16dde86b7de9b792613d826f4f8648b9768 (diff)
downloadtdewebdev-9771f17f8cc5252b12ec5f3edf47ff9bffdf997f.tar.gz
tdewebdev-9771f17f8cc5252b12ec5f3edf47ff9bffdf997f.zip
Rename a number of classes to enhance compatibility with KDE4
Diffstat (limited to 'quanta/utility/toolbartabwidget.cpp')
-rw-r--r--quanta/utility/toolbartabwidget.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/quanta/utility/toolbartabwidget.cpp b/quanta/utility/toolbartabwidget.cpp
index c594c46b..6d715d64 100644
--- a/quanta/utility/toolbartabwidget.cpp
+++ b/quanta/utility/toolbartabwidget.cpp
@@ -41,7 +41,7 @@
ToolbarTabWidget::ToolbarTabWidget(TQWidget * parent, const char * name, WFlags f)
:TQTabWidget(parent, name, f)
{
- m_popupMenu = new KPopupMenu(this);
+ m_popupMenu = new TDEPopupMenu(this);
m_popupMenu->insertTitle(i18n("Toolbar Menu"), 1);
m_popupMenu->insertItem(i18n("New Action..."), parent, TQT_SLOT(slotNewAction()));
m_popupMenu->insertSeparator();
@@ -60,12 +60,12 @@ ToolbarTabWidget::ToolbarTabWidget(TQWidget * parent, const char * name, WFlags
parent, TQT_SLOT(slotNewAction()));
connect(this, TQT_SIGNAL(addToolbar()),
parent, TQT_SLOT(slotAddToolbar()));
- KAcceleratorManager::setNoAccel(this);
+ TDEAcceleratorManager::setNoAccel(this);
}
void ToolbarTabWidget::insertTab(TQWidget *child, const TQString &label, const TQString &id)
{
- if (child->inherits("KToolBar") && child->parentWidget())
+ if (child->inherits("TDEToolBar") && child->parentWidget())
{
TQTabWidget::insertTab(child->parentWidget(), label);
toolbarList.insert(id, child);
@@ -125,7 +125,7 @@ TQWidget* ToolbarTabWidget::page(const TQString& id)
void ToolbarTabWidget::removePage(TQWidget * w)
{
TQWidget *parent = w->parentWidget();
- if (w->inherits("KToolBar") && parent)
+ if (w->inherits("TDEToolBar") && parent)
{
TQTabWidget::removePage(parent);
for (TQMap<TQString, TQWidget*>::ConstIterator it = toolbarList.constBegin(); it != toolbarList.constEnd(); ++it)
@@ -224,12 +224,12 @@ int ToolbarTabWidget::tabHeight() const
QuantaToolBar::QuantaToolBar(TQWidget *parent, const char *name, bool honor_style, bool readConfig)
-:KToolBar (parent, name=0, honor_style, readConfig)
+:TDEToolBar (parent, name=0, honor_style, readConfig)
{
- m_popupMenu = new KPopupMenu(this);
+ m_popupMenu = new TDEPopupMenu(this);
m_toolbarTab = dynamic_cast<ToolbarTabWidget*>(parent->parentWidget());
currentActionName = "";
- m_iconTextMenu = new KPopupMenu(this);
+ m_iconTextMenu = new TDEPopupMenu(this);
m_iconTextMenu->setCheckable(true);
m_iconTextMenu->insertItem(i18n("Icons Only"), 0);
m_iconTextMenu->insertItem(i18n("Text Only"), 1);
@@ -307,10 +307,10 @@ void QuantaToolBar::mousePressEvent(TQMouseEvent *e)
m_popupMenu->insertTitle(i18n("Toolbar Menu") + " - "
+ i18n(m_toolbarTab->tabUnderMouseLabel.utf8()));
m_popupMenu->insertItem(i18n("New Action..."), m_toolbarTab, TQT_SIGNAL(newAction()));
- TQObjectList* childrenList = queryList("KToolBarButton");
+ TQObjectList* childrenList = queryList("TDEToolBarButton");
for (uint i = 0; i < childrenList->count(); i++)
{
- KToolBarButton *w = static_cast<KToolBarButton*>(TQT_TQWIDGET(childrenList->at(i)));
+ TDEToolBarButton *w = static_cast<TDEToolBarButton*>(TQT_TQWIDGET(childrenList->at(i)));
TQPoint p1 = w->parentWidget()->mapToGlobal(w->pos());
TQPoint p2 = TQPoint(p1.x() + w->width(), p1.y()+w->height());
if (TQRect(p1, p2).contains(p))