Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/10/head
Michele Calgaro 4 months ago
parent fc1564c30b
commit e47baa8f12
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -90,11 +90,11 @@ BookmarksDlg::BookmarksDlg(const Bookmarks& bms, TQWidget* parent,
updateBookmarks(); updateBookmarks();
// signals and slots connections // signals and slots connections
connect(buttonOk, TQT_SIGNAL(clicked()), this, TQT_SLOT(accept())); connect(buttonOk, TQ_SIGNAL(clicked()), this, TQ_SLOT(accept()));
connect(buttonCancel, TQT_SIGNAL(clicked()), this, TQT_SLOT(reject())); connect(buttonCancel, TQ_SIGNAL(clicked()), this, TQ_SLOT(reject()));
connect(addButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(addBookmark())); connect(addButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(addBookmark()));
connect(deleteButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(deleteBookmark())); connect(deleteButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(deleteBookmark()));
connect(bookmarksTable, TQT_SIGNAL(valueChanged(int, int)), this, TQT_SLOT(valueChanged(int, int))); connect(bookmarksTable, TQ_SIGNAL(valueChanged(int, int)), this, TQ_SLOT(valueChanged(int, int)));
} }
/* /*

@ -99,19 +99,19 @@ BookReader::BookReader()
// automatically save settings if changed: window size, toolbar // automatically save settings if changed: window size, toolbar
// position, icon size, etc. Also to add actions for the statusbar // position, icon size, etc. Also to add actions for the statusbar
// toolbar, and keybindings if necessary. // toolbar, and keybindings if necessary.
KStdAction::keyBindings(guiFactory(), TQT_SLOT(configureShortcuts()), actionCollection()); KStdAction::keyBindings(guiFactory(), TQ_SLOT(configureShortcuts()), actionCollection());
createStandardStatusBarAction(); createStandardStatusBarAction();
setStandardToolBarMenuEnabled( true ); setStandardToolBarMenuEnabled( true );
KStdAction::configureToolbars(this, TQT_SLOT(configureToolbars() ), actionCollection()); KStdAction::configureToolbars(this, TQ_SLOT(configureToolbars() ), actionCollection());
createGUI(TQString(), false); createGUI(TQString(), false);
initialGeometrySet(); initialGeometrySet();
setAutoSaveSettings(); setAutoSaveSettings();
// allow the view to change the statusbar and caption // allow the view to change the statusbar and caption
connect(m_view, TQT_SIGNAL(signalChangeStatusbar(const TQString&)), connect(m_view, TQ_SIGNAL(signalChangeStatusbar(const TQString&)),
this, TQT_SLOT(changeStatusbar(const TQString&))); this, TQ_SLOT(changeStatusbar(const TQString&)));
connect(m_view, TQT_SIGNAL(signalChangeCaption(const TQString&)), connect(m_view, TQ_SIGNAL(signalChangeCaption(const TQString&)),
this, TQT_SLOT(changeCaption(const TQString&))); this, TQ_SLOT(changeCaption(const TQString&)));
readSettings(); readSettings();
m_splash->finish(m_view); m_splash->finish(m_view);
@ -141,29 +141,29 @@ void BookReader::load(const KURL& url)
void BookReader::setupActions() void BookReader::setupActions()
{ {
// KStdAction::openNew(this, TQT_SLOT(fileNew()), actionCollection()); // KStdAction::openNew(this, TQ_SLOT(fileNew()), actionCollection());
KStdAction::open(this, TQT_SLOT(fileOpen()), actionCollection()); KStdAction::open(this, TQ_SLOT(fileOpen()), actionCollection());
recentFilesAction = KStdAction::openRecent(this, TQT_SLOT(slotURLSelected(const KURL &)), recentFilesAction = KStdAction::openRecent(this, TQ_SLOT(slotURLSelected(const KURL &)),
actionCollection()); actionCollection());
KStdAction::save(this, TQT_SLOT(fileSave()), actionCollection()); KStdAction::save(this, TQ_SLOT(fileSave()), actionCollection());
KStdAction::saveAs(this, TQT_SLOT(fileSaveAs()), actionCollection()); KStdAction::saveAs(this, TQ_SLOT(fileSaveAs()), actionCollection());
KStdAction::print(this, TQT_SLOT(filePrint()), actionCollection()); KStdAction::print(this, TQ_SLOT(filePrint()), actionCollection());
KStdAction::quit(kapp, TQT_SLOT(quit()), actionCollection()); KStdAction::quit(kapp, TQ_SLOT(quit()), actionCollection());
KStdAction::firstPage(this, TQT_SLOT(gotoFirstPage()), actionCollection()); KStdAction::firstPage(this, TQ_SLOT(gotoFirstPage()), actionCollection());
KStdAction::prior(this, TQT_SLOT(prevPage()), actionCollection()); KStdAction::prior(this, TQ_SLOT(prevPage()), actionCollection());
KStdAction::next(this, TQT_SLOT(nextPage()), actionCollection()); KStdAction::next(this, TQ_SLOT(nextPage()), actionCollection());
KStdAction::lastPage(this, TQT_SLOT(gotoLastPage()), actionCollection()); KStdAction::lastPage(this, TQ_SLOT(gotoLastPage()), actionCollection());
KStdAction::addBookmark(this, TQT_SLOT(addBookmark()), actionCollection()); KStdAction::addBookmark(this, TQ_SLOT(addBookmark()), actionCollection());
KStdAction::editBookmarks(this, TQT_SLOT(editBookmarks()), actionCollection()); KStdAction::editBookmarks(this, TQ_SLOT(editBookmarks()), actionCollection());
KStdAction::gotoPage(this, TQT_SLOT(gotoPage()), actionCollection()); KStdAction::gotoPage(this, TQ_SLOT(gotoPage()), actionCollection());
m_fullScreenAction = KStdAction::fullScreen(this, TQT_SLOT(fullScreen()), m_fullScreenAction = KStdAction::fullScreen(this, TQ_SLOT(fullScreen()),
actionCollection(), this); actionCollection(), this);
KStdAction::preferences(this, TQT_SLOT(optionsPreferences()), actionCollection()); KStdAction::preferences(this, TQ_SLOT(optionsPreferences()), actionCollection());
TDEConfig *config = kapp->config(); TDEConfig *config = kapp->config();
recentFilesAction->loadEntries(config); recentFilesAction->loadEntries(config);
@ -172,7 +172,7 @@ void BookReader::setupActions()
// how to insert a custom menu and menu item // how to insert a custom menu and menu item
/* /*
TDEAction *custom = new TDEAction( i18n( "Cus&tom Menuitem" ), 0, TDEAction *custom = new TDEAction( i18n( "Cus&tom Menuitem" ), 0,
this, TQT_SLOT( optionsPreferences() ), this, TQ_SLOT( optionsPreferences() ),
actionCollection(), "custom_action" );*/ actionCollection(), "custom_action" );*/
} }
@ -313,7 +313,7 @@ void BookReader::optionsPreferences()
general->kcfg_DefaultEncoding->setCurrentItem(i); general->kcfg_DefaultEncoding->setCurrentItem(i);
dialog->addPage(general, i18n("General"), "settings"); dialog->addPage(general, i18n("General"), "settings");
connect(dialog, TQT_SIGNAL(settingsChanged()), this, TQT_SLOT(loadSettings())); connect(dialog, TQ_SIGNAL(settingsChanged()), this, TQ_SLOT(loadSettings()));
dialog->show(); dialog->show();
} }
@ -390,7 +390,7 @@ void BookReader::loadLastUrl()
TDEConfig * config = kapp->config(); TDEConfig * config = kapp->config();
TQSize size = config->readSizeEntry("size"); TQSize size = config->readSizeEntry("size");
lastURL = config->readEntry("lastURL"); lastURL = config->readEntry("lastURL");
connect(m_view, TQT_SIGNAL(loadingFinished()), this, TQT_SLOT(loadLastURLSetPage())); connect(m_view, TQ_SIGNAL(loadingFinished()), this, TQ_SLOT(loadLastURLSetPage()));
if (!lastURL.isEmpty()) if (!lastURL.isEmpty())
{ {
// kdDebug() << "loadLastUrl: initial size = " << m_view->size() << endl; // kdDebug() << "loadLastUrl: initial size = " << m_view->size() << endl;
@ -466,12 +466,12 @@ void BookReader::updateBookmarks()
const Bookmarks & bms = m_view->bookmarks(); const Bookmarks & bms = m_view->bookmarks();
TQSignalMapper *bookmarkMapper = new TQSignalMapper(this); TQSignalMapper *bookmarkMapper = new TQSignalMapper(this);
connect(bookmarkMapper, TQT_SIGNAL(mapped(int)), this, TQT_SLOT(gotoBookmark(int))); connect(bookmarkMapper, TQ_SIGNAL(mapped(int)), this, TQ_SLOT(gotoBookmark(int)));
for (Bookmarks::size_type i = 0; i < 9 && i < bms.size(); ++i) for (Bookmarks::size_type i = 0; i < 9 && i < bms.size(); ++i)
{ {
const Bookmark & bm = bms[i]; const Bookmark & bm = bms[i];
TDEAction * action = new TDEAction(bm.name(), ALT+Key_1 + i); TDEAction * action = new TDEAction(bm.name(), ALT+Key_1 + i);
connect(action, TQT_SIGNAL(activated()), bookmarkMapper, TQT_SLOT(map())); connect(action, TQ_SIGNAL(activated()), bookmarkMapper, TQ_SLOT(map()));
m_bookmarkActions.append(action); m_bookmarkActions.append(action);
bookmarkMapper->setMapping(action, i); bookmarkMapper->setMapping(action, i);
} }

@ -64,8 +64,8 @@ BookWidget::BookWidget(TQWidget *parent, const char *name)
setWFlags(TQt::WNoAutoErase); setWFlags(TQt::WNoAutoErase);
setFocusPolicy(TQWidget::StrongFocus); setFocusPolicy(TQWidget::StrongFocus);
connect(&m_timer, TQT_SIGNAL(timeout()), this, TQT_SLOT(loadLine())); connect(&m_timer, TQ_SIGNAL(timeout()), this, TQ_SLOT(loadLine()));
connect(m_renderer.get(), TQT_SIGNAL(renderingFinished()), this, TQT_SLOT(renderingFinished())); connect(m_renderer.get(), TQ_SIGNAL(renderingFinished()), this, TQ_SLOT(renderingFinished()));
} }
@ -92,7 +92,7 @@ void BookWidget::openURL(const KURL & url)
m_progressDlg->setLabel("Loading file " + m_url.path()); m_progressDlg->setLabel("Loading file " + m_url.path());
m_progressDlg->setAllowCancel(true); m_progressDlg->setAllowCancel(true);
m_progressDlg->progressBar()->setTotalSteps(0); m_progressDlg->progressBar()->setTotalSteps(0);
connect(m_progressDlg.get(), TQT_SIGNAL(cancelClicked()), TQT_SLOT(cancelLoading())); connect(m_progressDlg.get(), TQ_SIGNAL(cancelClicked()), TQ_SLOT(cancelLoading()));
KDialog::centerOnScreen(m_progressDlg.get()); KDialog::centerOnScreen(m_progressDlg.get());
m_progressDlg->show(); m_progressDlg->show();
//start timer for processing gui events //start timer for processing gui events

@ -33,7 +33,7 @@ Renderer::Renderer():
m_curParagraph(0), m_curParagraph(0),
m_isRendering(false) m_isRendering(false)
{ {
connect(&m_timer, TQT_SIGNAL(timeout()), this, TQT_SLOT(timeout())); connect(&m_timer, TQ_SIGNAL(timeout()), this, TQ_SLOT(timeout()));
} }

Loading…
Cancel
Save