diff options
| author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-18 18:15:24 -0600 |
|---|---|---|
| committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-18 18:15:24 -0600 |
| commit | 8d9b90ca794ffabf151719c2edebe9278a2d3f36 (patch) | |
| tree | 55f446de8694c45be6bf0f1178920c2b92b0c9f5 /src/controller.cpp | |
| parent | 2781e27b871150395a5a82e221684108641002b2 (diff) | |
| download | tellico-8d9b90ca794ffabf151719c2edebe9278a2d3f36.tar.gz tellico-8d9b90ca794ffabf151719c2edebe9278a2d3f36.zip | |
Rename old tq methods that no longer need a unique name
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; } } |
