diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-01-04 10:29:46 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-01-04 10:52:07 +0900 |
commit | e84ff3d61520e4200f987d3a0b6bea570b2e8b32 (patch) | |
tree | 43f3284f87377cf1b3cb29edfc8893484731518b /kmymoney2/widgets/registersearchline.cpp | |
parent | da9081a78aa22cc87ff98f07719e1c3befaebfc2 (diff) | |
download | kmymoney-e84ff3d61520e4200f987d3a0b6bea570b2e8b32.tar.gz kmymoney-e84ff3d61520e4200f987d3a0b6bea570b2e8b32.zip |
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'kmymoney2/widgets/registersearchline.cpp')
-rw-r--r-- | kmymoney2/widgets/registersearchline.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/kmymoney2/widgets/registersearchline.cpp b/kmymoney2/widgets/registersearchline.cpp index 8db0e2a..fe306b3 100644 --- a/kmymoney2/widgets/registersearchline.cpp +++ b/kmymoney2/widgets/registersearchline.cpp @@ -74,7 +74,7 @@ RegisterSearchLine::RegisterSearchLine(TQWidget* parent, const char* name) : void RegisterSearchLine::init(Register *reg) { d->reg = reg; - connect(this, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(queueSearch(const TQString&))); + connect(this, TQ_SIGNAL(textChanged(const TQString&)), this, TQ_SLOT(queueSearch(const TQString&))); TQLabel* label = new TQLabel(i18n("label for status combo", "Stat&us"), parentWidget()); d->combo = new TQComboBox(parentWidget()); @@ -88,13 +88,13 @@ void RegisterSearchLine::init(Register *reg) d->combo->insertItem(i18n("Not reconciled")); d->combo->insertItem(i18n("Cleared")); d->combo->setCurrentItem(0); - connect(d->combo, TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotStatusChanged(int))); + connect(d->combo, TQ_SIGNAL(activated(int)), this, TQ_SLOT(slotStatusChanged(int))); label->setBuddy(d->combo); if(reg) { - connect(reg, TQT_SIGNAL(destroyed()), this, TQT_SLOT(registerDestroyed())); - connect(reg, TQT_SIGNAL(itemAdded(RegisterItem*)), this, TQT_SLOT(itemAdded(RegisterItem*))); + connect(reg, TQ_SIGNAL(destroyed()), this, TQ_SLOT(registerDestroyed())); + connect(reg, TQ_SIGNAL(itemAdded(RegisterItem*)), this, TQ_SLOT(itemAdded(RegisterItem*))); } else { setEnabled(false); } @@ -108,15 +108,15 @@ RegisterSearchLine::~RegisterSearchLine() void RegisterSearchLine::setRegister(Register* reg) { if(d->reg) { - disconnect(d->reg, TQT_SIGNAL(destroyed()), this, TQT_SLOT(registerDestroyed())); - disconnect(d->reg, TQT_SIGNAL(itemAdded(RegisterItem*)), this, TQT_SLOT(itemAdded(RegisterItem*))); + disconnect(d->reg, TQ_SIGNAL(destroyed()), this, TQ_SLOT(registerDestroyed())); + disconnect(d->reg, TQ_SIGNAL(itemAdded(RegisterItem*)), this, TQ_SLOT(itemAdded(RegisterItem*))); } d->reg = reg; if(reg) { - connect(reg, TQT_SIGNAL(destroyed()), this, TQT_SLOT(registerDestroyed())); - connect(reg, TQT_SIGNAL(itemAdded(RegisterItem*)), this, TQT_SLOT(itemAdded(RegisterItem*))); + connect(reg, TQ_SIGNAL(destroyed()), this, TQ_SLOT(registerDestroyed())); + connect(reg, TQ_SIGNAL(itemAdded(RegisterItem*)), this, TQ_SLOT(itemAdded(RegisterItem*))); } setEnabled(reg != 0); @@ -132,7 +132,7 @@ void RegisterSearchLine::queueSearch(const TQString& search) { d->queuedSearches++; d->search = search; - TQTimer::singleShot(200, this, TQT_SLOT(activateSearch())); + TQTimer::singleShot(200, this, TQ_SLOT(activateSearch())); } void RegisterSearchLine::activateSearch(void) @@ -261,7 +261,7 @@ RegisterSearchLineWidget::RegisterSearchLineWidget(Register* reg, TQWidget* pare { d->reg = reg; setSpacing(5); - TQTimer::singleShot(0, this, TQT_SLOT(createWidgets())); + TQTimer::singleShot(0, this, TQ_SLOT(createWidgets())); } RegisterSearchLineWidget::~RegisterSearchLineWidget() @@ -294,7 +294,7 @@ void RegisterSearchLineWidget::createWidgets(void) label->setBuddy(d->searchLine); label->show(); - connect(d->clearButton, TQT_SIGNAL(clicked()), d->searchLine, TQT_SLOT(reset())); + connect(d->clearButton, TQ_SIGNAL(clicked()), d->searchLine, TQ_SLOT(reset())); } RegisterSearchLine* RegisterSearchLineWidget::searchLine(void) const |