LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
楼主: graydream

skim的面板能不能改小一点

[复制链接]
发表于 2005-3-30 12:39:50 | 显示全部楼层
打了补丁之后会导致二进制的不兼容吗?是不是需要重新编译kde?
回复 支持 反对

使用道具 举报

发表于 2005-3-30 20:49:32 | 显示全部楼层
当然不用了,你仅仅使用 qt-immodule bc 模式就不用
回复 支持 反对

使用道具 举报

发表于 2005-3-30 21:12:28 | 显示全部楼层
今天编译得吐血,但是还是崩溃,后来发现只有用baghira里面的brushed metal的时候会崩溃,随便设置一个panther或者jaguar就不会崩溃了,跟qt的immodule没有关系好像。
回复 支持 反对

使用道具 举报

发表于 2005-3-30 21:13:37 | 显示全部楼层
今天编译得吐血,但是还是崩溃,后来发现只有用baghira里面的brushed metal的时候会崩溃,随便设置一个panther或者jaguar就不会崩溃了,跟qt的immodule没有关系好像。
回复 支持 反对

使用道具 举报

发表于 2005-3-30 21:37:12 | 显示全部楼层
ok, confirmed! I have the same issue.

I will investigate it to see whether it is a bug in skim, or baghira...

thanks.
回复 支持 反对

使用道具 举报

发表于 2005-3-30 22:38:10 | 显示全部楼层
ok, I think I know the problem now.

However, I do not come up with a decent way to solve it, untill I have some more time. Keep tuned ;)
回复 支持 反对

使用道具 举报

发表于 2005-3-31 01:17:24 | 显示全部楼层
不知道到底是什么造成的,我找不到 baghira 中可疑的地方

不过,我实现了一个workaround,请打上这个 patch,给 skim:
[PHP]Index: scimstringrender.cpp
===================================================================
RCS file: /cvsroot/scim/skim/plugins/inputwindow/scimstringrender.cpp,v
retrieving revision 1.6
diff -u -r1.6 scimstringrender.cpp
--- scimstringrender.cpp        26 Mar 2005 19:20:51 -0000      1.6
+++ scimstringrender.cpp        30 Mar 2005 16:58:33 -0000
@@ -10,6 +10,7 @@
#include "scimstringrender.h"

#include <qwidget.h>
+#include <kapplication.h>

class ScimStringRenderPrivate
{
@@ -31,11 +32,15 @@

void ScimStringRender::drawString ( QPainter * p, const QRect & cr) const
{
-//     QRect cr = contentsRect();
-    static const QColorGroup& cg = d->parent->colorGroup();
+    //FIXME: should not be static here
+    static const QColorGroup& cg = KApplication::palette().active();
     p->save();
-    //it seems this fillrect is not needed, as Qt normally erases the widget's area
-    p->fillRect(cr, cg.background());
+
+    QBrush bg = QBrush( d->parent->paletteBackgroundColor() );
+    if ( d->parent->paletteBackgroundPixmap() )
+        bg = QBrush( cg.background(), *(d->parent->paletteBackgroundPixmap()) );
+
+    p->fillRect( cr, bg );

     if(d->attrs.size())
     {[/PHP]
回复 支持 反对

使用道具 举报

发表于 2005-3-31 01:19:34 | 显示全部楼层
或者你可以 checkout CVS 中的 skim_1_2 branch (可能会成为 skim 1.2.3)
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表