summaryrefslogtreecommitdiffstats
path: root/knotes
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2012-08-25 12:19:25 +0200
committerSlávek Banko <slavek.banko@axis.cz>2012-08-25 12:29:15 +0200
commit3e4a2e8ec1f2356ce0d0e7b71ad89660d42a9be0 (patch)
tree589272c897668b3da64ba3995febd0bedaf269f7 /knotes
parentbe2f7aa7954638a5ceacaee82759caed3fe6e97d (diff)
downloadtdepim-3e4a2e8ec1f2356ce0d0e7b71ad89660d42a9be0.tar.gz
tdepim-3e4a2e8ec1f2356ce0d0e7b71ad89660d42a9be0.zip
Removed knotes window resizing for RichText toolbar
(cherry picked from commit f820c4f9253bbc21156ee90ad22e6d9deae29034)
Diffstat (limited to 'knotes')
-rw-r--r--knotes/knote.cpp13
1 files changed, 4 insertions, 9 deletions
diff --git a/knotes/knote.cpp b/knotes/knote.cpp
index d06df13bf..33a6e361e 100644
--- a/knotes/knote.cpp
+++ b/knotes/knote.cpp
@@ -437,10 +437,7 @@ void KNote::saveData(bool update)
void KNote::saveConfig() const
{
m_config->setWidth( width() );
- if ( m_tool )
- m_config->setHeight( height() - (m_tool->isHidden() ? 0 : m_tool->height()) );
- else
- m_config->setHeight( 0 );
+ m_config->setHeight( height() );
m_config->setPosition( pos() );
NETWinInfo wm_client( qt_xdisplay(), winId(), qt_xrootwin(), NET::WMDesktop );
@@ -1050,7 +1047,7 @@ void KNote::updateFocus()
if ( m_tool && m_tool->isHidden() && m_editor->textFormat() == TQTextEdit::RichText )
{
m_tool->show();
- setGeometry( x(), y(), width(), height() + m_tool->height() );
+ updateLayout(); // to update the editor height
}
m_editor->cornerWidget()->show();
}
@@ -1059,7 +1056,6 @@ void KNote::updateFocus()
if ( m_tool && !m_tool->isHidden() )
{
m_tool->hide();
- setGeometry( x(), y(), width(), height() - m_tool->height() );
updateLayout(); // to update the minimum height
}
m_editor->cornerWidget()->hide();
@@ -1075,7 +1071,6 @@ void KNote::updateFocus()
if ( m_tool && !m_tool->isHidden() )
{
m_tool->hide();
- setGeometry( x(), y(), width(), height() - m_tool->height() );
updateLayout(); // to update the minimum height
}
@@ -1214,7 +1209,7 @@ void KNote::updateLayout()
if( m_tool ) {
m_tool->setGeometry(
contentsRect().x(),
- contentsRect().bottom() - (m_tool->isHidden() ? 0 : m_tool->height()) + 1,
+ contentsRect().bottom() - m_tool->height() + 1,
contentsRect().width(),
m_tool->height()
);
@@ -1225,7 +1220,7 @@ void KNote::updateLayout()
setMinimumSize(
m_editor->cornerWidget()->width() + margin*2,
- headerHeight + s_ppOffset + ( m_tool ? (m_tool->isHidden() ? 0 : m_tool->height() ) : 0 ) +
+ headerHeight + s_ppOffset + ( m_tool ? m_tool->height() : 0 ) +
m_editor->cornerWidget()->height() + margin*2
);