r24042 by jghali - #16176: By default select all files that can be recovered <ale>

scribus-commit scribus-commit at lists.scribus.net
Mon Sep 28 21:55:27 UTC 2020


Author: jghali
Date: Mon Sep 28 21:55:27 2020
New Revision: 24042

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=24042
Log:
#16176: By default select all files that can be recovered <ale>

Modified:
    trunk/Scribus/scribus/ui/recoverdialog.cpp
    trunk/Scribus/scribus/ui/recoverdialog.h

Modified: trunk/Scribus/scribus/ui/recoverdialog.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24042&path=/trunk/Scribus/scribus/ui/recoverdialog.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/recoverdialog.cpp	(original)
+++ trunk/Scribus/scribus/ui/recoverdialog.cpp	Mon Sep 28 21:55:27 2020
@@ -39,17 +39,22 @@
 	setWindowIcon(IconManager::instance().loadPixmap("AppIcon.png"));
 	m_files = files;
 	recoverFiles.clear();
-	filesList->setColumnWidth(0, 24);
+
 	QHeaderView *header = filesList->horizontalHeader();
 	header->setStretchLastSection(true);
 	header->setSectionsClickable(true );
 	header->setSectionsMovable( false );
 	header->setSectionResizeMode(QHeaderView::Fixed);
 	header->setHighlightSections(false);
+	
+	filesList->setColumnWidth(0, 24);
 	filesList->horizontalHeaderItem(0)->setIcon(style()->standardIcon(QStyle::SP_DialogApplyButton));
 	filesList->horizontalHeaderItem(0)->setToolTip("<qt>" + tr("Click here to toggle your choice") + "</qt>" );
 	filesList->horizontalHeaderItem(3)->setToolTip("<qt>" + tr("Autosaved files are files are automatically saved versions of a document that was opened in a previous Scribus session.") + "<br>" + "Emergency files are files that Scribus was able to salvage after a crash." + "</qt>" );
+	
 	updateFilesTable();
+	toggleAllfromHeader(0);
+
 	connect(buttonRecover, SIGNAL(clicked()), this, SLOT(doRecover()));
 	connect(buttonRemove, SIGNAL(clicked()), this, SLOT(doRemove()));
 	connect(header, SIGNAL(sectionClicked(int)), this, SLOT(toggleAllfromHeader(int)));

Modified: trunk/Scribus/scribus/ui/recoverdialog.h
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24042&path=/trunk/Scribus/scribus/ui/recoverdialog.h
==============================================================================
--- trunk/Scribus/scribus/ui/recoverdialog.h	(original)
+++ trunk/Scribus/scribus/ui/recoverdialog.h	Mon Sep 28 21:55:27 2020
@@ -38,11 +38,14 @@
 public:
 	RecoverDialog(QWidget* parent, const QStringList& files);
 	~RecoverDialog() {};
+
 	QStringList recoverFiles;
 	QStringList recoverNames;
+
 private:
 	void updateFilesTable();
 	QStringList m_files;
+
 private slots:
 	void toggleAllfromHeader(int col);
 	void handleItemClick();




More information about the scribus-commit mailing list