[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    koffice/kexi/plugins/forms/widgets
From:       Jarosław Staniek <staniek () kde ! org>
Date:       2009-10-20 22:03:00
Message-ID: 1256076180.373691.10519.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1038258 by staniek:

display design frame really only in the design mode

 M  +2 -2      kexidblabel.cpp  


--- trunk/koffice/kexi/plugins/forms/widgets/kexidblabel.cpp #1038257:1038258
@@ -515,8 +515,8 @@
     KexiDBTextWidgetInterface::paint(this, &p, text().isEmpty(), alignment(), false);
     p.end();
     QLabel::paintEvent(e);
-    const bool hasFrame = !designMode() && frameWidth() >= 1 && frameShape() != QFrame::NoFrame;
-    if (!hasFrame) {
+    const bool hasFrame = frameWidth() >= 1 && frameShape() != QFrame::NoFrame;
+    if (designMode() && !hasFrame) {
         p.begin(this);
         KFormDesigner::paintWidgetFrame(p, rect());
         p.end();
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic