summaryrefslogtreecommitdiffstats
path: root/tdehtml/rendering
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 /tdehtml/rendering
parent0c9d97065a3d6ceb12d687555a1a33d90db96238 (diff)
downloadtdelibs-deac2ca49faed824fe83066080714eb6d653615b.tar.gz
tdelibs-deac2ca49faed824fe83066080714eb6d653615b.zip
Rename a number of classes to enhance compatibility with KDE4
Diffstat (limited to 'tdehtml/rendering')
-rw-r--r--tdehtml/rendering/render_form.cpp24
-rw-r--r--tdehtml/rendering/render_form.h12
2 files changed, 18 insertions, 18 deletions
diff --git a/tdehtml/rendering/render_form.cpp b/tdehtml/rendering/render_form.cpp
index 5c8249b6b..ce6debcbc 100644
--- a/tdehtml/rendering/render_form.cpp
+++ b/tdehtml/rendering/render_form.cpp
@@ -311,7 +311,7 @@ LineEditWidget::LineEditWidget(DOM::HTMLInputElementImpl* input, TDEHTMLView* vi
: KLineEdit(parent, "__tdehtml"), m_input(input), m_view(view), m_spell(0)
{
setMouseTracking(true);
- KActionCollection *ac = new KActionCollection(this);
+ TDEActionCollection *ac = new TDEActionCollection(this);
m_spellAction = KStdAction::spelling( TQT_TQOBJECT(this), TQT_SLOT( slotCheckSpelling() ), ac );
}
@@ -971,7 +971,7 @@ void RenderSelect::updateFromElement()
}
if (m_useListBox && oldMultiple != m_multiple) {
- static_cast<KListBox*>(m_widget)->setSelectionMode(m_multiple ? TQListBox::Extended : TQListBox::Single);
+ static_cast<TDEListBox*>(m_widget)->setSelectionMode(m_multiple ? TQListBox::Extended : TQListBox::Single);
}
m_selectionChanged = true;
m_optionsChanged = true;
@@ -985,7 +985,7 @@ void RenderSelect::updateFromElement()
int listIndex;
if(m_useListBox) {
- static_cast<KListBox*>(m_widget)->clear();
+ static_cast<TDEListBox*>(m_widget)->clear();
}
else
@@ -999,7 +999,7 @@ void RenderSelect::updateFromElement()
if(m_useListBox) {
TQListBoxText *item = new TQListBoxText(TQString(text.implementation()->s, text.implementation()->l));
- static_cast<KListBox*>(m_widget)
+ static_cast<TDEListBox*>(m_widget)
->insertItem(item, listIndex);
item->setSelectable(false);
}
@@ -1022,7 +1022,7 @@ void RenderSelect::updateFromElement()
}
if(m_useListBox) {
- KListBox *l = static_cast<KListBox*>(m_widget);
+ TDEListBox *l = static_cast<TDEListBox*>(m_widget);
l->insertItem(text, listIndex);
DOMString disabled = optElem->getAttribute(ATTR_DISABLED);
if (!disabled.isNull() && l->item( listIndex )) {
@@ -1083,7 +1083,7 @@ void RenderSelect::layout( )
// calculate size
if(m_useListBox) {
- KListBox* w = static_cast<KListBox*>(m_widget);
+ TDEListBox* w = static_cast<TDEListBox*>(m_widget);
TQListBoxItem* p = w->firstItem();
int width = 0;
@@ -1105,7 +1105,7 @@ void RenderSelect::layout( )
// the average of that is IMHO kMin(number of elements, 10)
// so I did that ;-)
if(size < 1)
- size = kMin(static_cast<KListBox*>(m_widget)->count(), 10u);
+ size = kMin(static_cast<TDEListBox*>(m_widget)->count(), 10u);
width += 2*w->frameWidth() + w->verticalScrollBar()->sizeHint().width();
height = size*height + 2*w->frameWidth();
@@ -1208,7 +1208,7 @@ void RenderSelect::slotSelectionChanged() // emitted by the listbox only
// again with updateSelection.
if ( listItems[i]->id() == ID_OPTION )
static_cast<HTMLOptionElementImpl*>( listItems[i] )
- ->m_selected = static_cast<KListBox*>( m_widget )->isSelected( i );
+ ->m_selected = static_cast<TDEListBox*>( m_widget )->isSelected( i );
ref();
element()->onChange();
@@ -1220,9 +1220,9 @@ void RenderSelect::setOptionsChanged(bool _optionsChanged)
m_optionsChanged = _optionsChanged;
}
-KListBox* RenderSelect::createListBox()
+TDEListBox* RenderSelect::createListBox()
{
- KListBox *lb = new KListBox(view()->viewport(), "__tdehtml");
+ TDEListBox *lb = new TDEListBox(view()->viewport(), "__tdehtml");
lb->setSelectionMode(m_multiple ? TQListBox::Extended : TQListBox::Single);
// ### looks broken
//lb->setAutoMask(true);
@@ -1247,7 +1247,7 @@ void RenderSelect::updateSelection()
int i;
if (m_useListBox) {
// if multi-select, we select only the new selected index
- KListBox *listBox = static_cast<KListBox*>(m_widget);
+ TDEListBox *listBox = static_cast<TDEListBox*>(m_widget);
for (i = 0; i < int(listItems.size()); i++)
listBox->setSelected(i,listItems[i]->id() == ID_OPTION &&
static_cast<HTMLOptionElementImpl*>(listItems[i])->selected());
@@ -1294,7 +1294,7 @@ TextAreaWidget::TextAreaWidget(int wrap, TQWidget* parent)
setAutoMask(true);
setMouseTracking(true);
- KActionCollection *ac = new KActionCollection(this);
+ TDEActionCollection *ac = new TDEActionCollection(this);
m_findAction = KStdAction::find( TQT_TQOBJECT(this), TQT_SLOT( slotFind() ), ac );
m_findNextAction = KStdAction::findNext( TQT_TQOBJECT(this), TQT_SLOT( slotFindNext() ), ac );
m_replaceAction = KStdAction::replace( TQT_TQOBJECT(this), TQT_SLOT( slotReplace() ), ac );
diff --git a/tdehtml/rendering/render_form.h b/tdehtml/rendering/render_form.h
index d4508e6bc..7543b9e90 100644
--- a/tdehtml/rendering/render_form.h
+++ b/tdehtml/rendering/render_form.h
@@ -51,7 +51,7 @@ class KFindDialog;
class KReplaceDialog;
class KFind;
class KReplace;
-class KAction;
+class TDEAction;
class KURLRequester;
namespace DOM {
@@ -282,7 +282,7 @@ private:
DOM::HTMLInputElementImpl* m_input;
TDEHTMLView* m_view;
KSpell *m_spell;
- KAction *m_spellAction;
+ TDEAction *m_spellAction;
};
// -------------------------------------------------------------------------
@@ -399,7 +399,7 @@ public:
{ return static_cast<DOM::HTMLSelectElementImpl*>(RenderObject::element()); }
protected:
- KListBox *createListBox();
+ TDEListBox *createListBox();
ComboBoxWidget *createComboBox();
unsigned m_size;
@@ -440,9 +440,9 @@ private:
KFind *m_find;
KReplaceDialog *m_repDlg;
KReplace *m_replace;
- KAction *m_findAction;
- KAction *m_findNextAction;
- KAction *m_replaceAction;
+ TDEAction *m_findAction;
+ TDEAction *m_findNextAction;
+ TDEAction *m_replaceAction;
int m_findIndex, m_findPara;
int m_repIndex, m_repPara;
};