r14794 by cbradney - #8867: change signal used to fix page range deletion
scribus-commit
scribus-commit at lists.scribus.net
Mon Feb 22 22:00:23 CET 2010
Revision: 14794
Author: cbradney
Date: 2010-02-22T20:55:12.564159Z
Commit message: #8867: change signal used to fix page range deletion
Changeset:
M /trunk/Scribus/scribus/ui/delpages.cpp
M /trunk/Scribus/scribus/ui/delpages.h
Diffs:
Index: scribus/ui/delpages.h
===================================================================
--- scribus/ui/delpages.h (revision 14793)
+++ scribus/ui/delpages.h (revision 14794)
@@ -40,8 +40,8 @@
QSpinBox* fromPageData;
private slots:
- virtual void fromChanged(int pageNumber);
- virtual void toChanged(int pageNumber);
+ virtual void fromChanged();
+ virtual void toChanged();
};
#endif // DELPAGES_H
Index: scribus/ui/delpages.cpp
===================================================================
--- scribus/ui/delpages.cpp (revision 14793)
+++ scribus/ui/delpages.cpp (revision 14794)
@@ -57,20 +57,22 @@
// signals and slots connections
connect( okButton, SIGNAL( clicked() ), this, SLOT( accept() ) );
connect( cancelButton, SIGNAL( clicked() ), this, SLOT( reject() ) );
- connect( fromPageData, SIGNAL( valueChanged(int) ), this, SLOT( fromChanged(int) ) );
- connect( toPageData, SIGNAL( valueChanged(int) ), this, SLOT( toChanged(int) ) );
+ connect( fromPageData, SIGNAL( editingFinished() ), this, SLOT( fromChanged() ) );
+ connect( toPageData, SIGNAL( editingFinished() ), this, SLOT( toChanged() ) );
}
-void DelPages::fromChanged(int pageNumber)
+void DelPages::fromChanged()
{
+ int pageNumber=fromPageData->value();
if (pageNumber > toPageData->value())
toPageData->setValue(pageNumber);
if ((pageNumber == 1) && (toPageData->value() == toPageData->maximum()))
toPageData->setValue(toPageData->maximum()-1);
}
-void DelPages::toChanged(int pageNumber)
+void DelPages::toChanged()
{
+ int pageNumber=toPageData->value();
if (pageNumber < fromPageData->value())
fromPageData->setValue(pageNumber);
if ((fromPageData->value() == 1) && (pageNumber == toPageData->maximum()))
More information about the scribus-commit
mailing list