summaryrefslogtreecommitdiffstats
path: root/vcs/subversion/svn_blamewidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'vcs/subversion/svn_blamewidget.cpp')
-rw-r--r--vcs/subversion/svn_blamewidget.cpp64
1 files changed, 32 insertions, 32 deletions
diff --git a/vcs/subversion/svn_blamewidget.cpp b/vcs/subversion/svn_blamewidget.cpp
index 5d186177..b4095389 100644
--- a/vcs/subversion/svn_blamewidget.cpp
+++ b/vcs/subversion/svn_blamewidget.cpp
@@ -14,23 +14,23 @@
#include "svn_blamewidget.h"
#include "subversion_widget.h"
-#include <qmap.h>
-#include <qlistview.h>
-#include <qlayout.h>
-#include <qpushbutton.h>
-#include <qstringlist.h>
-#include <qfont.h>
+#include <tqmap.h>
+#include <tqlistview.h>
+#include <tqlayout.h>
+#include <tqpushbutton.h>
+#include <tqstringlist.h>
+#include <tqfont.h>
#include <klocale.h>
#include <kmessagebox.h>
-SvnBlameWidget::SvnBlameWidget( QWidget *parent, const char* name, bool modal, WFlags f )
- :QWidget( parent )
+SvnBlameWidget::SvnBlameWidget( TQWidget *parent, const char* name, bool modal, WFlags f )
+ :TQWidget( parent )
{
- m_layout = new QVBoxLayout( this, 1, 1 );
+ m_layout = new TQVBoxLayout( this, 1, 1 );
m_layout->setMargin(1);
- m_listView = new QListView( this );
+ m_listView = new TQListView( this );
outView()->setAllColumnsShowFocus( TRUE );
outView()->addColumn( i18n("Line") );
outView()->addColumn( i18n("Rev") );
@@ -43,7 +43,7 @@ SvnBlameWidget::SvnBlameWidget( QWidget *parent, const char* name, bool modal, W
SvnBlameWidget::~SvnBlameWidget()
{}
-void SvnBlameWidget::copyBlameData( QValueList<SvnBlameHolder> *blamelist )
+void SvnBlameWidget::copyBlameData( TQValueList<SvnBlameHolder> *blamelist )
{
m_blamelist = *blamelist;
}
@@ -53,66 +53,66 @@ void SvnBlameWidget::show()
outView()->clear();
outView()->setSortColumn(0);
- QFont f = outView()->font();
+ TQFont f = outView()->font();
f.setFixedPitch( true );
outView()->setFont( f );
- QValueList<SvnBlameHolder>::Iterator it;
+ TQValueList<SvnBlameHolder>::Iterator it;
for( it = m_blamelist.begin(); it != m_blamelist.end(); ++it ){
SvnBlameHolder holder = *it;
SvnIntSortListItem *item = new SvnIntSortListItem(outView());
- QString prettyDate = holder.date.left(16).replace(10, 1, ' ');
+ TQString prettyDate = holder.date.left(16).replace(10, 1, ' ');
- item->setText(0, QString::number( holder.line+1 ) );
- item->setText(1, QString::number(holder.rev) );
+ item->setText(0, TQString::number( holder.line+1 ) );
+ item->setText(1, TQString::number(holder.rev) );
item->setText(2, prettyDate );
item->setText(3, holder.author );
item->setText(4, holder.content );
}
outView()->sort();
- QWidget::show();
+ TQWidget::show();
}
-QListView* SvnBlameWidget::outView()
+TQListView* SvnBlameWidget::outView()
{
return m_listView;
}
/////////////////////////////////////////////////////////////
-SvnBlameFileSelectDlg::SvnBlameFileSelectDlg( QWidget *parent )
- : QDialog( parent )
+SvnBlameFileSelectDlg::SvnBlameFileSelectDlg( TQWidget *parent )
+ : TQDialog( parent )
{
m_selected = "";
setCaption( i18n("Select one file to view annotation") );
- m_layout = new QGridLayout( this, 2, 2 );
- m_view = new QListView( this );
+ m_layout = new TQGridLayout( this, 2, 2 );
+ m_view = new TQListView( this );
m_view->addColumn( i18n("files") );
- m_okBtn = new QPushButton( i18n("OK"), this );
- m_cancelBtn = new QPushButton( i18n("Cancel"), this );
+ m_okBtn = new TQPushButton( i18n("OK"), this );
+ m_cancelBtn = new TQPushButton( i18n("Cancel"), this );
m_layout->addMultiCellWidget( m_view, 0, 0, 0, 1 );
m_layout->addWidget( m_okBtn, 1, 0 );
m_layout->addWidget( m_cancelBtn, 1, 1 );
- connect( m_okBtn, SIGNAL(clicked()), this, SLOT(accept()) );
- connect( m_cancelBtn, SIGNAL(clicked()), this, SLOT(reject()) );
+ connect( m_okBtn, TQT_SIGNAL(clicked()), this, TQT_SLOT(accept()) );
+ connect( m_cancelBtn, TQT_SIGNAL(clicked()), this, TQT_SLOT(reject()) );
}
SvnBlameFileSelectDlg::~SvnBlameFileSelectDlg()
{}
-void SvnBlameFileSelectDlg::setCandidate( QStringList *list )
+void SvnBlameFileSelectDlg::setCandidate( TQStringList *list )
{
- for( QValueList<QString>::iterator it = list->begin(); it != list->end(); ++it ){
- QListViewItem *item = new QListViewItem( m_view, *it );
+ for( TQValueList<TQString>::iterator it = list->begin(); it != list->end(); ++it ){
+ TQListViewItem *item = new TQListViewItem( m_view, *it );
}
}
-QString SvnBlameFileSelectDlg::selected()
+TQString SvnBlameFileSelectDlg::selected()
{
return m_selected;
}
@@ -120,7 +120,7 @@ QString SvnBlameFileSelectDlg::selected()
void SvnBlameFileSelectDlg::accept()
{
while( true ){
- QListViewItem *item = m_view->currentItem();
+ TQListViewItem *item = m_view->currentItem();
if( item ){
m_selected = item->text(0);
break;
@@ -129,7 +129,7 @@ void SvnBlameFileSelectDlg::accept()
KMessageBox::error( this, i18n("Select file from list to view annotation") );
}
}
- QDialog::accept();
+ TQDialog::accept();
}
#include "svn_blamewidget.moc"