[Kstars-devel] KDE/kdeedu/kstars/kstars
Akarsh Simha
akarshsimha at gmail.com
Mon Jun 8 08:11:12 CEST 2009
> SVN commit 978508 by khudyakov:
>
> Fix bug where FOVs with unicode names wasn't displayed.
>
> QTextStream use unicode internally. Already unicode text was
> reencoded with UTF8 coded relusting in garbage.
>
> Should this fix be backported to other braches?
I guess it could be.
> CCBUG: 189508
>
>
> M +2 -2 kstarsactions.cpp
> M +2 -2 kstarsinit.cpp
>
>
> --- trunk/KDE/kdeedu/kstars/kstars/kstarsactions.cpp #978507:978508
> @@ -1010,9 +1010,9 @@
>
> if ( fields.count() == 4 || fields.count() == 5 ) {
> QString nm = fields[0].trimmed();
> - KToggleAction *kta = actionCollection()->add<KToggleAction>( nm.toUtf8() );
> + KToggleAction *kta = actionCollection()->add<KToggleAction>( nm );
> kta->setText( nm );
> - kta->setObjectName( nm.toUtf8() );
> + kta->setObjectName( nm );
> kta->setActionGroup( fovGroup );
> connect( kta, SIGNAL( toggled(bool) ), this, SLOT( slotTargetSymbol() ) );
> if ( nm == Options::fOVName() ) kta->setChecked( true );
> --- trunk/KDE/kdeedu/kstars/kstars/kstarsinit.cpp #978507:978508
> @@ -545,11 +545,11 @@
>
> if ( fields.count() == 4 || fields.count() == 5 ) {
> nm = fields[0].trimmed();
> - KToggleAction *kta = actionCollection()->add<KToggleAction>( nm.toUtf8() );
> + KToggleAction *kta = actionCollection()->add<KToggleAction>( nm );
> kta->setText( nm );
> connect( kta, SIGNAL( toggled( bool ) ), this, SLOT( slotTargetSymbol() ) );
>
> - kta->setObjectName( nm.toUtf8() );
> + kta->setObjectName( nm );
> kta->setActionGroup( fovGroup );
> if ( nm == Options::fOVName() ) kta->setChecked( true );
> fovActionMenu->addAction( kta );
More information about the Kstars-devel
mailing list