[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdeedu/kstars/kstars/widgets
From: Akarsh Simha <akarshsimha () gmail ! com>
Date: 2010-08-16 16:53:04
Message-ID: 20100816165304.E9E68AC854 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1164390 by asimha:
Refresh the year and month after the connections are made, so that
they are reflected appropriately.
M +4 -4 genericcalendarwidget.cpp
--- trunk/KDE/kdeedu/kstars/kstars/widgets/genericcalendarwidget.cpp #1164389:1164390
@@ -46,10 +46,6 @@
previousMonth->setIcon( KIcon( QLatin1String( "arrow-left" ) ) );
}
- selectMonth->setCurrentIndex( date().month() - 1 );
- selectYear->setValue( date().year() );
- m_Date = date();
-
// Connects
connect( &m_DateTable, SIGNAL( dateChanged( const QDate& ) ), SLOT( \
dateChangedSlot( const QDate& ) ) );
connect( nextMonth, SIGNAL( clicked() ), SLOT( nextMonthClicked() ) );
@@ -65,6 +61,10 @@
// kDebug() << calendar()->monthName( date(), KCalendarSystem::LongName );
+ selectMonth->setCurrentIndex( date().month() - 1 );
+ selectYear->setValue( date().year() );
+ m_Date = date();
+
show();
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic