summaryrefslogtreecommitdiffstats
path: root/src/gvcore/fileviewcontroller.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gvcore/fileviewcontroller.cpp')
-rw-r--r--src/gvcore/fileviewcontroller.cpp78
1 files changed, 39 insertions, 39 deletions
diff --git a/src/gvcore/fileviewcontroller.cpp b/src/gvcore/fileviewcontroller.cpp
index d338d32..b5c073d 100644
--- a/src/gvcore/fileviewcontroller.cpp
+++ b/src/gvcore/fileviewcontroller.cpp
@@ -275,36 +275,36 @@ FileViewController::FileViewController(TQWidget* parent,TDEActionCollection* act
// Actions
mSelectFirst=new TDEAction(i18n("&First"),
TQApplication::reverseLayout() ? "2rightarrow":"2leftarrow", Key_Home,
- TQT_TQOBJECT(this),TQT_SLOT(slotSelectFirst()), actionCollection, "first");
+ this,TQT_SLOT(slotSelectFirst()), actionCollection, "first");
mSelectLast=new TDEAction(i18n("&Last"),
TQApplication::reverseLayout() ? "2leftarrow":"2rightarrow", Key_End,
- TQT_TQOBJECT(this),TQT_SLOT(slotSelectLast()), actionCollection, "last");
+ this,TQT_SLOT(slotSelectLast()), actionCollection, "last");
mSelectPrevious=new TDEAction(i18n("&Previous"),
TQApplication::reverseLayout() ? "1rightarrow":"1leftarrow", Key_BackSpace,
- TQT_TQOBJECT(this),TQT_SLOT(slotSelectPrevious()), actionCollection, "previous");
+ this,TQT_SLOT(slotSelectPrevious()), actionCollection, "previous");
mSelectNext=new TDEAction(i18n("&Next"),
TQApplication::reverseLayout() ? "1leftarrow":"1rightarrow", Key_Space,
- TQT_TQOBJECT(this),TQT_SLOT(slotSelectNext()), actionCollection, "next");
+ this,TQT_SLOT(slotSelectNext()), actionCollection, "next");
mSelectPreviousDir=new TDEAction(i18n("&Previous Folder"),
TQApplication::reverseLayout() ? "media-seek-forward":"media-seek-backward", ALT + Key_BackSpace,
- TQT_TQOBJECT(this),TQT_SLOT(slotSelectPreviousDir()), actionCollection, "previous_folder");
+ this,TQT_SLOT(slotSelectPreviousDir()), actionCollection, "previous_folder");
mSelectNextDir=new TDEAction(i18n("&Next Folder"),
TQApplication::reverseLayout() ? "media-seek-backward":"media-seek-forward", ALT + Key_Space,
- TQT_TQOBJECT(this),TQT_SLOT(slotSelectNextDir()), actionCollection, "next_folder");
+ this,TQT_SLOT(slotSelectNextDir()), actionCollection, "next_folder");
mSelectFirstSubDir=new TDEAction(i18n("&First Sub Folder"), "go-down", ALT + Key_Down,
- TQT_TQOBJECT(this),TQT_SLOT(slotSelectFirstSubDir()), actionCollection, "first_sub_folder");
+ this,TQT_SLOT(slotSelectFirstSubDir()), actionCollection, "first_sub_folder");
- mListMode=new TDERadioAction(i18n("Details"),"view_detailed",0,TQT_TQOBJECT(this),TQT_SLOT(updateViewMode()),actionCollection,"list_mode");
+ mListMode=new TDERadioAction(i18n("Details"),"view_detailed",0,this,TQT_SLOT(updateViewMode()),actionCollection,"list_mode");
mListMode->setExclusiveGroup("thumbnails");
- mSideThumbnailMode=new TDERadioAction(i18n("Thumbnails with Info on Side"),"view_multicolumn",0,TQT_TQOBJECT(this),TQT_SLOT(updateViewMode()),actionCollection,"side_thumbnail_mode");
+ mSideThumbnailMode=new TDERadioAction(i18n("Thumbnails with Info on Side"),"view_multicolumn",0,this,TQT_SLOT(updateViewMode()),actionCollection,"side_thumbnail_mode");
mSideThumbnailMode->setExclusiveGroup("thumbnails");
- mBottomThumbnailMode=new TDERadioAction(i18n("Thumbnails with Info on Bottom"),"view_icon",0,TQT_TQOBJECT(this),TQT_SLOT(updateViewMode()),actionCollection,"bottom_thumbnail_mode");
+ mBottomThumbnailMode=new TDERadioAction(i18n("Thumbnails with Info on Bottom"),"view_icon",0,this,TQT_SLOT(updateViewMode()),actionCollection,"bottom_thumbnail_mode");
mBottomThumbnailMode->setExclusiveGroup("thumbnails");
// Size slider
@@ -315,21 +315,21 @@ FileViewController::FileViewController(TQWidget* parent,TDEActionCollection* act
ThumbnailSize::LARGE/SLIDER_RESOLUTION);
mSizeSlider->setValue(FileViewConfig::thumbnailSize() / SLIDER_RESOLUTION);
- connect(mSizeSlider, TQT_SIGNAL(valueChanged(int)), TQT_TQOBJECT(this), TQT_SLOT(updateThumbnailSize(int)) );
+ connect(mSizeSlider, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(updateThumbnailSize(int)) );
connect(mListMode, TQT_SIGNAL(toggled(bool)), mSizeSlider, TQT_SLOT(setDisabled(bool)) );
TDEAction* sliderAction=new KWidgetAction(mSizeSlider, i18n("Thumbnail Size"), 0, 0, 0, actionCollection, "size_slider");
d->mSliderTracker=new TipTracker("", mSizeSlider);
// /Size slider
- mShowDotFiles=new TDEToggleAction(i18n("Show &Hidden Files"),CTRL + Key_H,TQT_TQOBJECT(this),TQT_SLOT(toggleShowDotFiles()),actionCollection,"show_dot_files");
+ mShowDotFiles=new TDEToggleAction(i18n("Show &Hidden Files"),CTRL + Key_H,this,TQT_SLOT(toggleShowDotFiles()),actionCollection,"show_dot_files");
- d->mSortAction=new TDESelectAction(i18n("Sort"), 0, TQT_TQOBJECT(this), TQT_SLOT(setSorting()), actionCollection, "view_sort");
+ d->mSortAction=new TDESelectAction(i18n("Sort"), 0, this, TQT_SLOT(setSorting()), actionCollection, "view_sort");
TQStringList sortItems;
sortItems << i18n("By Name") << i18n("By Date") << i18n("By Size");
d->mSortAction->setItems(sortItems);
d->mSortAction->setCurrentItem(0);
- d->mRevertSortAction=new TDEToggleAction(i18n("Descending"),0, TQT_TQOBJECT(this), TQT_SLOT(setSorting()), actionCollection, "descending");
+ d->mRevertSortAction=new TDEToggleAction(i18n("Descending"),0, this, TQT_SLOT(setSorting()), actionCollection, "descending");
TQPopupMenu* sortMenu=d->mSortAction->popupMenu();
Q_ASSERT(sortMenu);
sortMenu->insertSeparator();
@@ -339,25 +339,25 @@ FileViewController::FileViewController(TQWidget* parent,TDEActionCollection* act
mDirLister=new DirLister;
mDirLister->setMainWindow(topLevelWidget());
connect(mDirLister,TQT_SIGNAL(clear()),
- TQT_TQOBJECT(this),TQT_SLOT(dirListerClear()) );
+ this,TQT_SLOT(dirListerClear()) );
connect(mDirLister,TQT_SIGNAL(newItems(const KFileItemList&)),
- TQT_TQOBJECT(this),TQT_SLOT(dirListerNewItems(const KFileItemList&)) );
+ this,TQT_SLOT(dirListerNewItems(const KFileItemList&)) );
connect(mDirLister,TQT_SIGNAL(deleteItem(KFileItem*)),
- TQT_TQOBJECT(this),TQT_SLOT(dirListerDeleteItem(KFileItem*)) );
+ this,TQT_SLOT(dirListerDeleteItem(KFileItem*)) );
connect(mDirLister,TQT_SIGNAL(refreshItems(const KFileItemList&)),
- TQT_TQOBJECT(this),TQT_SLOT(dirListerRefreshItems(const KFileItemList&)) );
+ this,TQT_SLOT(dirListerRefreshItems(const KFileItemList&)) );
connect(mDirLister,TQT_SIGNAL(started(const KURL&)),
- TQT_TQOBJECT(this),TQT_SLOT(dirListerStarted()) );
+ this,TQT_SLOT(dirListerStarted()) );
connect(mDirLister,TQT_SIGNAL(completed()),
- TQT_TQOBJECT(this),TQT_SLOT(dirListerCompleted()) );
+ this,TQT_SLOT(dirListerCompleted()) );
connect(mDirLister,TQT_SIGNAL(canceled()),
- TQT_TQOBJECT(this),TQT_SLOT(dirListerCanceled()) );
+ this,TQT_SLOT(dirListerCanceled()) );
// Propagate canceled signals
connect(mDirLister,TQT_SIGNAL(canceled()),
@@ -369,19 +369,19 @@ FileViewController::FileViewController(TQWidget* parent,TDEActionCollection* act
mFileDetailView->viewport()->installEventFilter(this);
connect(mFileDetailView,TQT_SIGNAL(executed(TQListViewItem*)),
- TQT_TQOBJECT(this),TQT_SLOT(slotViewExecuted()) );
+ this,TQT_SLOT(slotViewExecuted()) );
connect(mFileDetailView,TQT_SIGNAL(returnPressed(TQListViewItem*)),
- TQT_TQOBJECT(this),TQT_SLOT(slotViewExecuted()) );
+ this,TQT_SLOT(slotViewExecuted()) );
connect(mFileDetailView,TQT_SIGNAL(currentChanged(TQListViewItem*)),
- TQT_TQOBJECT(this),TQT_SLOT(slotViewClicked()) );
+ this,TQT_SLOT(slotViewClicked()) );
connect(mFileDetailView,TQT_SIGNAL(selectionChanged()),
- TQT_TQOBJECT(this),TQT_SLOT(slotViewClicked()) );
+ this,TQT_SLOT(slotViewClicked()) );
connect(mFileDetailView,TQT_SIGNAL(clicked(TQListViewItem*)),
- TQT_TQOBJECT(this),TQT_SLOT(slotViewClicked()) );
+ this,TQT_SLOT(slotViewClicked()) );
connect(mFileDetailView,TQT_SIGNAL(contextMenu(TDEListView*, TQListViewItem*, const TQPoint&)),
- TQT_TQOBJECT(this),TQT_SLOT(openContextMenu(TDEListView*, TQListViewItem*, const TQPoint&)) );
+ this,TQT_SLOT(openContextMenu(TDEListView*, TQListViewItem*, const TQPoint&)) );
connect(mFileDetailView,TQT_SIGNAL(dropped(TQDropEvent*,KFileItem*)),
- TQT_TQOBJECT(this),TQT_SLOT(openDropURLMenu(TQDropEvent*, KFileItem*)) );
+ this,TQT_SLOT(openDropURLMenu(TQDropEvent*, KFileItem*)) );
connect(mFileDetailView, TQT_SIGNAL(sortingChanged(TQDir::SortSpec)),
this, TQT_SLOT(updateSortMenu(TQDir::SortSpec)) );
connect(mFileDetailView, TQT_SIGNAL(doubleClicked(TQListViewItem*)),
@@ -395,26 +395,26 @@ FileViewController::FileViewController(TQWidget* parent,TDEActionCollection* act
mFileThumbnailView->viewport()->installEventFilter(this);
connect(mFileThumbnailView,TQT_SIGNAL(executed(TQIconViewItem*)),
- TQT_TQOBJECT(this),TQT_SLOT(slotViewExecuted()) );
+ this,TQT_SLOT(slotViewExecuted()) );
connect(mFileThumbnailView,TQT_SIGNAL(returnPressed(TQIconViewItem*)),
- TQT_TQOBJECT(this),TQT_SLOT(slotViewExecuted()) );
+ this,TQT_SLOT(slotViewExecuted()) );
connect(mFileThumbnailView,TQT_SIGNAL(currentChanged(TQIconViewItem*)),
- TQT_TQOBJECT(this),TQT_SLOT(slotViewClicked()) );
+ this,TQT_SLOT(slotViewClicked()) );
connect(mFileThumbnailView,TQT_SIGNAL(selectionChanged()),
- TQT_TQOBJECT(this),TQT_SLOT(slotViewClicked()) );
+ this,TQT_SLOT(slotViewClicked()) );
connect(mFileThumbnailView,TQT_SIGNAL(clicked(TQIconViewItem*)),
- TQT_TQOBJECT(this),TQT_SLOT(slotViewClicked()) );
+ this,TQT_SLOT(slotViewClicked()) );
connect(mFileThumbnailView,TQT_SIGNAL(contextMenuRequested(TQIconViewItem*,const TQPoint&)),
- TQT_TQOBJECT(this),TQT_SLOT(openContextMenu(TQIconViewItem*,const TQPoint&)) );
+ this,TQT_SLOT(openContextMenu(TQIconViewItem*,const TQPoint&)) );
connect(mFileThumbnailView,TQT_SIGNAL(dropped(TQDropEvent*,KFileItem*)),
- TQT_TQOBJECT(this),TQT_SLOT(openDropURLMenu(TQDropEvent*, KFileItem*)) );
+ this,TQT_SLOT(openDropURLMenu(TQDropEvent*, KFileItem*)) );
connect(mFileThumbnailView, TQT_SIGNAL(doubleClicked(TQIconViewItem*)),
this, TQT_SLOT(slotViewDoubleClicked()) );
connect(mFileThumbnailView, TQT_SIGNAL(selectionChanged()),
this, TQT_SIGNAL(selectionChanged()) );
// Thumbnail details dialog
- TDEAction* thumbnailDetailsDialogAction=new TDEAction(i18n("Edit Thumbnail Details..."), "configure", 0, TQT_TQOBJECT(mFileThumbnailView), TQT_SLOT(showThumbnailDetailsDialog()), actionCollection, "thumbnail_details_dialog");
+ TDEAction* thumbnailDetailsDialogAction=new TDEAction(i18n("Edit Thumbnail Details..."), "configure", 0, mFileThumbnailView, TQT_SLOT(showThumbnailDetailsDialog()), actionCollection, "thumbnail_details_dialog");
connect(mBottomThumbnailMode, TQT_SIGNAL(toggled(bool)),
thumbnailDetailsDialogAction, TQT_SLOT(setEnabled(bool)) );
@@ -542,13 +542,13 @@ void FileViewController::setFileNameToSelect(const TQString& fileName) {
void FileViewController::prefetch( KFileItem* item ) {
prefetchDone();
if( item == NULL ) return;
- mPrefetch = ImageLoader::loader( item->url(), TQT_TQOBJECT(this), BUSY_PRELOADING );
+ mPrefetch = ImageLoader::loader( item->url(), this, BUSY_PRELOADING );
connect( mPrefetch, TQT_SIGNAL( imageLoaded( bool )), TQT_SLOT( prefetchDone()));
}
void FileViewController::prefetchDone() {
if( mPrefetch != NULL ) {
- mPrefetch->release( TQT_TQOBJECT(this) );
+ mPrefetch->release( this );
mPrefetch = NULL;
}
}
@@ -1088,7 +1088,7 @@ void FileViewController::dirListerCompleted() {
LOG("");
// Delay the code to be executed when the dir lister has completed its job
// to avoid crash in KDirLister (see bug #57991)
- TQTimer::singleShot(0,TQT_TQOBJECT(this),TQT_SLOT(delayedDirListerCompleted()));
+ TQTimer::singleShot(0,this,TQT_SLOT(delayedDirListerCompleted()));
}