From 2781e27b871150395a5a82e221684108641002b2 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Fri, 16 Dec 2011 09:57:51 -0600 Subject: Revert "Rename a number of old tq methods that are no longer tq specific" This reverts commit 031454e56009d576589c28757f6c6fcf4884095e. --- src/controller.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/controller.cpp') diff --git a/src/controller.cpp b/src/controller.cpp index 9e31c6d..948d7c0 100644 --- a/src/controller.cpp +++ b/src/controller.cpp @@ -430,9 +430,9 @@ void Controller::slotDeleteSelectedEntries() { // confirm delete if(m_selectedEntries.count() == 1) { TQString str = i18n("Do you really want to delete this entry?"); - TQString dontAsk = TQString::fromLatin1("DeleteEntry"); + TQString dontAsk = TQString::tqfromLatin1("DeleteEntry"); int ret = KMessageBox::warningContinueCancel(Kernel::self()->widget(), str, i18n("Delete Entry"), - KGuiItem(i18n("&Delete"), TQString::fromLatin1("editdelete")), dontAsk); + KGuiItem(i18n("&Delete"), TQString::tqfromLatin1("editdelete")), dontAsk); if(ret != KMessageBox::Continue) { return; } @@ -443,10 +443,10 @@ void Controller::slotDeleteSelectedEntries() { } TQString str = i18n("Do you really want to delete these entries?"); // historically called DeleteMultipleBooks, don't change - TQString dontAsk = TQString::fromLatin1("DeleteMultipleBooks"); + TQString dontAsk = TQString::tqfromLatin1("DeleteMultipleBooks"); int ret = KMessageBox::warningContinueCancelList(Kernel::self()->widget(), str, names, i18n("Delete Multiple Entries"), - KGuiItem(i18n("&Delete"), TQString::fromLatin1("editdelete")), dontAsk); + KGuiItem(i18n("&Delete"), TQString::tqfromLatin1("editdelete")), dontAsk); if(ret != KMessageBox::Continue) { return; } @@ -607,7 +607,7 @@ void Controller::plugUpdateMenu(TQPopupMenu* popup_) { void Controller::updateActions() const { bool emptySelection = m_selectedEntries.isEmpty(); - m_mainWindow->stateChanged(TQString::fromLatin1("empty_selection"), + m_mainWindow->stateChanged(TQString::tqfromLatin1("empty_selection"), emptySelection ? KXMLGUIClient::StateNoReverse : KXMLGUIClient::StateReverse); for(TQPtrListIterator it(m_mainWindow->m_fetchActions); it.current(); ++it) { it.current()->setEnabled(!emptySelection); @@ -748,7 +748,7 @@ void Controller::hideTabs() const { inline bool Controller::canCheckIn() const { for(Data::EntryVec::ConstIterator entry = m_selectedEntries.begin(); entry != m_selectedEntries.end(); ++entry) { - if(entry->field(TQString::fromLatin1("loaned")) == Latin1Literal("true")) { + if(entry->field(TQString::tqfromLatin1("loaned")) == Latin1Literal("true")) { return true; } } -- cgit v1.2.1