r14795 by cbradney - #8867: change signal used to fix page range deletion
scribus-commit
scribus-commit at lists.scribus.net
Mon Feb 22 22:00:43 CET 2010
Revision: 14795
Author: cbradney
Date: 2010-02-22T20:55:37.798976Z
Commit message: #8867: change signal used to fix page range deletion
Changeset:
M /branches/Version135/Scribus/scribus/delpages.h
M /branches/Version135/Scribus/scribus/delpages.cpp
Diffs:
Index: scribus/delpages.h
===================================================================
--- scribus/delpages.h (revision 14794)
+++ scribus/delpages.h (revision 14795)
@@ -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/delpages.cpp
===================================================================
--- scribus/delpages.cpp (revision 14794)
+++ scribus/delpages.cpp (revision 14795)
@@ -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