summaryrefslogtreecommitdiff
path: root/library
Unidiff
Diffstat (limited to 'library') (more/less context) (ignore whitespace changes)
-rw-r--r--library/findwidget_p.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/library/findwidget_p.cpp b/library/findwidget_p.cpp
index 9ecaa40..287e125 100644
--- a/library/findwidget_p.cpp
+++ b/library/findwidget_p.cpp
@@ -87,33 +87,34 @@ void FindWidget::slotFindClicked()
87void FindWidget::setUseDate( bool show ) 87void FindWidget::setUseDate( bool show )
88{ 88{
89 if ( show ) { 89 if ( show ) {
90 lblStartDate->show(); 90 lblStartDate->show();
91 cmdStartDate->show(); 91 cmdStartDate->show();
92 } else { 92 } else {
93 lblStartDate->hide(); 93 lblStartDate->hide();
94 cmdStartDate->hide(); 94 cmdStartDate->hide();
95 } 95 }
96 chkBackwards->setDisabled( show ); 96 chkBackwards->setDisabled( show );
97} 97}
98 98
99void FindWidget::setDate( const QDate &dt ) 99void FindWidget::setDate( const QDate &dt )
100{ 100{
101 slotDateChanged( dt.year(), dt.month(), dt.day() ); 101 slotDateChanged( dt.year(), dt.month(), dt.day() );
102} 102}
103 103
104void FindWidget::slotNotFound() 104void FindWidget::slotNotFound()
105{ 105{
106 lblStatus->setText( tr("String Not Found.") ); 106 lblStatus->setText( tr("String Not Found.") );
107} 107}
108 108
109void FindWidget::slotWrapAround() 109void FindWidget::slotWrapAround()
110{ 110{
111 lblStatus->setText( tr("End reached, starting at beginning") ); 111 lblStatus->setText( tr("End reached, starting at %1", "Date using TimeString::shortDate")
112 .arg(TimeString::shortDate( mDate ) ) );
112} 113}
113 114
114void FindWidget::slotDateChanged( int year, int month, int day ) 115void FindWidget::slotDateChanged( int year, int month, int day )
115{ 116{
116 mDate.setYMD( year, month, day ); 117 mDate.setYMD( year, month, day );
117 cmdStartDate->setText( TimeString::shortDate( mDate ) ); 118 cmdStartDate->setText( TimeString::shortDate( mDate ) );
118 dtPicker->setDate( year, month, day ); 119 dtPicker->setDate( year, month, day );
119} 120}