summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/configdialog.cpp4
-rw-r--r--src/entryeditdialog.cpp4
-rw-r--r--src/fetch/execexternalfetcher.cpp2
-rw-r--r--src/fetchdialog.cpp4
-rw-r--r--src/filterdialog.cpp2
-rw-r--r--src/gui/imagewidget.cpp4
-rw-r--r--src/gui/lineedit.cpp4
-rw-r--r--src/gui/linefieldwidget.cpp2
-rw-r--r--src/gui/numberfieldwidget.cpp2
-rw-r--r--src/gui/stringmapdialog.cpp4
-rw-r--r--src/gui/tabcontrol.cpp2
-rw-r--r--src/mainwindow.cpp92
-rw-r--r--src/newstuff/dialog.cpp2
-rw-r--r--src/statusbar.cpp4
14 files changed, 66 insertions, 66 deletions
diff --git a/src/configdialog.cpp b/src/configdialog.cpp
index 504886d..3f6d458 100644
--- a/src/configdialog.cpp
+++ b/src/configdialog.cpp
@@ -1021,7 +1021,7 @@ void ConfigDialog::slotInstallTemplate() {
return;
}
- NewStuff::Manager man(TQT_TQOBJECT(this));
+ NewStuff::Manager man(this);
if(man.installTemplate(u)) {
loadTemplateList();
}
@@ -1051,7 +1051,7 @@ void ConfigDialog::slotDeleteTemplate() {
nameFileMap.keys(), 0, false, &ok, this);
if(ok && !name.isEmpty()) {
TQString file = nameFileMap[name];
- NewStuff::Manager man(TQT_TQOBJECT(this));
+ NewStuff::Manager man(this);
man.removeTemplate(file);
loadTemplateList();
}
diff --git a/src/entryeditdialog.cpp b/src/entryeditdialog.cpp
index feb57a7..3cb94d0 100644
--- a/src/entryeditdialog.cpp
+++ b/src/entryeditdialog.cpp
@@ -708,10 +708,10 @@ void EntryEditDialog::modifyField(Data::CollPtr coll_, Data::FieldPtr oldField_,
TQObjectList* childList = widget->parentWidget()->queryList("Tellico::GUI::FieldWidget", 0, false, false);
TQObjectListIt it(*childList);
for(it.toFirst(); it.current(); ++it) {
- maxWidth = TQMAX(maxWidth, static_cast<GUI::FieldWidget*>(TQT_TQWIDGET(it.current()))->labelWidth());
+ maxWidth = TQMAX(maxWidth, static_cast<GUI::FieldWidget*>(it.current())->labelWidth());
}
for(it.toFirst(); it.current(); ++it) {
- static_cast<GUI::FieldWidget*>(TQT_TQWIDGET(it.current()))->setLabelWidth(maxWidth);
+ static_cast<GUI::FieldWidget*>(it.current())->setLabelWidth(maxWidth);
}
delete childList;
}
diff --git a/src/fetch/execexternalfetcher.cpp b/src/fetch/execexternalfetcher.cpp
index d477e47..73fcd27 100644
--- a/src/fetch/execexternalfetcher.cpp
+++ b/src/fetch/execexternalfetcher.cpp
@@ -549,7 +549,7 @@ void ExecExternalFetcher::ConfigWidget::removed() {
return;
}
if(!m_newStuffName.isEmpty()) {
- NewStuff::Manager man(TQT_TQOBJECT(this));
+ NewStuff::Manager man(this);
man.removeScript(m_newStuffName);
}
}
diff --git a/src/fetchdialog.cpp b/src/fetchdialog.cpp
index 8392fab..0ca85f9 100644
--- a/src/fetchdialog.cpp
+++ b/src/fetchdialog.cpp
@@ -553,9 +553,9 @@ void FetchDialog::slotKeyChanged(int idx_) {
if(key == Fetch::ISBN || key == Fetch::UPC || key == Fetch::LCCN) {
m_multipleISBN->setEnabled(true);
if(key == Fetch::ISBN) {
- m_valueLineEdit->setValidator(new ISBNValidator(TQT_TQOBJECT(this)));
+ m_valueLineEdit->setValidator(new ISBNValidator(this));
} else {
- UPCValidator* upc = new UPCValidator(TQT_TQOBJECT(this));
+ UPCValidator* upc = new UPCValidator(this);
connect(upc, TQT_SIGNAL(signalISBN()), TQT_SLOT(slotUPC2ISBN()));
m_valueLineEdit->setValidator(upc);
// only want to convert to ISBN if ISBN is accepted by the fetcher
diff --git a/src/filterdialog.cpp b/src/filterdialog.cpp
index d7dea40..17c262d 100644
--- a/src/filterdialog.cpp
+++ b/src/filterdialog.cpp
@@ -110,7 +110,7 @@ void FilterRuleWidget::initWidget() {
void FilterRuleWidget::slotEditRegExp() {
if(m_editRegExpDialog == 0) {
m_editRegExpDialog = KParts::ComponentFactory::createInstanceFromQuery<TQDialog>(TQString::fromLatin1("KRegExpEditor/KRegExpEditor"),
- TQString(), TQT_TQOBJECT(this));
+ TQString(), this);
}
KRegExpEditorInterface* iface = static_cast<KRegExpEditorInterface *>(m_editRegExpDialog->tqt_cast("KRegExpEditorInterface"));
diff --git a/src/gui/imagewidget.cpp b/src/gui/imagewidget.cpp
index 556d93d..75fe95f 100644
--- a/src/gui/imagewidget.cpp
+++ b/src/gui/imagewidget.cpp
@@ -54,8 +54,8 @@ ImageWidget::ImageWidget(TQWidget* parent_, const char* name_) : TQWidget(parent
boxLayout->addStretch(1);
KButtonBox* box = new KButtonBox(this,TQt::Vertical);
- box->addButton(i18n("Select Image..."), TQT_TQOBJECT(this), TQT_SLOT(slotGetImage()));
- box->addButton(i18n("Clear"), TQT_TQOBJECT(this), TQT_SLOT(slotClear()));
+ box->addButton(i18n("Select Image..."), this, TQT_SLOT(slotGetImage()));
+ box->addButton(i18n("Clear"), this, TQT_SLOT(slotClear()));
box->layout();
boxLayout->addWidget(box);
diff --git a/src/gui/lineedit.cpp b/src/gui/lineedit.cpp
index 1da38ca..1096671 100644
--- a/src/gui/lineedit.cpp
+++ b/src/gui/lineedit.cpp
@@ -28,7 +28,7 @@ LineEdit::LineEdit(TQWidget* parent_, const char* name_) : KLineEdit(parent_, na
, m_allowSpellCheck(false)
, m_enableSpellCheck(true)
, m_spell(0) {
- m_spellAction = KStdAction::spelling(TQT_TQOBJECT(this), TQT_SLOT(slotCheckSpelling()), new TDEActionCollection(this));
+ m_spellAction = KStdAction::spelling(this, TQT_SLOT(slotCheckSpelling()), new TDEActionCollection(this));
}
void LineEdit::clear() {
@@ -110,7 +110,7 @@ void LineEdit::slotCheckSpelling() {
delete m_spell;
// re-use the action string to get translations
m_spell = new KSpell(this, m_spellAction->text(),
- TQT_TQOBJECT(this), TQT_SLOT(slotSpellCheckReady(KSpell*)), 0, true, true);
+ this, TQT_SLOT(slotSpellCheckReady(KSpell*)), 0, true, true);
connect(m_spell, TQT_SIGNAL(death()),
TQT_SLOT(spellCheckerFinished()));
diff --git a/src/gui/linefieldwidget.cpp b/src/gui/linefieldwidget.cpp
index 3f3da1d..ee4474a 100644
--- a/src/gui/linefieldwidget.cpp
+++ b/src/gui/linefieldwidget.cpp
@@ -40,7 +40,7 @@ LineFieldWidget::LineFieldWidget(Data::FieldPtr field_, TQWidget* parent_, const
}
if(field_->name() == Latin1Literal("isbn")) {
- m_lineEdit->setValidator(new ISBNValidator(TQT_TQOBJECT(this)));
+ m_lineEdit->setValidator(new ISBNValidator(this));
}
}
diff --git a/src/gui/numberfieldwidget.cpp b/src/gui/numberfieldwidget.cpp
index 0284e84..3893f08 100644
--- a/src/gui/numberfieldwidget.cpp
+++ b/src/gui/numberfieldwidget.cpp
@@ -42,7 +42,7 @@ void NumberFieldWidget::initLineEdit() {
// regexp is any number of digits followed optionally by any number of
// groups of a semi-colon followed optionally by a space, followed by digits
TQRegExp rx(TQString::fromLatin1("-?\\d*(; ?-?\\d*)*"));
- m_lineEdit->setValidator(new TQRegExpValidator(rx, TQT_TQOBJECT(this)));
+ m_lineEdit->setValidator(new TQRegExpValidator(rx, this));
}
void NumberFieldWidget::initSpinBox() {
diff --git a/src/gui/stringmapdialog.cpp b/src/gui/stringmapdialog.cpp
index e580a8d..28867a0 100644
--- a/src/gui/stringmapdialog.cpp
+++ b/src/gui/stringmapdialog.cpp
@@ -54,9 +54,9 @@ StringMapDialog::StringMapDialog(const TQMap<TQString, TQString>& map_, TQWidget
m_edit2 = new KLineEdit(box);
KButtonBox* bb = new KButtonBox(box);
bb->addStretch();
- TQPushButton* btn = bb->addButton(i18n("&Set"), TQT_TQOBJECT(this), TQT_SLOT(slotAdd()));
+ TQPushButton* btn = bb->addButton(i18n("&Set"), this, TQT_SLOT(slotAdd()));
btn->setIconSet(BarIcon(TQString::fromLatin1("document-new"), TDEIcon::SizeSmall));
- btn = bb->addButton(i18n("&Delete"), TQT_TQOBJECT(this), TQT_SLOT(slotDelete()));
+ btn = bb->addButton(i18n("&Delete"), this, TQT_SLOT(slotDelete()));
btn->setIconSet(BarIcon(TQString::fromLatin1("edit-delete"), TDEIcon::SizeSmall));
l->addWidget(box);
diff --git a/src/gui/tabcontrol.cpp b/src/gui/tabcontrol.cpp
index cd68b97..609c3de 100644
--- a/src/gui/tabcontrol.cpp
+++ b/src/gui/tabcontrol.cpp
@@ -34,7 +34,7 @@ void TabControl::setFocusToFirstChild() {
}
TQObjectList* list = page->queryList("TQWidget");
for(TQObjectListIt it(*list); it.current(); ++it) {
- TQWidget* w = TQT_TQWIDGET(it.current());
+ TQWidget* w = static_cast<TQWidget*>(it.current());
if(w->isFocusEnabled()) {
w->setFocus();
break;
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index e9b0af8..dc6a035 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -147,11 +147,11 @@ MainWindow::MainWindow(TQWidget* parent_/*=0*/, const char* name_/*=0*/) : TDEMa
readOptions();
setAcceptDrops(true);
- DropHandler* drophandler = new DropHandler(TQT_TQOBJECT(this));
+ DropHandler* drophandler = new DropHandler(this);
installEventFilter(drophandler);
MARK_LINE;
- TQTimer::singleShot(0, TQT_TQOBJECT(this), TQT_SLOT(slotInit()));
+ TQTimer::singleShot(0, this, TQT_SLOT(slotInit()));
}
void MainWindow::slotInit() {
@@ -182,9 +182,9 @@ void MainWindow::initActions() {
/*************************************************
* File->New menu
*************************************************/
- TQSignalMapper* collectionMapper = new TQSignalMapper(TQT_TQOBJECT(this));
+ TQSignalMapper* collectionMapper = new TQSignalMapper(this);
connect(collectionMapper, TQT_SIGNAL(mapped(int)),
- TQT_TQOBJECT(this), TQT_SLOT(slotFileNew(int)));
+ this, TQT_SLOT(slotFileNew(int)));
TDEActionMenu* fileNewMenu = new TDEActionMenu(actionCollection(), "file_new_collection");
fileNewMenu->setText(i18n("New"));
@@ -300,24 +300,24 @@ void MainWindow::initActions() {
/*************************************************
* File menu
*************************************************/
- action = KStdAction::open(TQT_TQOBJECT(this), TQT_SLOT(slotFileOpen()), actionCollection());
+ action = KStdAction::open(this, TQT_SLOT(slotFileOpen()), actionCollection());
action->setToolTip(i18n("Open an existing document"));
- m_fileOpenRecent = KStdAction::openRecent(TQT_TQOBJECT(this), TQT_SLOT(slotFileOpenRecent(const KURL&)), actionCollection());
+ m_fileOpenRecent = KStdAction::openRecent(this, TQT_SLOT(slotFileOpenRecent(const KURL&)), actionCollection());
m_fileOpenRecent->setToolTip(i18n("Open a recently used file"));
- m_fileSave = KStdAction::save(TQT_TQOBJECT(this), TQT_SLOT(slotFileSave()), actionCollection());
+ m_fileSave = KStdAction::save(this, TQT_SLOT(slotFileSave()), actionCollection());
m_fileSave->setToolTip(i18n("Save the document"));
- action = KStdAction::saveAs(TQT_TQOBJECT(this), TQT_SLOT(slotFileSaveAs()), actionCollection());
+ action = KStdAction::saveAs(this, TQT_SLOT(slotFileSaveAs()), actionCollection());
action->setToolTip(i18n("Save the document as a different file..."));
- action = KStdAction::print(TQT_TQOBJECT(this), TQT_SLOT(slotFilePrint()), actionCollection());
+ action = KStdAction::print(this, TQT_SLOT(slotFilePrint()), actionCollection());
action->setToolTip(i18n("Print the contents of the document..."));
- action = KStdAction::quit(TQT_TQOBJECT(this), TQT_SLOT(slotFileQuit()), actionCollection());
+ action = KStdAction::quit(this, TQT_SLOT(slotFileQuit()), actionCollection());
action->setToolTip(i18n("Quit the application"));
/**************** Import Menu ***************************/
- TQSignalMapper* importMapper = new TQSignalMapper(TQT_TQOBJECT(this));
+ TQSignalMapper* importMapper = new TQSignalMapper(this);
connect(importMapper, TQT_SIGNAL(mapped(int)),
- TQT_TQOBJECT(this), TQT_SLOT(slotFileImport(int)));
+ this, TQT_SLOT(slotFileImport(int)));
TDEActionMenu* importMenu = new TDEActionMenu(actionCollection(), "file_import");
importMenu->setText(i18n("&Import"));
@@ -469,9 +469,9 @@ void MainWindow::initActions() {
/**************** Export Menu ***************************/
- TQSignalMapper* exportMapper = new TQSignalMapper(TQT_TQOBJECT(this));
+ TQSignalMapper* exportMapper = new TQSignalMapper(this);
connect(exportMapper, TQT_SIGNAL(mapped(int)),
- TQT_TQOBJECT(this), TQT_SLOT(slotFileExport(int)));
+ this, TQT_SLOT(slotFileExport(int)));
TDEActionMenu* exportMenu = new TDEActionMenu(actionCollection(), "file_export");
exportMenu->setText(i18n("&Export"));
@@ -575,24 +575,24 @@ void MainWindow::initActions() {
/*************************************************
* Edit menu
*************************************************/
- action = KStdAction::cut(TQT_TQOBJECT(this), TQT_SLOT(slotEditCut()), actionCollection());
+ action = KStdAction::cut(this, TQT_SLOT(slotEditCut()), actionCollection());
action->setToolTip(i18n("Cut the selected text and puts it in the clipboard"));
- action = KStdAction::copy(TQT_TQOBJECT(this), TQT_SLOT(slotEditCopy()), actionCollection());
+ action = KStdAction::copy(this, TQT_SLOT(slotEditCopy()), actionCollection());
action->setToolTip(i18n("Copy the selected text to the clipboard"));
- action = KStdAction::paste(TQT_TQOBJECT(this), TQT_SLOT(slotEditPaste()), actionCollection());
+ action = KStdAction::paste(this, TQT_SLOT(slotEditPaste()), actionCollection());
action->setToolTip(i18n("Paste the clipboard contents"));
- action = KStdAction::selectAll(TQT_TQOBJECT(this), TQT_SLOT(slotEditSelectAll()), actionCollection());
+ action = KStdAction::selectAll(this, TQT_SLOT(slotEditSelectAll()), actionCollection());
action->setToolTip(i18n("Select all the entries in the collection"));
- action = KStdAction::deselect(TQT_TQOBJECT(this), TQT_SLOT(slotEditDeselect()), actionCollection());
+ action = KStdAction::deselect(this, TQT_SLOT(slotEditDeselect()), actionCollection());
action->setToolTip(i18n("Deselect all the entries in the collection"));
action = new TDEAction(i18n("Internet Search..."), TQString::fromLatin1("wizard"), CTRL + Key_M,
- TQT_TQOBJECT(this), TQT_SLOT(slotShowFetchDialog()),
+ this, TQT_SLOT(slotShowFetchDialog()),
actionCollection(), "edit_search_internet");
action->setToolTip(i18n("Search the internet..."));
action = new TDEAction(i18n("Advanced &Filter..."), TQString::fromLatin1("filter"), CTRL + Key_J,
- TQT_TQOBJECT(this), TQT_SLOT(slotShowFilterDialog()),
+ this, TQT_SLOT(slotShowFilterDialog()),
actionCollection(), "filter_dialog");
action->setToolTip(i18n("Filter the collection"));
@@ -600,11 +600,11 @@ void MainWindow::initActions() {
* Collection menu
*************************************************/
m_newEntry = new TDEAction(i18n("&New Entry..."), TQString::fromLatin1("document-new"), CTRL + Key_N,
- TQT_TQOBJECT(this), TQT_SLOT(slotNewEntry()),
+ this, TQT_SLOT(slotNewEntry()),
actionCollection(), "coll_new_entry");
m_newEntry->setToolTip(i18n("Create a new entry"));
m_editEntry = new TDEAction(i18n("&Edit Entry..."), TQString::fromLatin1("edit"), CTRL + Key_E,
- TQT_TQOBJECT(this), TQT_SLOT(slotShowEntryEditor()),
+ this, TQT_SLOT(slotShowEntryEditor()),
actionCollection(), "coll_edit_entry");
m_editEntry->setToolTip(i18n("Edit the selected entries"));
m_copyEntry = new TDEAction(i18n("D&uplicate Entry"), TQString::fromLatin1("edit-copy"), CTRL + Key_Y,
@@ -621,7 +621,7 @@ void MainWindow::initActions() {
m_mergeEntry->setToolTip(i18n("Merge the selected entries"));
m_mergeEntry->setEnabled(false); // gets enabled when more than 1 entry is selected
- action = new TDEAction(i18n("&Generate Reports..."), TQString::fromLatin1("text-x-generic"), 0, TQT_TQOBJECT(this),
+ action = new TDEAction(i18n("&Generate Reports..."), TQString::fromLatin1("text-x-generic"), 0, this,
TQT_SLOT(slotShowReportDialog()),
actionCollection(), "coll_reports");
action->setToolTip(i18n("Generate collection reports"));
@@ -635,26 +635,26 @@ void MainWindow::initActions() {
m_checkInEntry->setToolTip(i18n("Check-in the selected items"));
action = new TDEAction(i18n("&Rename Collection..."), TQString::fromLatin1("edit-clear"), CTRL + Key_R,
- TQT_TQOBJECT(this), TQT_SLOT(slotRenameCollection()),
+ this, TQT_SLOT(slotRenameCollection()),
actionCollection(), "coll_rename_collection");
action->setToolTip(i18n("Rename the collection"));
action = new TDEAction(i18n("Collection &Fields..."), TQString::fromLatin1("edit"), CTRL + Key_U,
- TQT_TQOBJECT(this), TQT_SLOT(slotShowCollectionFieldsDialog()),
+ this, TQT_SLOT(slotShowCollectionFieldsDialog()),
actionCollection(), "coll_fields");
action->setToolTip(i18n("Modify the collection fields"));
action = new TDEAction(i18n("Convert to &Bibliography"), 0,
- TQT_TQOBJECT(this), TQT_SLOT(slotConvertToBibliography()),
+ this, TQT_SLOT(slotConvertToBibliography()),
actionCollection(), "coll_convert_bibliography");
action->setToolTip(i18n("Convert a book collection to a bibliography"));
action->setIconSet(UserIconSet(TQString::fromLatin1("bibtex")));
action = new TDEAction(i18n("String &Macros..."), TQString::fromLatin1("view_text"), 0,
- TQT_TQOBJECT(this), TQT_SLOT(slotShowStringMacroDialog()),
+ this, TQT_SLOT(slotShowStringMacroDialog()),
actionCollection(), "coll_string_macros");
action->setToolTip(i18n("Edit the bibtex string macros"));
- TQSignalMapper* citeMapper = new TQSignalMapper(TQT_TQOBJECT(this));
+ TQSignalMapper* citeMapper = new TQSignalMapper(this);
connect(citeMapper, TQT_SIGNAL(mapped(int)),
- TQT_TQOBJECT(this), TQT_SLOT(slotCiteEntry(int)));
+ this, TQT_SLOT(slotCiteEntry(int)));
action = new TDEAction(actionCollection(), "cite_clipboard");
action->setText(i18n("Copy Bibtex to Cli&pboard"));
@@ -677,7 +677,7 @@ void MainWindow::initActions() {
connect(action, TQT_SIGNAL(activated()), citeMapper, TQT_SLOT(map()));
citeMapper->setMapping(action, Cite::CiteOpenOffice);
- TQSignalMapper* updateMapper = new TQSignalMapper(TQT_TQOBJECT(this), "update_mapper");
+ TQSignalMapper* updateMapper = new TQSignalMapper(this, "update_mapper");
connect(updateMapper, TQT_SIGNAL(mapped(const TQString&)),
Controller::self(), TQT_SLOT(slotUpdateSelectedEntries(const TQString&)));
@@ -697,50 +697,50 @@ void MainWindow::initActions() {
*************************************************/
setStandardToolBarMenuEnabled(true);
createStandardStatusBarAction();
- KStdAction::configureToolbars(TQT_TQOBJECT(this), TQT_SLOT(slotConfigToolbar()), actionCollection());
- KStdAction::keyBindings(TQT_TQOBJECT(this), TQT_SLOT(slotConfigKeys()), actionCollection());
+ KStdAction::configureToolbars(this, TQT_SLOT(slotConfigToolbar()), actionCollection());
+ KStdAction::keyBindings(this, TQT_SLOT(slotConfigKeys()), actionCollection());
m_toggleGroupWidget = new TDEToggleAction(i18n("Show Grou&p View"), 0,
- TQT_TQOBJECT(this), TQT_SLOT(slotToggleGroupWidget()),
+ this, TQT_SLOT(slotToggleGroupWidget()),
actionCollection(), "toggle_group_widget");
m_toggleGroupWidget->setToolTip(i18n("Enable/disable the group view"));
m_toggleGroupWidget->setCheckedState(i18n("Hide Grou&p View"));
m_toggleEntryEditor = new TDEToggleAction(i18n("Show Entry &Editor"), 0,
- TQT_TQOBJECT(this), TQT_SLOT(slotToggleEntryEditor()),
+ this, TQT_SLOT(slotToggleEntryEditor()),
actionCollection(), "toggle_edit_widget");
m_toggleEntryEditor->setToolTip(i18n("Enable/disable the editor"));
m_toggleEntryEditor->setCheckedState(i18n("Hide Entry &Editor"));
m_toggleEntryView = new TDEToggleAction(i18n("Show Entry &View"), 0,
- TQT_TQOBJECT(this), TQT_SLOT(slotToggleEntryView()),
+ this, TQT_SLOT(slotToggleEntryView()),
actionCollection(), "toggle_entry_view");
m_toggleEntryView->setToolTip(i18n("Enable/disable the entry view"));
m_toggleEntryView->setCheckedState(i18n("Hide Entry &View"));
- KStdAction::preferences(TQT_TQOBJECT(this), TQT_SLOT(slotShowConfigDialog()), actionCollection());
+ KStdAction::preferences(this, TQT_SLOT(slotShowConfigDialog()), actionCollection());
/*************************************************
* Help menu
*************************************************/
- KStdAction::tipOfDay(TQT_TQOBJECT(this), TQT_SLOT(slotShowTipOfDay()), actionCollection(), "tipOfDay");
+ KStdAction::tipOfDay(this, TQT_SLOT(slotShowTipOfDay()), actionCollection(), "tipOfDay");
/*************************************************
* Collection Toolbar
*************************************************/
(void) new TDEAction(i18n("Change Grouping"), CTRL + Key_G,
- TQT_TQOBJECT(this), TQT_SLOT(slotGroupLabelActivated()),
+ this, TQT_SLOT(slotGroupLabelActivated()),
actionCollection(), "change_entry_grouping_accel");
- m_entryGrouping = new TDESelectAction(i18n("&Group Selection"), 0, TQT_TQOBJECT(this),
+ m_entryGrouping = new TDESelectAction(i18n("&Group Selection"), 0, this,
TQT_SLOT(slotChangeGrouping()),
actionCollection(), "change_entry_grouping");
m_entryGrouping->setToolTip(i18n("Change the grouping of the collection"));
(void) new TDEAction(i18n("Filter"), CTRL + Key_F,
- TQT_TQOBJECT(this), TQT_SLOT(slotFilterLabelActivated()),
+ this, TQT_SLOT(slotFilterLabelActivated()),
actionCollection(), "quick_filter_accel");
(void) new TDEAction(i18n("Clear Filter"), TQString::fromLatin1("locationbar_erase"), 0,
- TQT_TQOBJECT(this), TQT_SLOT(slotClearFilter()),
+ this, TQT_SLOT(slotClearFilter()),
actionCollection(), "quick_filter_clear");
m_quickFilter = new GUI::LineEdit();
@@ -749,7 +749,7 @@ void MainWindow::initActions() {
m_quickFilter->setFixedWidth(m_quickFilter->fontMetrics().maxWidth()*10);
// want to update every time the filter text changes
connect(m_quickFilter, TQT_SIGNAL(textChanged(const TQString&)),
- TQT_TQOBJECT(this), TQT_SLOT(slotQueueFilter()));
+ this, TQT_SLOT(slotQueueFilter()));
m_quickFilter->installEventFilter(this); // intercept keyEvents
KWidgetAction* wAction = new KWidgetAction(m_quickFilter, i18n("Filter"), 0, 0, 0,
@@ -827,7 +827,7 @@ void MainWindow::initView() {
void MainWindow::initConnections() {
// have to toggle the menu item if the dialog gets closed
connect(m_editDialog, TQT_SIGNAL(finished()),
- TQT_TQOBJECT(this), TQT_SLOT(slotEditDialogFinished()));
+ this, TQT_SLOT(slotEditDialogFinished()));
// let the group view call filters, too
connect(m_groupView, TQT_SIGNAL(signalUpdateFilter(Tellico::FilterPtr)),
@@ -1450,7 +1450,7 @@ void MainWindow::slotConfigToolbar() {
#else
KEditToolbar dlg(actionCollection());
#endif
- connect(&dlg, TQT_SIGNAL(newToolbarConfig()), TQT_TQOBJECT(this), TQT_SLOT(slotNewToolbarConfig()));
+ connect(&dlg, TQT_SIGNAL(newToolbarConfig()), this, TQT_SLOT(slotNewToolbarConfig()));
dlg.exec();
}
@@ -1808,7 +1808,7 @@ void MainWindow::slotHideFilterDialog() {
void MainWindow::slotQueueFilter() {
m_queuedFilters++;
- TQTimer::singleShot(200, TQT_TQOBJECT(this), TQT_SLOT(slotUpdateFilter()));
+ TQTimer::singleShot(200, this, TQT_SLOT(slotUpdateFilter()));
}
void MainWindow::slotUpdateFilter() {
diff --git a/src/newstuff/dialog.cpp b/src/newstuff/dialog.cpp
index 58bfb64..a9b17fc 100644
--- a/src/newstuff/dialog.cpp
+++ b/src/newstuff/dialog.cpp
@@ -97,7 +97,7 @@ private:
Dialog::Dialog(NewStuff::DataType type_, TQWidget* parent_)
: KDialogBase(KDialogBase::Plain, i18n("Get Hot New Stuff"), 0, (KDialogBase::ButtonCode)0, parent_)
- , m_manager(new Manager(TQT_TQOBJECT(this)))
+ , m_manager(new Manager(this))
, m_type(type_)
, m_timer(new TQTimer(this))
, m_cursorSaver(new GUI::CursorSaver())
diff --git a/src/statusbar.cpp b/src/statusbar.cpp
index 70838e3..ffb4def 100644
--- a/src/statusbar.cpp
+++ b/src/statusbar.cpp
@@ -64,7 +64,7 @@ void StatusBar::polish() {
int h = 0;
TQObjectList* list = queryList("TQWidget", 0, false, false);
for(TQObject* o = list->first(); o; o = list->next()) {
- int _h = TQT_TQWIDGET(o)->minimumSizeHint().height();
+ int _h = static_cast<TQWidget*>(o)->minimumSizeHint().height();
if(_h > h) {
h = _h;
}
@@ -73,7 +73,7 @@ void StatusBar::polish() {
h -= 4; // hint from amarok, it's too big usually
for(TQObject* o = list->first(); o; o = list->next()) {
- TQT_TQWIDGET(o)->setFixedHeight(h);
+ static_cast<TQWidget*>(o)->setFixedHeight(h);
}
delete list;