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:
@@ -70,6 +70,9 @@ namespace glabels
|
|||||||
|
|
||||||
connect( mModel, SIGNAL(changed()), this, SLOT(onModelChanged()) );
|
connect( mModel, SIGNAL(changed()), this, SLOT(onModelChanged()) );
|
||||||
|
|
||||||
|
copiesSpin->setRange( 1, 100*mModel->frame()->nLabels() );
|
||||||
|
copiesStartSpin->setRange( 1, mModel->frame()->nLabels() );
|
||||||
|
|
||||||
onFormChanged();
|
onFormChanged();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -79,6 +82,9 @@ namespace glabels
|
|||||||
///
|
///
|
||||||
void PrintView::onModelChanged()
|
void PrintView::onModelChanged()
|
||||||
{
|
{
|
||||||
|
copiesSpin->setRange( 1, 100*mModel->frame()->nLabels() );
|
||||||
|
copiesStartSpin->setRange( 1, mModel->frame()->nLabels() );
|
||||||
|
|
||||||
updateView();
|
updateView();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -88,8 +94,6 @@ namespace glabels
|
|||||||
///
|
///
|
||||||
void PrintView::updateView()
|
void PrintView::updateView()
|
||||||
{
|
{
|
||||||
copiesStartSpin->setRange( 1, mModel->frame()->nLabels() );
|
|
||||||
|
|
||||||
if ( mRenderer.nPages() == 1 )
|
if ( mRenderer.nPages() == 1 )
|
||||||
{
|
{
|
||||||
if ( mRenderer.nItems() == 1 )
|
if ( mRenderer.nItems() == 1 )
|
||||||
|
|||||||
+37
-18
@@ -6,7 +6,7 @@
|
|||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>759</width>
|
<width>852</width>
|
||||||
<height>792</height>
|
<height>792</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
@@ -73,21 +73,8 @@
|
|||||||
<property name="title">
|
<property name="title">
|
||||||
<string>Copies</string>
|
<string>Copies</string>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QGridLayout" name="gridLayout_3">
|
<layout class="QVBoxLayout" name="verticalLayout_4">
|
||||||
<item row="5" column="0">
|
<item>
|
||||||
<widget class="QLabel" name="copiesDescriptionLabel">
|
|
||||||
<property name="sizePolicy">
|
|
||||||
<sizepolicy hsizetype="Minimum" vsizetype="Preferred">
|
|
||||||
<horstretch>0</horstretch>
|
|
||||||
<verstretch>0</verstretch>
|
|
||||||
</sizepolicy>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string notr="true">(Will print a total of xx items on nn pages.)</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="1" column="0">
|
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_5">
|
<layout class="QHBoxLayout" name="horizontalLayout_5">
|
||||||
<item>
|
<item>
|
||||||
<widget class="QLabel" name="label_4">
|
<widget class="QLabel" name="label_4">
|
||||||
@@ -104,11 +91,20 @@
|
|||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QSpinBox" name="copiesSpin">
|
<widget class="QSpinBox" name="copiesSpin">
|
||||||
|
<property name="buttonSymbols">
|
||||||
|
<enum>QAbstractSpinBox::UpDownArrows</enum>
|
||||||
|
</property>
|
||||||
|
<property name="accelerated">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
<property name="minimum">
|
<property name="minimum">
|
||||||
<number>1</number>
|
<number>1</number>
|
||||||
</property>
|
</property>
|
||||||
<property name="maximum">
|
<property name="maximum">
|
||||||
<number>96</number>
|
<number>9999</number>
|
||||||
|
</property>
|
||||||
|
<property name="stepType">
|
||||||
|
<enum>QAbstractSpinBox::DefaultStepType</enum>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
@@ -127,7 +123,7 @@
|
|||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
<item row="2" column="0">
|
<item>
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_4">
|
<layout class="QHBoxLayout" name="horizontalLayout_4">
|
||||||
<item>
|
<item>
|
||||||
<widget class="QLabel" name="label_2">
|
<widget class="QLabel" name="label_2">
|
||||||
@@ -183,6 +179,29 @@
|
|||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
|
<item>
|
||||||
|
<layout class="QHBoxLayout" name="horizontalLayout_7">
|
||||||
|
<item>
|
||||||
|
<widget class="QLabel" name="copiesDescriptionLabel">
|
||||||
|
<property name="sizePolicy">
|
||||||
|
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Preferred">
|
||||||
|
<horstretch>0</horstretch>
|
||||||
|
<verstretch>0</verstretch>
|
||||||
|
</sizepolicy>
|
||||||
|
</property>
|
||||||
|
<property name="minimumSize">
|
||||||
|
<size>
|
||||||
|
<width>330</width>
|
||||||
|
<height>0</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string notr="true">(Will print a total of xxxx items on nnn pages.) </string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
|||||||
@@ -241,6 +241,12 @@
|
|||||||
</item>
|
</item>
|
||||||
<item row="1" column="0">
|
<item row="1" column="0">
|
||||||
<widget class="QPushButton" name="changeProductButton">
|
<widget class="QPushButton" name="changeProductButton">
|
||||||
|
<property name="minimumSize">
|
||||||
|
<size>
|
||||||
|
<width>330</width>
|
||||||
|
<height>0</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
<property name="toolTip">
|
<property name="toolTip">
|
||||||
<string><html><head/><body><p>Select another product for this gLabels project.</p></body></html></string>
|
<string><html><head/><body><p>Select another product for this gLabels project.</p></body></html></string>
|
||||||
</property>
|
</property>
|
||||||
|
|||||||
Reference in New Issue
Block a user