CVS commit by goffioul: Disable "Subject" line when needed + make disabled comment widget more visible (using background color) M +6 -0 kdeprintfax.cpp 1.21 --- kdebase/kdeprint/kdeprintfax/kdeprintfax.cpp #1.20:1.21 @@ -360,5 +360,10 @@ void KdeprintFax::updateState() //m_comment->setPaper(m_comment->isEnabled() ? colorGroup().brush(QColorGroup::Base) : colorGroup().brush(QColorGroup::Background)); if (!m_comment->isEnabled()) + { m_comment->setText(""); + m_comment->setPaper( colorGroup().background() ); + } + else + m_comment->setPaper( colorGroup().base() ); m_enterprise->setEnabled(cmd.find("%enterprise") != -1); if (!m_enterprise->isEnabled()) @@ -373,4 +378,5 @@ void KdeprintFax::updateState() m_timecombo->setEnabled( true ); m_name->setEnabled( cmd.find( "%name" ) != -1 ); + m_subject->setEnabled( cmd.find( "%subject" ) != -1 ); statusBar()->changeItem(m_faxctrl->faxSystem(), 2); }