diff options
author | Ken Moore <ken@ixsystems.com> | 2017-11-02 12:26:43 -0400 |
---|---|---|
committer | Ken Moore <ken@ixsystems.com> | 2017-11-02 12:26:43 -0400 |
commit | 29b171bce4dee4c9737f590079e18e83d49b7136 (patch) | |
tree | dbb7add95843f08ca0c7ddc99e444b581977eb58 /src-qt5/desktop-utils/lumina-fm/BrowserWidget.cpp | |
parent | A bit more cleanup on the external device reporting/usage. (diff) | |
download | lumina-29b171bce4dee4c9737f590079e18e83d49b7136.tar.gz lumina-29b171bce4dee4c9737f590079e18e83d49b7136.tar.bz2 lumina-29b171bce4dee4c9737f590079e18e83d49b7136.zip |
Fix up the drag and drop in lumina-fm.
Also fix the showing of thumbnails within the right-column widget.
Diffstat (limited to 'src-qt5/desktop-utils/lumina-fm/BrowserWidget.cpp')
-rw-r--r-- | src-qt5/desktop-utils/lumina-fm/BrowserWidget.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src-qt5/desktop-utils/lumina-fm/BrowserWidget.cpp b/src-qt5/desktop-utils/lumina-fm/BrowserWidget.cpp index ab25d5e7..87a3a6d7 100644 --- a/src-qt5/desktop-utils/lumina-fm/BrowserWidget.cpp +++ b/src-qt5/desktop-utils/lumina-fm/BrowserWidget.cpp @@ -95,6 +95,8 @@ void BrowserWidget::showDetails(bool show){ connect(listWidget, SIGNAL(GotFocus()), this, SLOT(selectionChanged()) ); if(!BROWSER->currentDirectory().isEmpty()){ emit dirChange("",true); } } + if(listWidget!=0){ listWidget->setWhatsThis( BROWSER->currentDirectory() ); } + if(treeWidget!=0){ treeWidget->setWhatsThis(BROWSER->currentDirectory() ); } //qDebug() << " Done making widget"; } @@ -291,6 +293,8 @@ void BrowserWidget::itemRemoved(QString item){ } void BrowserWidget::itemDataAvailable(QIcon ico, LFileInfo *info){ + if(listWidget!=0){ listWidget->setWhatsThis( BROWSER->currentDirectory() ); } + if(treeWidget!=0){ treeWidget->setWhatsThis(BROWSER->currentDirectory() ); } //qDebug() << "Item Data Available:" << info->fileName(); int num = 0; if(listWidget!=0){ @@ -346,7 +350,7 @@ void BrowserWidget::itemDataAvailable(QIcon ico, LFileInfo *info){ treeWidget->addTopLevelItem(it); } }else{ - if( ! treeWidget->findItems(info->fileName(), Qt::MatchExactly, 0).isEmpty() ) { + if( ! treeWidget->findItems(info->fileName(), Qt::MatchExactly, 0).isEmpty() ) { it = treeWidget->findItems(info->fileName(), Qt::MatchExactly, 0).first(); }else if(info->isVideo() && videoMap.find(info->absoluteFilePath()) == videoMap.end()) { it = new CQTreeWidgetItem(treeWidget); |