[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: koffice/kword
From: Thomas Zander <zander () kde ! org>
Date: 2005-12-09 22:04:28
Message-ID: 1134165868.513780.15872.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 487255 by zander:
Fix Headers/Footers being selectable and resizable
M +5 -3 KWFrameView.cpp
--- trunk/koffice/kword/KWFrameView.cpp #487254:487255
@@ -105,7 +105,8 @@
if(isBorderHit(point)) {
MouseMeaning mm = m_policy->mouseMeaningOnBorder(point, keyState);
if(mm != MEANING_NONE && frame()->frameSet()->isProtectSize() ||
- frame()->frameSet()->isMainFrameset())
+ frame()->frameSet()->isMainFrameset() || frame()->frameSet()->isAHeader() ||
+ frame()->frameSet()->isAFooter() || frame()->frameSet()->isFloating())
mm = MEANING_FORBIDDEN;
return mm;
}
@@ -139,8 +140,9 @@
bool readOnly;
public:
ResizeHandle(KWFrameView *fv) : GRIP_SIZE(6) {
- readOnly = fv->frame()->frameSet()->isProtectSize() ||
- fv->frame()->frameSet()->isMainFrameset();
+ KWFrameSet *fs = fv->frame()->frameSet();
+ readOnly = fs->isProtectSize() || fs->isMainFrameset() ||
+ fs->isAHeader() || fs->isAFooter() || fs->isFloating();
}
void paint(QPainter *p, int x, int y) {
p->setPen( QPen( Qt::black, 1, QPen::SolidLine ) );
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic