summaryrefslogtreecommitdiffstats
path: root/shemovcleaner.cpp
diff options
context:
space:
mode:
authorArno <arno@disconnect.de>2016-09-03 04:49:51 +0200
committerArno <arno@disconnect.de>2016-09-03 04:49:51 +0200
commitf80c6c80da7530b43f15acd3b60b27ab6c629f3d (patch)
treef2ec93b7a894a941d8013388e23f0379833f58ff /shemovcleaner.cpp
parent86d3baf2c6c6ff3bb987dcd30cd606f0a45ef626 (diff)
downloadShemovCleaner-f80c6c80da7530b43f15acd3b60b27ab6c629f3d.tar.gz
ShemovCleaner-f80c6c80da7530b43f15acd3b60b27ab6c629f3d.tar.bz2
ShemovCleaner-f80c6c80da7530b43f15acd3b60b27ab6c629f3d.zip
FileWidget enhancements
* add distinct icons for files presenet or non present in DB and non- video files, make it sortable * read and save settings * save geometry of ShemovCleaner
Diffstat (limited to 'shemovcleaner.cpp')
-rw-r--r--shemovcleaner.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/shemovcleaner.cpp b/shemovcleaner.cpp
index 59653ae..ac60fb8 100644
--- a/shemovcleaner.cpp
+++ b/shemovcleaner.cpp
@@ -10,6 +10,7 @@
#include <QSqlDatabase>
#include <QMessageBox>
#include <QTreeView>
+#include <QSettings>
#include "shemovcleaner.h"
#include "torrentwidget.h"
@@ -35,6 +36,9 @@ ShemovCleaner::ShemovCleaner(QWidget *parent, Qt::WindowFlags f) : QMainWindow(p
createActions();
connect(mTorrentTab, SIGNAL(statusMessage(QString)), this, SLOT(statusBarMessage(QString)));
connect(mTorrentTab, SIGNAL(selectionCountChanged(QString)), this, SLOT(setSelectionCount(QString)));
+
+ QSettings s;
+ restoreGeometry(s.value("geometry").toByteArray());
}
void ShemovCleaner::statusBarMessage(const QString &msg){
@@ -53,6 +57,12 @@ void ShemovCleaner::configure(){
}
}
+void ShemovCleaner::closeEvent(QCloseEvent *e){
+ QSettings s;
+ s.setValue("geometry", saveGeometry());
+ QMainWindow::closeEvent(e);
+}
+
void ShemovCleaner::createStatusBar(){
QLabel *l1 = new QLabel(tr("Sel."));
mSelected = new QLabel("000/000");