summaryrefslogtreecommitdiffstats
path: root/parts/filelist/filelist_widget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'parts/filelist/filelist_widget.cpp')
-rw-r--r--parts/filelist/filelist_widget.cpp70
1 files changed, 35 insertions, 35 deletions
diff --git a/parts/filelist/filelist_widget.cpp b/parts/filelist/filelist_widget.cpp
index 2ef03968..6f494f93 100644
--- a/parts/filelist/filelist_widget.cpp
+++ b/parts/filelist/filelist_widget.cpp
@@ -11,8 +11,8 @@
* *
***************************************************************************/
-#include <qheader.h>
-#include <qpixmap.h>
+#include <tqheader.h>
+#include <tqpixmap.h>
#include <kparts/part.h>
#include <klibloader.h>
@@ -34,37 +34,37 @@
* @param part
* @return
*/
-FileListWidget::FileListWidget(ProjectviewPart *part, QWidget *parent)
- : KListView(parent), QToolTip( viewport() ), _part( part )
+FileListWidget::FileListWidget(ProjectviewPart *part, TQWidget *parent)
+ : KListView(parent), TQToolTip( viewport() ), _part( part )
{
addColumn( "" );
header()->hide();
setRootIsDecorated( false );
- setResizeMode( QListView::LastColumn );
+ setResizeMode( TQListView::LastColumn );
setAllColumnsShowFocus( true );
- setSelectionMode( QListView::Extended );
+ setSelectionMode( TQListView::Extended );
-// connect( _part->partController(), SIGNAL( partAdded(KParts::Part*) ), this, SLOT(partAdded(KParts::Part*)) );
-// connect( _part->partController(), SIGNAL( partRemoved(KParts::Part*) ), this, SLOT(partRemoved()) );
- connect( _part->partController(), SIGNAL( partAdded(KParts::Part*) ), this, SLOT(startRefreshTimer()) );
- connect( _part->partController(), SIGNAL( partRemoved(KParts::Part*) ), this, SLOT(startRefreshTimer()) );
- connect( _part->partController(), SIGNAL( activePartChanged(KParts::Part*) ), this, SLOT( activePartChanged(KParts::Part* )) );
+// connect( _part->partController(), TQT_SIGNAL( partAdded(KParts::Part*) ), this, TQT_SLOT(partAdded(KParts::Part*)) );
+// connect( _part->partController(), TQT_SIGNAL( partRemoved(KParts::Part*) ), this, TQT_SLOT(partRemoved()) );
+ connect( _part->partController(), TQT_SIGNAL( partAdded(KParts::Part*) ), this, TQT_SLOT(startRefreshTimer()) );
+ connect( _part->partController(), TQT_SIGNAL( partRemoved(KParts::Part*) ), this, TQT_SLOT(startRefreshTimer()) );
+ connect( _part->partController(), TQT_SIGNAL( activePartChanged(KParts::Part*) ), this, TQT_SLOT( activePartChanged(KParts::Part* )) );
- connect( this, SIGNAL( executed( QListViewItem * ) ), this, SLOT( itemClicked( QListViewItem * ) ) );
- connect( this, SIGNAL( returnPressed( QListViewItem * ) ), this, SLOT( itemClicked( QListViewItem * ) ) );
+ connect( this, TQT_SIGNAL( executed( TQListViewItem * ) ), this, TQT_SLOT( itemClicked( TQListViewItem * ) ) );
+ connect( this, TQT_SIGNAL( returnPressed( TQListViewItem * ) ), this, TQT_SLOT( itemClicked( TQListViewItem * ) ) );
- connect( this, SIGNAL( contextMenuRequested ( QListViewItem *, const QPoint & , int ) ),
- this, SLOT( popupMenu(QListViewItem *, const QPoint & , int ) ) );
+ connect( this, TQT_SIGNAL( contextMenuRequested ( TQListViewItem *, const TQPoint & , int ) ),
+ this, TQT_SLOT( popupMenu(TQListViewItem *, const TQPoint & , int ) ) );
- connect( _part->partController(), SIGNAL(documentChangedState(const KURL &, DocumentState)),
- this, SLOT(documentChangedState(const KURL&, DocumentState )) );
+ connect( _part->partController(), TQT_SIGNAL(documentChangedState(const KURL &, DocumentState)),
+ this, TQT_SLOT(documentChangedState(const KURL&, DocumentState )) );
- connect( _part->partController(), SIGNAL(partURLChanged(KParts::ReadOnlyPart * )), this, SLOT(refreshFileList()) );
+ connect( _part->partController(), TQT_SIGNAL(partURLChanged(KParts::ReadOnlyPart * )), this, TQT_SLOT(refreshFileList()) );
setItemMargin(10);
- connect( &m_refreshTimer, SIGNAL(timeout()), this, SLOT(refreshFileList()) );
+ connect( &m_refreshTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(refreshFileList()) );
startRefreshTimer();
}
@@ -78,17 +78,17 @@ void FileListWidget::startRefreshTimer( )
m_refreshTimer.start( 100, true );
}
-void FileListWidget::maybeTip( QPoint const & p )
+void FileListWidget::maybeTip( TQPoint const & p )
{
FileListItem * item = static_cast<FileListItem*>( itemAt( p ) );
- QRect r = itemRect( item );
+ TQRect r = itemRect( item );
if ( item && r.isValid() )
{
- const QPixmap * pixmap = item->pixmap(0);
+ const TQPixmap * pixmap = item->pixmap(0);
if ( pixmap && ( p.x() <= pixmap->width() ) )
{
- QString message;
+ TQString message;
switch( item->state() )
{
case Modified:
@@ -129,13 +129,13 @@ FileListItem * FileListWidget::itemForURL( KURL const & url )
void FileListWidget::refreshFileList( )
{
- QStringList selections = storeSelections();
+ TQStringList selections = storeSelections();
int scrollbarPos = verticalScrollBar()->value();
KListView::clear();
KURL::List list = _part->partController()->openURLs();
- QValueListIterator<KURL> it = list.begin();
+ TQValueListIterator<KURL> it = list.begin();
while ( it != list.end() )
{
FileListItem * item = new FileListItem( this, *it );
@@ -184,7 +184,7 @@ void FileListWidget::partRemoved()
}
*/
-void FileListWidget::itemClicked( QListViewItem * item )
+void FileListWidget::itemClicked( TQListViewItem * item )
{
if ( !item ) return;
@@ -220,15 +220,15 @@ void FileListWidget::documentChangedState( const KURL & url, DocumentState state
}
}
-void FileListWidget::popupMenu( QListViewItem * item, const QPoint & p, int )
+void FileListWidget::popupMenu( TQListViewItem * item, const TQPoint & p, int )
{
if ( item )
{
KPopupMenu popup;
popup.insertTitle( i18n("File List") );
- popup.insertItem( i18n("Close Selected"), this, SLOT(closeSelectedFiles()) );
- popup.insertItem( i18n("Save Selected"), this, SLOT(saveSelectedFiles()) );
- popup.insertItem( i18n("Reload Selected"), this, SLOT(reloadSelectedFiles()) );
+ popup.insertItem( i18n("Close Selected"), this, TQT_SLOT(closeSelectedFiles()) );
+ popup.insertItem( i18n("Save Selected"), this, TQT_SLOT(saveSelectedFiles()) );
+ popup.insertItem( i18n("Reload Selected"), this, TQT_SLOT(reloadSelectedFiles()) );
FileContext context( getSelectedURLs() );
_part->core()->fillContextMenu( &popup, &context );
@@ -267,10 +267,10 @@ void FileListWidget::reloadSelectedFiles( )
_part->partController()->revertFiles( getSelectedURLs() );
}
-QStringList FileListWidget::storeSelections()
+TQStringList FileListWidget::storeSelections()
{
- QStringList list;
- QListViewItem * item = firstChild();
+ TQStringList list;
+ TQListViewItem * item = firstChild();
while ( item )
{
if ( item->isSelected() )
@@ -282,9 +282,9 @@ QStringList FileListWidget::storeSelections()
return list;
}
-void FileListWidget::restoreSelections(const QStringList & list)
+void FileListWidget::restoreSelections(const TQStringList & list)
{
- QListViewItem * item = firstChild();
+ TQListViewItem * item = firstChild();
while ( item )
{
if ( list.contains( item->text(0) ) )