Tweaks to PrintView.

- Increased range of copies spinbox to 100x the number of iterms per page (#51)
 - Fixed issue that blocked user from holding down on spinbox controls
 - Minor layout tweaks
This commit is contained in:
Jim Evins
2019-05-12 17:30:42 -04:00
parent 803f42f4de
commit 33e2d3dee3
3 changed files with 49 additions and 20 deletions
+6 -2
View File
@@ -70,6 +70,9 @@ namespace glabels
connect( mModel, SIGNAL(changed()), this, SLOT(onModelChanged()) );
copiesSpin->setRange( 1, 100*mModel->frame()->nLabels() );
copiesStartSpin->setRange( 1, mModel->frame()->nLabels() );
onFormChanged();
}
@@ -79,6 +82,9 @@ namespace glabels
///
void PrintView::onModelChanged()
{
copiesSpin->setRange( 1, 100*mModel->frame()->nLabels() );
copiesStartSpin->setRange( 1, mModel->frame()->nLabels() );
updateView();
}
@@ -88,8 +94,6 @@ namespace glabels
///
void PrintView::updateView()
{
copiesStartSpin->setRange( 1, mModel->frame()->nLabels() );
if ( mRenderer.nPages() == 1 )
{
if ( mRenderer.nItems() == 1 )