~ubuntu-branches/ubuntu/utopic/kde4libs/utopic

« back to all changes in this revision

Viewing changes to kfile/kdiroperator.cpp

  • Committer: Package Import Robot
  • Author(s): Jonathan Kolberg
  • Date: 2012-03-03 00:25:28 UTC
  • mfrom: (1.14.15)
  • Revision ID: package-import@ubuntu.com-20120303002528-chhwyfluldkicy5k
Tags: 4:4.8.1-0ubuntu1
* New upstream release
  - Update symbol files

Show diffs side-by-side

added added

removed removed

Lines of Context:
374
374
{
375
375
    d->splitter = new QSplitter(this);
376
376
    d->splitter->setChildrenCollapsible(false);
377
 
    connect(d->splitter, SIGNAL(splitterMoved(int, int)),
378
 
            this, SLOT(_k_slotSplitterMoved(int, int)));
 
377
    connect(d->splitter, SIGNAL(splitterMoved(int,int)),
 
378
            this, SLOT(_k_slotSplitterMoved(int,int)));
379
379
 
380
380
    d->preview = 0;
381
381
 
402
402
    setLayoutDirection(Qt::LeftToRight);
403
403
    setDirLister(new KDirLister());
404
404
 
405
 
    connect(&d->completion, SIGNAL(match(const QString&)),
406
 
            SLOT(slotCompletionMatch(const QString&)));
 
405
    connect(&d->completion, SIGNAL(match(QString)),
 
406
            SLOT(slotCompletionMatch(QString)));
407
407
 
408
408
    d->progressBar = new QProgressBar(this);
409
409
    d->progressBar->setObjectName("d->progressBar");
1584
1584
    if (treeView) {
1585
1585
        QHeaderView* headerView = treeView->header();
1586
1586
        headerView->setSortIndicator(d->sortColumn(), d->sortOrder());
1587
 
        connect(headerView, SIGNAL(sortIndicatorChanged (int, Qt::SortOrder)),
1588
 
                this, SLOT(_k_synchronizeSortingState(int, Qt::SortOrder)));
 
1587
        connect(headerView, SIGNAL(sortIndicatorChanged(int,Qt::SortOrder)),
 
1588
                this, SLOT(_k_synchronizeSortingState(int,Qt::SortOrder)));
1589
1589
    }
1590
1590
 
1591
 
    connect(d->itemView, SIGNAL(activated(const QModelIndex&)),
1592
 
            this, SLOT(_k_slotActivated(const QModelIndex&)));
1593
 
    connect(d->itemView, SIGNAL(customContextMenuRequested(const QPoint&)),
1594
 
            this, SLOT(_k_openContextMenu(const QPoint&)));
1595
 
    connect(d->itemView, SIGNAL(entered(const QModelIndex&)),
1596
 
            this, SLOT(_k_triggerPreview(const QModelIndex&)));
 
1591
    connect(d->itemView, SIGNAL(activated(QModelIndex)),
 
1592
            this, SLOT(_k_slotActivated(QModelIndex)));
 
1593
    connect(d->itemView, SIGNAL(customContextMenuRequested(QPoint)),
 
1594
            this, SLOT(_k_openContextMenu(QPoint)));
 
1595
    connect(d->itemView, SIGNAL(entered(QModelIndex)),
 
1596
            this, SLOT(_k_triggerPreview(QModelIndex)));
1597
1597
 
1598
1598
    updateViewActions();
1599
1599
    d->splitter->insertWidget(0, d->itemView);
1612
1612
    }
1613
1613
 
1614
1614
    connect(d->itemView->selectionModel(),
1615
 
            SIGNAL(currentChanged(const QModelIndex&,const QModelIndex&)),
1616
 
            this, SLOT(_k_triggerPreview(const QModelIndex&)));
 
1615
            SIGNAL(currentChanged(QModelIndex,QModelIndex)),
 
1616
            this, SLOT(_k_triggerPreview(QModelIndex)));
