aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/desktop-utils/lumina-fm
diff options
context:
space:
mode:
authorZackaryWelch <welch.zackary@gmail.com>2017-10-25 18:23:38 -0400
committerZackaryWelch <welch.zackary@gmail.com>2017-10-25 18:23:38 -0400
commit1e4bb99764f6012260adb4192604a392bd62bf0a (patch)
treed04f237871ae2cf234f4219c422d889d0f1aa113 /src-qt5/desktop-utils/lumina-fm
parentFixed image previews with video thumbnails (diff)
downloadlumina-1e4bb99764f6012260adb4192604a392bd62bf0a.tar.gz
lumina-1e4bb99764f6012260adb4192604a392bd62bf0a.tar.bz2
lumina-1e4bb99764f6012260adb4192604a392bd62bf0a.zip
Fixed issues with previews and LVideoWidget sizing
Diffstat (limited to 'src-qt5/desktop-utils/lumina-fm')
-rw-r--r--src-qt5/desktop-utils/lumina-fm/BrowserWidget.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src-qt5/desktop-utils/lumina-fm/BrowserWidget.cpp b/src-qt5/desktop-utils/lumina-fm/BrowserWidget.cpp
index 0384d892..0983a7b4 100644
--- a/src-qt5/desktop-utils/lumina-fm/BrowserWidget.cpp
+++ b/src-qt5/desktop-utils/lumina-fm/BrowserWidget.cpp
@@ -38,7 +38,6 @@ BrowserWidget::~BrowserWidget(){
}
void BrowserWidget::changeDirectory(QString dir){
- qDebug() << "changing";
videoMap.clear();
if(BROWSER->currentDirectory()==dir){ return; } //already on this directory
//qDebug() << "Change Directory:" << dir << historyList;
@@ -116,10 +115,10 @@ void BrowserWidget::showThumbnails(bool show){
QTreeWidgetItem *it = videoMap[file].first;
LVideoWidget *widget = videoMap[file].second;
if(show) {
- widget->disableIcons();
+ widget->enableIcons();
treeWidget->setItemWidget(it, 0, widget);
}else{
- widget->enableIcons();
+ widget->disableIcons();
treeWidget->setItemWidget(it, 0, widget);
}
}
@@ -351,13 +350,14 @@ void BrowserWidget::itemDataAvailable(QIcon ico, LFileInfo *info){
}else if(info->isVideo() && videoMap.find(info->absoluteFilePath()) == videoMap.end()) {
it = new CQTreeWidgetItem(treeWidget);
treeWidget->addTopLevelItem(it);
- LVideoWidget *widget = new LVideoWidget(info->absoluteFilePath(), treeWidget->iconSize(), treeWidget);
+ LVideoWidget *widget = new LVideoWidget(info->absoluteFilePath(), treeWidget->iconSize(), hasThumbnails(), treeWidget);
videoMap.insert(info->absoluteFilePath(), QPair<QTreeWidgetItem*,LVideoWidget*>(it, widget));
treeWidget->setItemWidget(it, 0, widget);
}else if(info->isVideo()) {
it = videoMap[info->absoluteFilePath()].first;
LVideoWidget *widget = videoMap[info->absoluteFilePath()].second;
widget->setIconSize(treeWidget->iconSize());
+ treeWidget->setItemWidget(it, 0, widget);
}else{
it = new CQTreeWidgetItem(treeWidget);
treeWidget->addTopLevelItem(it);
bgstack15