diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-12 01:36:19 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-12 01:36:19 +0000 |
commit | 99a2774ca6f1cab334de5d43fe36fc44ae889a4c (patch) | |
tree | eff34cf0762227f6baf2a93e8fef48d4bed2651c /cervisia/historydlg.cpp | |
parent | 1c104292188541106338d4940b0f04beeb4301a0 (diff) | |
download | tdesdk-99a2774ca6f1cab334de5d43fe36fc44ae889a4c.tar.gz tdesdk-99a2774ca6f1cab334de5d43fe36fc44ae889a4c.zip |
TQt4 convert kdesdk
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdesdk@1236185 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'cervisia/historydlg.cpp')
-rw-r--r-- | cervisia/historydlg.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/cervisia/historydlg.cpp b/cervisia/historydlg.cpp index 4eb9cca5..cb519b0b 100644 --- a/cervisia/historydlg.cpp +++ b/cervisia/historydlg.cpp @@ -40,7 +40,7 @@ static TQDateTime parseDate(const TQString& date, const TQString& _time, const T { // cvs history only prints hh:mm but parseDateISO8601 needs hh:mm:ss TQString time(_time); - if( time.contains(':') == 1 ) + if( time.tqcontains(':') == 1 ) time += ":00"; TQDateTime dateTime; @@ -50,14 +50,14 @@ static TQDateTime parseDate(const TQString& date, const TQString& _time, const T } -class HistoryItem : public QListViewItem +class HistoryItem : public TQListViewItem { public: enum { Date, Event, Author, Revision, File, Path }; - HistoryItem(TQListView *parent, const TQDateTime& date) - : TQListViewItem(parent), m_date(date) + HistoryItem(TQListView *tqparent, const TQDateTime& date) + : TQListViewItem(tqparent), m_date(date) {} virtual int compare(TQListViewItem* i, int col, bool) const; @@ -138,14 +138,14 @@ bool HistoryItem::isOther() } -HistoryDialog::HistoryDialog(KConfig& cfg, TQWidget *parent, const char *name) - : KDialogBase(parent, name, false, TQString::null, +HistoryDialog::HistoryDialog(KConfig& cfg, TQWidget *tqparent, const char *name) + : KDialogBase(tqparent, name, false, TQString(), Close | Help, ButtonCode(0), true) , partConfig(cfg) { TQFrame* mainWidget = makeMainWidget(); - TQBoxLayout *layout = new TQVBoxLayout(mainWidget, 0, spacingHint()); + TQBoxLayout *tqlayout = new TQVBoxLayout(mainWidget, 0, spacingHint()); listview = new KListView(mainWidget); listview->setSelectionMode(TQListView::NoSelection); @@ -159,7 +159,7 @@ HistoryDialog::HistoryDialog(KConfig& cfg, TQWidget *parent, const char *name) listview->addColumn(i18n("File")); listview->addColumn(i18n("Repo Path")); listview->setFocus(); - layout->addWidget(listview, 1); + tqlayout->addWidget(listview, 1); commit_box = new TQCheckBox(i18n("Show c&ommit events"), mainWidget); commit_box->setChecked(true); @@ -215,7 +215,7 @@ HistoryDialog::HistoryDialog(KConfig& cfg, TQWidget *parent, const char *name) connect( dirname_edit, TQT_SIGNAL(returnPressed()), this, TQT_SLOT(choiceChanged()) ); - TQGridLayout *grid = new TQGridLayout(layout); + TQGridLayout *grid = new TQGridLayout(tqlayout); grid->setColStretch(0, 1); grid->setColStretch(1, 0); grid->setColStretch(2, 4); @@ -237,7 +237,7 @@ HistoryDialog::HistoryDialog(KConfig& cfg, TQWidget *parent, const char *name) setHelp("browsinghistory"); - setWFlags(Qt::WDestructiveClose | getWFlags()); + setWFlags(TQt::WDestructiveClose | getWFlags()); TQSize size = configDialogSize(partConfig, "HistoryDialog"); resize(size); @@ -246,7 +246,7 @@ HistoryDialog::HistoryDialog(KConfig& cfg, TQWidget *parent, const char *name) for (int i = 0; i < listview->columns(); ++i) listview->setColumnWidthMode(i, TQListView::Manual); - listview->restoreLayout(&partConfig, TQString::fromLatin1("HistoryListView")); + listview->restoreLayout(&partConfig, TQString::tqfromLatin1("HistoryListView")); } @@ -254,7 +254,7 @@ HistoryDialog::~HistoryDialog() { saveDialogSize(partConfig, "HistoryDialog"); - listview->saveLayout(&partConfig, TQString::fromLatin1("HistoryListView")); + listview->saveLayout(&partConfig, TQString::tqfromLatin1("HistoryListView")); } |