aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/desktop-utils/lumina-fm/OPWidget.cpp
diff options
context:
space:
mode:
authorWeblate <noreply@weblate.org>2016-12-14 21:54:31 +0000
committerWeblate <noreply@weblate.org>2016-12-14 21:54:31 +0000
commitb965af1625a4296f8ff6d3a1663cae23b73d334f (patch)
tree459685dd1da8c75f67772762aa062d80dfc148f0 /src-qt5/desktop-utils/lumina-fm/OPWidget.cpp
parentTranslated using Weblate (lumina_DESKTOP@fr (generated)) (diff)
parentMerge branch 'master' of github.com:trueos/lumina (diff)
downloadlumina-b965af1625a4296f8ff6d3a1663cae23b73d334f.tar.gz
lumina-b965af1625a4296f8ff6d3a1663cae23b73d334f.tar.bz2
lumina-b965af1625a4296f8ff6d3a1663cae23b73d334f.zip
Merge branch 'master' of github.com:trueos/lumina
Diffstat (limited to 'src-qt5/desktop-utils/lumina-fm/OPWidget.cpp')
-rw-r--r--src-qt5/desktop-utils/lumina-fm/OPWidget.cpp13
1 files changed, 11 insertions, 2 deletions
diff --git a/src-qt5/desktop-utils/lumina-fm/OPWidget.cpp b/src-qt5/desktop-utils/lumina-fm/OPWidget.cpp
index 3e842b90..3638e2a8 100644
--- a/src-qt5/desktop-utils/lumina-fm/OPWidget.cpp
+++ b/src-qt5/desktop-utils/lumina-fm/OPWidget.cpp
@@ -7,16 +7,19 @@
#include "OPWidget.h"
#include "ui_OPWidget.h"
+#include "ScrollDialog.h"
+
OPWidget::OPWidget(QWidget *parent) : QWidget(parent), ui(new Ui::OPWidget()){
starttime = endtime = -1;
WA = new QWidgetAction(0);
WA->setDefaultWidget(this);
worker = 0;
workthread = 0;
+ dlg = 0;
//Now create the widget
ui->setupUi(this);
ui->tool_close->setIcon( LXDG::findIcon("dialog-close","view-close") );
- ui->tool_showerrors->setIcon(LXDG::findIcon("view-search",""));
+ ui->tool_showerrors->setIcon(LXDG::findIcon("dialog-warning",""));
//connect the widget buttons
connect(ui->tool_close, SIGNAL(clicked()), this, SLOT(closeWidget()) );
connect(ui->tool_showerrors, SIGNAL(clicked()), this, SLOT(showErrors()) );
@@ -26,6 +29,7 @@ OPWidget::~OPWidget(){
if(worker!=0){ worker->stopped = true; worker->deleteLater(); }
if(workthread!=0){ workthread->quit(); workthread->wait(); delete workthread; }
WA->deleteLater();
+ if(dlg!=0){ dlg->deleteLater(); }
}
QWidgetAction* OPWidget::widgetAction(){
@@ -87,7 +91,12 @@ void OPWidget::closeWidget(){
void OPWidget::showErrors(){
qDebug() << "Errors:" << Errors;
- //TODO
+ if(dlg==0){
+ dlg = new ScrollDialog(); //need this to persist outside this function
+ dlg->setWindowTitle(tr("File Operation Errors"));
+ dlg->setText( Errors.join("\n") );
+ }
+ dlg->showNormal();
}
void OPWidget::opFinished(QStringList errors){
bgstack15