r21116 by fschmid -
scribus-commit
scribus-commit at lists.scribus.net
Fri Mar 25 11:05:11 UTC 2016
Author: fschmid
Date: Fri Mar 25 11:05:11 2016
New Revision: 21116
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=21116
Log:
Fixed Bug #13847: All / None option in recovery dialog
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=21116&path=/trunk/Scribus/scribus/ui/recoverdialog.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/recoverdialog.cpp (original)
+++ trunk/Scribus/scribus/ui/recoverdialog.cpp Fri Mar 25 11:05:11 2016
@@ -40,9 +40,27 @@
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);
updateFilesTable();
connect(buttonRecover, SIGNAL(clicked()), this, SLOT(doRecover()));
connect(buttonRemove, SIGNAL(clicked()), this, SLOT(doRemove()));
+ connect(header, SIGNAL(sectionClicked(int)), this, SLOT(toggleAllfromHeader(int)));
+}
+
+void RecoverDialog::toggleAllfromHeader(int col)
+{
+ if (col != 0)
+ return;
+ for (int a = 0; a < filesList->rowCount(); a++)
+ {
+ ((QCheckBox*)(filesList->cellWidget(a, 0)))->toggle();
+ }
+ handleItemClick();
}
void RecoverDialog::handleItemClick()
Modified: trunk/Scribus/scribus/ui/recoverdialog.h
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=21116&path=/trunk/Scribus/scribus/ui/recoverdialog.h
==============================================================================
--- trunk/Scribus/scribus/ui/recoverdialog.h (original)
+++ trunk/Scribus/scribus/ui/recoverdialog.h Fri Mar 25 11:05:11 2016
@@ -44,6 +44,7 @@
void updateFilesTable();
QStringList m_files;
private slots:
+ void toggleAllfromHeader(int col);
void handleItemClick();
void doRecover();
void doRemove();
More information about the scribus-commit
mailing list