summaryrefslogtreecommitdiffstats
path: root/src/loandialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/loandialog.cpp')
-rw-r--r--src/loandialog.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/loandialog.cpp b/src/loandialog.cpp
index 5a74a14..ba7a16e 100644
--- a/src/loandialog.cpp
+++ b/src/loandialog.cpp
@@ -28,7 +28,7 @@
#include <kiconloader.h>
#include <kabc/stdaddressbook.h>
-#include <layout.h>
+#include <tqlayout.h>
#include <tqhbox.h>
#include <tqlabel.h>
#include <tqcheckbox.h>
@@ -69,23 +69,23 @@ void LoanDialog::init() {
TQHBox* hbox = new TQHBox(mainWidget);
hbox->setSpacing(KDialog::spacingHint());
TQLabel* pixLabel = new TQLabel(hbox);
- pixLabel->setPixmap(DesktopIcon(TQString::fromLatin1("tellico"), 64));
- pixLabel->setAlignment(TQt::AlignAuto | TQt::AlignTop);
+ pixLabel->setPixmap(DesktopIcon(TQString::tqfromLatin1("tellico"), 64));
+ pixLabel->tqsetAlignment(TQt::AlignAuto | TQt::AlignTop);
hbox->setStretchFactor(pixLabel, 0);
- TQString entryString = TQString::fromLatin1("<qt><p>");
+ TQString entryString = TQString::tqfromLatin1("<qt><p>");
if(m_mode == Add) {
entryString += i18n("The following items are being checked out:");
- entryString += TQString::fromLatin1("</p><ol>");
+ entryString += TQString::tqfromLatin1("</p><ol>");
for(Data::EntryVec::ConstIterator entry = m_entries.constBegin(); entry != m_entries.constEnd(); ++entry) {
- entryString += TQString::fromLatin1("<li>") + entry->title() + TQString::fromLatin1("</li>");
+ entryString += TQString::tqfromLatin1("<li>") + entry->title() + TQString::tqfromLatin1("</li>");
}
} else {
entryString += i18n("The following item is on-loan:");
- entryString += TQString::fromLatin1("</p><ol>");
- entryString += TQString::fromLatin1("<li>") + m_loan->entry()->title() + TQString::fromLatin1("</li>");
+ entryString += TQString::tqfromLatin1("</p><ol>");
+ entryString += TQString::tqfromLatin1("<li>") + m_loan->entry()->title() + TQString::tqfromLatin1("</li>");
}
- entryString += TQString::fromLatin1("</ol></qt>");
+ entryString += TQString::tqfromLatin1("</ol></qt>");
GUI::RichTextLabel* entryLabel = new GUI::RichTextLabel(entryString, hbox);
hbox->setStretchFactor(entryLabel, 1);
@@ -102,7 +102,7 @@ void LoanDialog::init() {
connect(m_borrowerEdit, TQT_SIGNAL(textChanged(const TQString&)),
TQT_SLOT(slotBorrowerNameChanged(const TQString&)));
actionButton(Ok)->setEnabled(false); // disable until a name is entered
- KPushButton* pb = new KPushButton(SmallIconSet(TQString::fromLatin1("kaddressbook")), TQString(), hbox);
+ KPushButton* pb = new KPushButton(SmallIconSet(TQString::tqfromLatin1("kaddressbook")), TQString(), hbox);
connect(pb, TQT_SIGNAL(clicked()), TQT_SLOT(slotGetBorrower()));
TQString whats = i18n("Enter the name of the person borrowing the items from you. "
"Clicking the button allows you to select from your address book.");
@@ -117,7 +117,7 @@ void LoanDialog::init() {
l = new TQLabel(i18n("&Loan date:"), mainWidget);
topLayout->addWidget(l, 2, 0);
m_loanDate = new GUI::DateWidget(mainWidget);
- m_loanDate->setDate(TQDate::currentDate());
+ m_loanDate->setDate(TQDate::tqcurrentDate());
l->setBuddy(m_loanDate);
topLayout->addWidget(m_loanDate, 2, 1);
whats = i18n("The check-out date is the date that you lent the items. By default, "
@@ -158,7 +158,7 @@ void LoanDialog::init() {
"to your active calendar, which can be viewed using KOrganizer. "
"The box is only active if you set a due date."));
- resize(configDialogSize(TQString::fromLatin1("Loan Dialog Options")));
+ resize(configDialogSize(TQString::tqfromLatin1("Loan Dialog Options")));
KABC::AddressBook* abook = KABC::StdAddressBook::self(true);
connect(abook, TQT_SIGNAL(addressBookChanged(AddressBook*)),
@@ -169,7 +169,7 @@ void LoanDialog::init() {
}
LoanDialog::~LoanDialog() {
- saveDialogSize(TQString::fromLatin1("Loan Dialog Options"));
+ saveDialogSize(TQString::tqfromLatin1("Loan Dialog Options"));
}
void LoanDialog::slotBorrowerNameChanged(const TQString& str_) {