summaryrefslogtreecommitdiffstats
path: root/juk/filerenamer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'juk/filerenamer.cpp')
-rw-r--r--juk/filerenamer.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/juk/filerenamer.cpp b/juk/filerenamer.cpp
index 88681efe..9476ea29 100644
--- a/juk/filerenamer.cpp
+++ b/juk/filerenamer.cpp
@@ -348,9 +348,9 @@ unsigned FileRenamerWidget::addRowCategory(TagType category)
row.downButton->setFlat(true);
upMapper->connect(row.upButton, TQT_SIGNAL(clicked()), TQT_SLOT(map()));
- upMapper->setMapping(TQT_TQOBJECT(row.upButton), id);
+ upMapper->setMapping(row.upButton, id);
downMapper->connect(row.downButton, TQT_SIGNAL(clicked()), TQT_SLOT(map()));
- downMapper->setMapping(TQT_TQOBJECT(row.downButton), id);
+ downMapper->setMapping(row.downButton, id);
TQString labelText = TQString("<b>%1</b>").arg(TagRenamerOptions::tagTypeText(category));
TQLabel *label = new TQLabel(labelText, frame);
@@ -360,11 +360,11 @@ unsigned FileRenamerWidget::addRowCategory(TagType category)
TQVBox *options = new TQVBox(frame);
row.enableButton = new KPushButton(i18n("Remove"), options);
toggleMapper->connect(row.enableButton, TQT_SIGNAL(clicked()), TQT_SLOT(map()));
- toggleMapper->setMapping(TQT_TQOBJECT(row.enableButton), id);
+ toggleMapper->setMapping(row.enableButton, id);
row.optionsButton = new KPushButton(i18n("Options"), options);
mapper->connect(row.optionsButton, TQT_SIGNAL(clicked()), TQT_SLOT(map()));
- mapper->setMapping(TQT_TQOBJECT(row.optionsButton), id);
+ mapper->setMapping(row.optionsButton, id);
row.widget->show();
m_rows.append(row);
@@ -378,10 +378,10 @@ unsigned FileRenamerWidget::addRowCategory(TagType category)
void FileRenamerWidget::moveSignalMappings(unsigned oldId, unsigned newId)
{
- mapper->setMapping(TQT_TQOBJECT(m_rows[oldId].optionsButton), newId);
- downMapper->setMapping(TQT_TQOBJECT(m_rows[oldId].downButton), newId);
- upMapper->setMapping(TQT_TQOBJECT(m_rows[oldId].upButton), newId);
- toggleMapper->setMapping(TQT_TQOBJECT(m_rows[oldId].enableButton), newId);
+ mapper->setMapping(m_rows[oldId].optionsButton, newId);
+ downMapper->setMapping(m_rows[oldId].downButton, newId);
+ upMapper->setMapping(m_rows[oldId].upButton, newId);
+ toggleMapper->setMapping(m_rows[oldId].enableButton, newId);
}
bool FileRenamerWidget::removeRow(unsigned id)
@@ -480,10 +480,10 @@ void FileRenamerWidget::createTagRows()
m_rows.reserve(categoryOrder.count());
m_folderSwitches.reserve(categoryOrder.count() - 1);
- mapper = new TQSignalMapper(TQT_TQOBJECT(this), "signal mapper");
- toggleMapper = new TQSignalMapper(TQT_TQOBJECT(this), "toggle mapper");
- upMapper = new TQSignalMapper(TQT_TQOBJECT(this), "up button mapper");
- downMapper = new TQSignalMapper(TQT_TQOBJECT(this), "down button mapper");
+ mapper = new TQSignalMapper(this, "signal mapper");
+ toggleMapper = new TQSignalMapper(this, "toggle mapper");
+ upMapper = new TQSignalMapper(this, "up button mapper");
+ downMapper = new TQSignalMapper(this, "down button mapper");
connect(mapper, TQT_SIGNAL(mapped(int)), TQT_SLOT(showCategoryOption(int)));
connect(toggleMapper, TQT_SIGNAL(mapped(int)), TQT_SLOT(slotRemoveRow(int)));