summaryrefslogtreecommitdiffstats
path: root/src/controller.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/controller.cpp')
-rw-r--r--src/controller.cpp12
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;
}
}