diff options
| author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-18 18:15:24 -0600 |
|---|---|---|
| committer | Slávek Banko <slavek.banko@axis.cz> | 2012-06-21 19:34:09 +0200 |
| commit | f2a0dc78d5bf54ebf33a9c490d05b6d36046f9ef (patch) | |
| tree | 8f6523aa165219382c6bb220a468b9874587b3b2 /src/controller.cpp | |
| parent | 4f1d3929919cbac95617430088f33d44cbfb756a (diff) | |
| download | tellico-f2a0dc78d5bf54ebf33a9c490d05b6d36046f9ef.tar.gz tellico-f2a0dc78d5bf54ebf33a9c490d05b6d36046f9ef.zip | |
Rename old tq methods that no longer need a unique name
(cherry picked from commit 8d9b90ca794ffabf151719c2edebe9278a2d3f36)
Diffstat (limited to 'src/controller.cpp')
| -rw-r--r-- | src/controller.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/controller.cpp b/src/controller.cpp index 948d7c0..9e31c6d 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::tqfromLatin1("DeleteEntry"); + TQString dontAsk = TQString::fromLatin1("DeleteEntry"); int ret = KMessageBox::warningContinueCancel(Kernel::self()->widget(), str, i18n("Delete Entry"), - KGuiItem(i18n("&Delete"), TQString::tqfromLatin1("editdelete")), dontAsk); + KGuiItem(i18n("&Delete"), TQString::fromLatin1("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::tqfromLatin1("DeleteMultipleBooks"); + TQString dontAsk = TQString::fromLatin1("DeleteMultipleBooks"); int ret = KMessageBox::warningContinueCancelList(Kernel::self()->widget(), str, names, i18n("Delete Multiple Entries"), - KGuiItem(i18n("&Delete"), TQString::tqfromLatin1("editdelete")), dontAsk); + KGuiItem(i18n("&Delete"), TQString::fromLatin1("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::tqfromLatin1("empty_selection"), + m_mainWindow->stateChanged(TQString::fromLatin1("empty_selection"), emptySelection ? KXMLGUIClient::StateNoReverse : KXMLGUIClient::StateReverse); for(TQPtrListIterator<KAction> 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::tqfromLatin1("loaned")) == Latin1Literal("true")) { + if(entry->field(TQString::fromLatin1("loaned")) == Latin1Literal("true")) { return true; } } |
