Mercurial > dedupe
diff DataController.cpp @ 34:fda70a362ed5
Remove whitespace.
| author | Tom Fredrik Blenning Klaussen <bfg@blenning.no> |
|---|---|
| date | Thu, 06 Sep 2012 21:33:24 +0200 |
| parents | bf3dce7fedcb |
| children | f711ddb56ae7 |
line wrap: on
line diff
--- a/DataController.cpp Thu Sep 06 21:32:33 2012 +0200 +++ b/DataController.cpp Thu Sep 06 21:33:24 2012 +0200 @@ -110,7 +110,7 @@ } emit populateProgress(++n); - + QDateTime now = QDateTime::currentDateTime(); if (last.msecsTo(now) > 500) { QCoreApplication::processEvents(); @@ -127,7 +127,7 @@ item->setData(0, Qt::DisplayRole, info.name()); item->setData(0, 32, info.path()); item->setData(0, 33, info.name()); - + item->setData(1, Qt::DisplayRole, info.size()); item->setData(2, Qt::DisplayRole, info.mtime()); item->setData(3, Qt::DisplayRole, info.checksum().toHex()); @@ -168,7 +168,7 @@ tw->setUpdatesEnabled(false); - + QMultiMap<QString, QSharedPointer<FileDBLink::DBInfo> > nameLUP; QMultiMap<quint64, QSharedPointer<FileDBLink::DBInfo> > sizeLUP; QMultiMap<QDateTime, QSharedPointer<FileDBLink::DBInfo> > mtimeLUP; @@ -278,7 +278,7 @@ item = createItem(*line); item->addChild(topLevelItem); } - + foreach(QSharedPointer<FileDBLink::DBInfo> dup, oList.values()) { topLevelItem->addChild(createItem(*dup)); } @@ -303,7 +303,7 @@ if (!contextMenu) { contextMenu = new QMenu(tw); QAction* deleteAction = contextMenu->addAction("Delete"); - connect(deleteAction, SIGNAL(triggered()), this, SLOT(deleteFile())); + connect(deleteAction, SIGNAL(triggered()), this, SLOT(deleteFile())); } contextMenu->popup(tw->mapToGlobal(point)); } @@ -383,7 +383,7 @@ mw->setCentralWidget(tw); tw->setEditTriggers(QAbstractItemView::NoEditTriggers); - tw->setHeaderLabels(QString("Path;Size;Date;Checksum").split(";")); + tw->setHeaderLabels(QString("Path;Size;Date;Checksum").split(";")); tw->setSortingEnabled(true); tw->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); @@ -444,7 +444,7 @@ void DataController::itemDoubleClicked (QTreeWidgetItem * item, int column) { QUrl url = QUrl::fromLocalFile(item->data(0, 32).toString()); - QDesktopServices::openUrl(url); + QDesktopServices::openUrl(url); } void DataController::setup(const QString& dbpath_in, const QString& searchPath_in, bool showGUI)
