diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-12-14 21:19:12 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-12-24 16:56:48 +0900 |
commit | 757d80a919132cf72773928d53d100d22358de34 (patch) | |
tree | 78f1145fbd227d1135514b40e66e2e4bcbe3fcce /lib/koproperty | |
parent | 9abcf51de91242d1ab70230ba46abd2108416edf (diff) | |
download | koffice-757d80a9.tar.gz koffice-757d80a9.zip |
Remove various '#define' strings - part 6
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 3aab8aa05b954b80e336517f93463a9b5f50f3d6)
Diffstat (limited to 'lib/koproperty')
-rw-r--r-- | lib/koproperty/editor.cpp | 2 | ||||
-rw-r--r-- | lib/koproperty/editors/spinbox.cpp | 8 | ||||
-rw-r--r-- | lib/koproperty/test/test.cpp | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/lib/koproperty/editor.cpp b/lib/koproperty/editor.cpp index ddd235398..8dfb6e8bb 100644 --- a/lib/koproperty/editor.cpp +++ b/lib/koproperty/editor.cpp @@ -590,7 +590,7 @@ Editor::slotClicked(TQListViewItem *it) if (d->currentWidget) { if (d->currentWidget->visibleFlag()) { d->currentWidget->show(); - if (hasParent( TQT_TQOBJECT(this), TQT_TQOBJECT(kapp->focusWidget()) )) + if (hasParent( this, kapp->focusWidget() )) d->currentWidget->setFocus(); } } diff --git a/lib/koproperty/editors/spinbox.cpp b/lib/koproperty/editors/spinbox.cpp index 81f0c1cb7..3a53d9a06 100644 --- a/lib/koproperty/editors/spinbox.cpp +++ b/lib/koproperty/editors/spinbox.cpp @@ -40,7 +40,7 @@ IntSpinBox::IntSpinBox(int lower, int upper, int step, int value, int base, IntE installEventFilter(editor()); installEventFilter(this); TQObjectList *spinwidgets = queryList( "TQSpinWidget", 0, false, true ); - TQSpinWidget* spin = static_cast<TQSpinWidget*>(TQT_TQWIDGET(spinwidgets->first())); + TQSpinWidget* spin = static_cast<TQSpinWidget*>(spinwidgets->first()); if (spin) spin->installEventFilter(this); delete spinwidgets; @@ -155,7 +155,7 @@ void IntEdit::updateSpinWidgets() { TQObjectList *spinwidgets = queryList( "TQSpinWidget", 0, false, true ); - TQSpinWidget* spin = static_cast<TQSpinWidget*>(TQT_TQWIDGET(spinwidgets->first())); + TQSpinWidget* spin = static_cast<TQSpinWidget*>(spinwidgets->first()); if (spin) { spin->setUpEnabled(!isReadOnly()); spin->setDownEnabled(!isReadOnly()); @@ -183,7 +183,7 @@ DoubleSpinBox::DoubleSpinBox (double lower, double upper, double step, double va installEventFilter(editor()); installEventFilter(this); TQObjectList *spinwidgets = queryList( "TQSpinWidget", 0, false, true ); - TQSpinWidget* spin = static_cast<TQSpinWidget*>(TQT_TQWIDGET(spinwidgets->first())); + TQSpinWidget* spin = static_cast<TQSpinWidget*>(spinwidgets->first()); if (spin) spin->installEventFilter(this); delete spinwidgets; @@ -308,7 +308,7 @@ void DoubleEdit::updateSpinWidgets() { TQObjectList *spinwidgets = queryList( "TQSpinWidget", 0, false, true ); - TQSpinWidget* spin = static_cast<TQSpinWidget*>(TQT_TQWIDGET(spinwidgets->first())); + TQSpinWidget* spin = static_cast<TQSpinWidget*>(spinwidgets->first()); if (spin) { spin->setUpEnabled(!isReadOnly()); spin->setDownEnabled(!isReadOnly()); diff --git a/lib/koproperty/test/test.cpp b/lib/koproperty/test/test.cpp index 23bb80f70..b5d9cae5d 100644 --- a/lib/koproperty/test/test.cpp +++ b/lib/koproperty/test/test.cpp @@ -50,7 +50,7 @@ Test::Test() /* First, create the Set which will hold the properties. */ Property *p = 0; - m_set = new Set(TQT_TQOBJECT(this), "test"); + m_set = new Set(this, "test"); m_set->setReadOnly(readOnly); TQCString group; if (!flat) { |