|
|
@ -1050,16 +1050,19 @@ void KNote::updateFocus()
|
|
|
|
if ( m_tool && m_tool->isHidden() && m_editor->textFormat() == TQTextEdit::RichText )
|
|
|
|
if ( m_tool && m_tool->isHidden() && m_editor->textFormat() == TQTextEdit::RichText )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
m_tool->show();
|
|
|
|
m_tool->show();
|
|
|
|
m_editor->cornerWidget()->show();
|
|
|
|
|
|
|
|
setGeometry( x(), y(), width(), height() + m_tool->height() );
|
|
|
|
setGeometry( x(), y(), width(), height() + m_tool->height() );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
m_editor->cornerWidget()->show();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if ( m_tool && !m_tool->isHidden() )
|
|
|
|
else
|
|
|
|
{
|
|
|
|
{
|
|
|
|
m_tool->hide();
|
|
|
|
if ( m_tool && !m_tool->isHidden() )
|
|
|
|
m_editor->cornerWidget()->hide();
|
|
|
|
{
|
|
|
|
setGeometry( x(), y(), width(), height() - m_tool->height() );
|
|
|
|
m_tool->hide();
|
|
|
|
updateLayout(); // to update the minimum height
|
|
|
|
setGeometry( x(), y(), width(), height() - m_tool->height() );
|
|
|
|
|
|
|
|
updateLayout(); // to update the minimum height
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
m_editor->cornerWidget()->hide();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
m_fold->hide();
|
|
|
|
m_fold->hide();
|
|
|
|