summaryrefslogtreecommitdiffstats
path: root/src/historypage.cpp
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2013-10-08 00:13:25 +0200
committerSlávek Banko <slavek.banko@axis.cz>2013-10-08 05:14:53 +0200
commit84f5a315c3429b47a7eff15e626e2efdbe4f6e5e (patch)
tree770861aa9033e1dc6c5168358194ff85b32dd429 /src/historypage.cpp
parent57d8bb3d12aed373eee08915f0ff19f5233aabe3 (diff)
downloadkscope-84f5a315c3429b47a7eff15e626e2efdbe4f6e5e.tar.gz
kscope-84f5a315c3429b47a7eff15e626e2efdbe4f6e5e.zip
Initial TQt conversion
Diffstat (limited to 'src/historypage.cpp')
-rw-r--r--src/historypage.cpp26
1 files changed, 13 insertions, 13 deletions
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"