From 84f5a315c3429b47a7eff15e626e2efdbe4f6e5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Tue, 8 Oct 2013 00:13:25 +0200 Subject: Initial TQt conversion --- src/historypage.cpp | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'src/historypage.cpp') diff --git a/src/historypage.cpp b/src/historypage.cpp index eabd6b6..5095d1c 100644 --- a/src/historypage.cpp +++ b/src/historypage.cpp @@ -36,14 +36,14 @@ int HistoryPage::s_nMaxPageID = 0; * @param pParent The parent widget * @param szName The widget's name */ -HistoryPage::HistoryPage(QWidget* pParent, const char* szName) : +HistoryPage::HistoryPage(TQWidget* pParent, const char* szName) : QueryPageBase(pParent, szName), m_nPageID(++s_nMaxPageID) { m_pView = new HistoryView(this); - connect(m_pView, SIGNAL(lineRequested(const QString&, uint)), this, - SIGNAL(lineRequested(const QString&, uint))); + connect(m_pView, SIGNAL(lineRequested(const TQString&, uint)), this, + SIGNAL(lineRequested(const TQString&, uint))); // Set colours and font applyPrefs(); @@ -64,8 +64,8 @@ HistoryPage::~HistoryPage() * @param nLine The line number * @param sText The text of the file at the given line */ -void HistoryPage::addRecord(const QString& sFile, uint nLine, - const QString& sText) +void HistoryPage::addRecord(const TQString& sFile, uint nLine, + const TQString& sText) { HistoryItem* pItem, * pNextItem; @@ -86,7 +86,7 @@ void HistoryPage::addRecord(const QString& sFile, uint nLine, } // Create the new item at the top of the list - m_pView->addRecord("", sFile, QString::number(nLine), sText, NULL); + m_pView->addRecord("", sFile, TQString::number(nLine), sText, NULL); } /** @@ -96,8 +96,8 @@ void HistoryPage::addRecord(const QString& sFile, uint nLine, * @param sLine The line number * @param sText The contents of the line */ -void HistoryPage::addRecord(const QString&, const QString& sFile, - const QString& sLine, const QString& sText) +void HistoryPage::addRecord(const TQString&, const TQString& sFile, + const TQString& sLine, const TQString& sText) { m_pView->addRecord("", sFile, sLine, sText, NULL); } @@ -106,19 +106,19 @@ void HistoryPage::addRecord(const QString&, const QString& sFile, * Creates a tab caption for this page, based on the unique page ID. * @param bBrief true to use brief caption names, false otherwise */ -QString HistoryPage::getCaption(bool bBrief) const +TQString HistoryPage::getCaption(bool bBrief) const { - return (bBrief ? QString(i18n("HIS ")) : QString(i18n("History "))) + - QString::number(m_nPageID); + return (bBrief ? TQString(i18n("HIS ")) : TQString(i18n("History "))) + + TQString::number(m_nPageID); } /** * Creates a unique file name for saving the contents of the history page. * @return The unique file name to use */ -QString HistoryPage::getFileName(const QString&) const +TQString HistoryPage::getFileName(const TQString&) const { - return QString("History_") + QString::number(m_nPageID); + return TQString("History_") + TQString::number(m_nPageID); } #include "historypage.moc" -- cgit v1.2.1