summaryrefslogtreecommitdiffstats
path: root/src/borrower.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/borrower.h')
-rw-r--r--src/borrower.h36
1 files changed, 18 insertions, 18 deletions
diff --git a/src/borrower.h b/src/borrower.h
index 049badf..7b6e051 100644
--- a/src/borrower.h
+++ b/src/borrower.h
@@ -18,7 +18,7 @@
#include <ksharedptr.h>
-#include <qdatetime.h>
+#include <tqdatetime.h>
namespace Tellico {
namespace Data {
@@ -26,24 +26,24 @@ namespace Tellico {
class Loan : public KShared {
public:
- Loan(Data::EntryPtr entry, const QDate& loanDate, const QDate& dueDate, const QString& note);
+ Loan(Data::EntryPtr entry, const TQDate& loanDate, const TQDate& dueDate, const TQString& note);
Loan(const Loan& other);
Data::BorrowerPtr borrower() const;
void setBorrower(Data::BorrowerPtr b) { m_borrower = b; }
- const QString& uid() const { return m_uid; }
- void setUID(const QString& uid) { m_uid = uid; }
+ const TQString& uid() const { return m_uid; }
+ void setUID(const TQString& uid) { m_uid = uid; }
Data::EntryPtr entry() const;
- const QDate& loanDate() const { return m_loanDate; }
+ const TQDate& loanDate() const { return m_loanDate; }
- const QDate& dueDate() const { return m_dueDate; }
- void setDueDate(const QDate& date) { m_dueDate = date; }
+ const TQDate& dueDate() const { return m_dueDate; }
+ void setDueDate(const TQDate& date) { m_dueDate = date; }
- const QString& note() const { return m_note; }
- void setNote(const QString& text) { m_note = text; }
+ const TQString& note() const { return m_note; }
+ void setNote(const TQString& text) { m_note = text; }
bool inCalendar() const { return m_inCalendar; }
void setInCalendar(bool inCalendar) { m_inCalendar = inCalendar; }
@@ -51,12 +51,12 @@ public:
private:
Loan& operator=(const Loan&);
- QString m_uid;
+ TQString m_uid;
Data::BorrowerPtr m_borrower;
Data::EntryPtr m_entry;
- QDate m_loanDate;
- QDate m_dueDate;
- QString m_note;
+ TQDate m_loanDate;
+ TQDate m_dueDate;
+ TQString m_note;
bool m_inCalendar;
};
@@ -70,12 +70,12 @@ typedef LoanVec::Iterator LoanVecIt;
class Borrower : public KShared {
public:
- Borrower(const QString& name, const QString& uid);
+ Borrower(const TQString& name, const TQString& uid);
Borrower(const Borrower& other);
Borrower& operator=(const Borrower& other);
- const QString& uid() const { return m_uid; }
- const QString& name() const { return m_name; }
+ const TQString& uid() const { return m_uid; }
+ const TQString& name() const { return m_name; }
const LoanVec& loans() const { return m_loans; }
bool isEmpty() const { return m_loans.isEmpty(); }
int count() const { return m_loans.count(); }
@@ -85,8 +85,8 @@ public:
bool removeLoan(Data::LoanPtr loan);
private:
- QString m_name;
- QString m_uid; // uid used by KABC
+ TQString m_name;
+ TQString m_uid; // uid used by KABC
LoanVec m_loans;
};