1617
1617
    connect(d->itemView->selectionModel(),
1618
 
            SIGNAL(selectionChanged(const QItemSelection&, const QItemSelection&)),
 
1618
            SIGNAL(selectionChanged(QItemSelection,QItemSelection)),
1619
1619
            this, SLOT(_k_slotSelectionChanged()));
1620
1620
 
1621
1621
    // if we cannot cast it to a QListView, disable the "Icon Position" menu. Note that this check
1686
1686
 
1687
1687
    connect(d->dirLister, SIGNAL(percent(int)),
1688
1688
            SLOT(_k_slotProgress(int)));
1689
 
    connect(d->dirLister, SIGNAL(started(const KUrl&)), SLOT(_k_slotStarted()));
 
1689
    connect(d->dirLister, SIGNAL(started(KUrl)), SLOT(_k_slotStarted()));
1690
1690
    connect(d->dirLister, SIGNAL(completed()), SLOT(_k_slotIOFinished()));
1691
1691
    connect(d->dirLister, SIGNAL(canceled()), SLOT(_k_slotCanceled()));
1692
 
    connect(d->dirLister, SIGNAL(redirection(const KUrl&)),
1693
 
            SLOT(_k_slotRedirected(const KUrl&)));
1694
 
    connect(d->dirLister, SIGNAL(newItems(const KFileItemList&)), SLOT(_k_slotItemsChanged()));
1695
 
    connect(d->dirLister, SIGNAL(itemsDeleted(const KFileItemList&)), SLOT(_k_slotItemsChanged()));
1696
 
    connect(d->dirLister, SIGNAL(itemsFilteredByMime(const KFileItemList&)), SLOT(_k_slotItemsChanged()));
 
1692
    connect(d->dirLister, SIGNAL(redirection(KUrl)),
 
1693
            SLOT(_k_slotRedirected(KUrl)));
 
1694
    connect(d->dirLister, SIGNAL(newItems(KFileItemList)), SLOT(_k_slotItemsChanged()));
 
1695
    connect(d->dirLister, SIGNAL(itemsDeleted(KFileItemList)), SLOT(_k_slotItemsChanged()));
 
1696
    connect(d->dirLister, SIGNAL(itemsFilteredByMime(KFileItemList)), SLOT(_k_slotItemsChanged()));
1697
1697
    connect(d->dirLister, SIGNAL(clear()), SLOT(_k_slotItemsChanged()));
1698
1698
}
1699
1699
 
1943
1943
    KToggleAction *detailedAction = new KToggleAction(i18n("Detailed View"), this);
1944
1944
    d->actionCollection->addAction("detailed view", detailedAction);
1945
1945
    detailedAction->setIcon(KIcon(QLatin1String("view-list-details")));
1946
 
    connect(detailedAction, SIGNAL(triggered ()), SLOT(_k_slotDetailedView()));
 
1946
    connect(detailedAction, SIGNAL(triggered()), SLOT(_k_slotDetailedView()));
1947
1947
 
1948
1948
    KToggleAction *treeAction = new KToggleAction(i18n("Tree View"), this);
1949
1949
    d->actionCollection->addAction("tree view", treeAction);
1950
1950
    treeAction->setIcon(KIcon(QLatin1String("view-list-tree")));
1951
 
    connect(treeAction, SIGNAL(triggered ()), SLOT(_k_slotTreeView()));
 
1951
    connect(treeAction, SIGNAL(triggered()), SLOT(_k_slotTreeView()));
1952
1952
 
1953
1953
    KToggleAction *detailedTreeAction = new KToggleAction(i18n("Detailed Tree View"), this);
1954
1954
    d->actionCollection->addAction("detailed tree view", detailedTreeAction);
1955
1955
    detailedTreeAction->setIcon(KIcon(QLatin1String("view-list-tree")));
1956
 
    connect(detailedTreeAction, SIGNAL(triggered ()), SLOT(_k_slotDetailedTreeView()));
 
1956
    connect(detailedTreeAction, SIGNAL(triggered()), SLOT(_k_slotDetailedTreeView()));
1957
1957
 
1958
1958
    QActionGroup* viewGroup = new QActionGroup(this);
1959
1959
    shortAction->setActionGroup(viewGroup);