[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE_3_3_BRANCH: kdepim/knotes
From: Michael Brade <brade () kde ! org>
Date: 2004-08-20 19:55:47
Message-ID: 20040820195547.B33E390C9 () office ! kde ! org
[Download RAW message or body]
CVS commit by brade:
Backport fix for #87266.
M +1 -0 ChangeLog 1.78.2.2
M +5 -2 knote.cpp 1.120.2.1
--- kdepim/knotes/ChangeLog #1.78.2.1:1.78.2.2
@@ -6,4 +6,5 @@
* fixed #85973: respect newlines when switching from plain text to
rich text
+ * fixed #87266 by making sure that at least 10 pixels of a note are visible
2004/05/02 Michael Brade <brade@kde.org>
--- kdepim/knotes/knote.cpp #1.120:1.120.2.1
@@ -225,7 +225,10 @@ KNote::KNote( KXMLGUIBuilder* builder, Q
}
- // let KWin do the placement if the position is illegal
+ // let KWin do the placement if the position is illegal--at least 10 pixels
+ // of a note need to be visible
const QPoint& position = m_config->position();
- if ( kapp->desktop()->rect().intersects( QRect( position, QSize( width, height ) ) ) )
+ QRect desk = kapp->desktop()->rect();
+ desk.addCoords( 10, 10, -10, -10 );
+ if ( desk.intersects( QRect( position, QSize( width, height ) ) ) )
move( position ); // do before calling show() to avoid flicker
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic