diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-01-04 10:31:17 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-01-07 14:53:04 +0900 |
| commit | aa5bb4434eb6b60314787106284ad99294de4468 (patch) | |
| tree | 3a766a6cc84578b8fa8f5a6db323de24c57959d8 /src/gui/tablefieldwidget.cpp | |
| parent | 727a2e58bc79c09f53766110fb7c31d3f3af1e46 (diff) | |
| download | tellico-aa5bb443.tar.gz tellico-aa5bb443.zip | |
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit c650254e1855d383dcafd15d18be20becc3b2253)
Diffstat (limited to 'src/gui/tablefieldwidget.cpp')
| -rw-r--r-- | src/gui/tablefieldwidget.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/gui/tablefieldwidget.cpp b/src/gui/tablefieldwidget.cpp index d030968..724918c 100644 --- a/src/gui/tablefieldwidget.cpp +++ b/src/gui/tablefieldwidget.cpp @@ -49,7 +49,7 @@ TableFieldWidget::TableFieldWidget(Data::FieldPtr field_, TQWidget* parent_, con m_table->verticalHeader()->setClickEnabled(true); m_table->verticalHeader()->installEventFilter(this); - connect(m_table->verticalHeader(), TQT_SIGNAL(indexChange(int, int, int)), TQT_SIGNAL(modified())); + connect(m_table->verticalHeader(), TQ_SIGNAL(indexChange(int, int, int)), TQ_SIGNAL(modified())); m_table->setDragEnabled(false); m_table->setFocusStyle(TQTable::FollowStyle); @@ -61,10 +61,10 @@ TableFieldWidget::TableFieldWidget(Data::FieldPtr field_, TQWidget* parent_, con m_table->setSelectionMode(TQTable::NoSelection); m_table->setHScrollBarMode(TQScrollView::AlwaysOff); - connect(m_table, TQT_SIGNAL(valueChanged(int, int)), TQT_SIGNAL(modified())); - connect(m_table, TQT_SIGNAL(currentChanged(int, int)), TQT_SLOT(slotCheckRows(int, int))); - connect(m_table, TQT_SIGNAL(valueChanged(int, int)), TQT_SLOT(slotResizeColumn(int, int))); - connect(m_table, TQT_SIGNAL(contextMenuRequested(int, int, const TQPoint&)), TQT_SLOT(contextMenu(int, int, const TQPoint&))); + connect(m_table, TQ_SIGNAL(valueChanged(int, int)), TQ_SIGNAL(modified())); + connect(m_table, TQ_SIGNAL(currentChanged(int, int)), TQ_SLOT(slotCheckRows(int, int))); + connect(m_table, TQ_SIGNAL(valueChanged(int, int)), TQ_SLOT(slotResizeColumn(int, int))); + connect(m_table, TQ_SIGNAL(contextMenuRequested(int, int, const TQPoint&)), TQ_SLOT(contextMenu(int, int, const TQPoint&))); registerWidget(); } @@ -239,7 +239,7 @@ bool TableFieldWidget::eventFilter(TQObject* obj_, TQEvent* ev_) { m_col = col; TDEPopupMenu menu(this); menu.insertItem(SmallIconSet(TQString::fromLatin1("edit")), i18n("Rename Column..."), - this, TQT_SLOT(slotRenameColumn())); + this, TQ_SLOT(slotRenameColumn())); menu.exec(ev->globalPos()); return true; } else if(obj_ == m_table->verticalHeader()) { @@ -272,28 +272,28 @@ void TableFieldWidget::contextMenu(int row_, int col_, const TQPoint& p_) { int id; TDEPopupMenu menu(this); menu.insertItem(SmallIconSet(TQString::fromLatin1("insrow")), i18n("Insert Row"), - this, TQT_SLOT(slotInsertRow())); + this, TQ_SLOT(slotInsertRow())); menu.insertItem(SmallIconSet(TQString::fromLatin1("remrow")), i18n("Remove Row"), - this, TQT_SLOT(slotRemoveRow())); + this, TQ_SLOT(slotRemoveRow())); id = menu.insertItem(SmallIconSet(TQString::fromLatin1("1uparrow")), i18n("Move Row Up"), - this, TQT_SLOT(slotMoveRowUp())); + this, TQ_SLOT(slotMoveRowUp())); if(m_row == 0) { menu.setItemEnabled(id, false); } id = menu.insertItem(SmallIconSet(TQString::fromLatin1("1downarrow")), i18n("Move Row Down"), - this, TQT_SLOT(slotMoveRowDown())); + this, TQ_SLOT(slotMoveRowDown())); if(m_row == m_table->numRows()-1) { menu.setItemEnabled(id, false); } menu.insertSeparator(); id = menu.insertItem(SmallIconSet(TQString::fromLatin1("edit")), i18n("Rename Column..."), - this, TQT_SLOT(slotRenameColumn())); + this, TQ_SLOT(slotRenameColumn())); if(m_col < 0 || m_col > m_columns-1) { menu.setItemEnabled(id, false); } menu.insertSeparator(); menu.insertItem(SmallIconSet(TQString::fromLatin1("locationbar_erase")), i18n("Clear Table"), - this, TQT_SLOT(clear())); + this, TQ_SLOT(clear())); menu.exec(p_); } |
