On Sat, Jun 03, 2006 at 07:38:29PM +0200, Abdelrazak Younes wrote:
> Martin Vermeer wrote:
> >On Sat, Jun 03, 2006 at 04:46:58PM +0300, Martin Vermeer wrote:
> >>On Sat, Jun 03, 2006 at 02:25:49PM +0200, Georg Baum wrote:
> >>>Am Samstag, 3. Juni 2006 11:31 schrieb Martin Vermeer:
> >
> >...
> > 
> >>>I noticed too that range(222,246) would not work, but range(222,245) 
> >>>returns [222, 223, ... 244], so 245 is not handled now. José, could you 
> >>>please tell us the correct solution?
> >>I found out in the meantime. See attached.
> >>
> >> 
> >>>Please add also an entry to development/FORMAT. Apart from that I think 
> >>>that it can go in.
> >>OK
> >
> >It's in. Log file:
> 
> You don't want to give a go to the Qt4 version? ;-)


Here's the patch... I'm unable to test it here. Apply inside the qt4
directory.

- Martin
 
Index: ui/QNoteUi.ui
===================================================================
--- ui/QNoteUi.ui       (revision 13989)
+++ ui/QNoteUi.ui       (working copy)
@@ -87,6 +87,26 @@
         </property>
        </widget>
       </item>
+      <item>
+       <widget class="QRadioButton" name="framedRB" >
+        <property name="toolTip" >
+         <string>Framed in box</string>
+        </property>
+        <property name="text" >
+         <string>&amp;Framed</string>
+        </property>
+       </widget>
+      </item>
+      <item>
+       <widget class="QRadioButton" name="shadedRB" >
+        <property name="toolTip" >
+         <string>Box with shaded background</string>
+        </property>
+        <property name="text" >
+         <string>&amp;Shaded</string>
+        </property>
+       </widget>
+      </item>
      </layout>
     </widget>
    </item>
Index: QNoteDialog.C
===================================================================
--- QNoteDialog.C       (revision 13989)
+++ QNoteDialog.C       (working copy)
@@ -33,6 +33,8 @@ QNoteDialog::QNoteDialog(QNote * form)
     connect( noteRB, SIGNAL( toggled(bool) ), this, SLOT( change_adaptor() ) );
     connect( greyedoutRB, SIGNAL( toggled(bool) ), this, SLOT( 
change_adaptor() ) );
     connect( commentRB, SIGNAL( toggled(bool) ), this, SLOT( change_adaptor() 
) );
+    connect( framedRB, SIGNAL( toggled(bool) ), this, SLOT( change_adaptor() ) 
);
+    connect( shadedRB, SIGNAL( toggled(bool) ), this, SLOT( change_adaptor() ) 
);
 }
 
 
Index: QNote.C
===================================================================
--- QNote.C     (revision 13989)
+++ QNote.C     (working copy)
@@ -58,6 +58,12 @@ void QNote::update_contents()
        case InsetNoteParams::Greyedout:
                rb = dialog_->greyedoutRB;
                break;
+       case InsetNoteParams::Framed:
+               rb = dialog_->framedRB;
+               break;
+       case InsetNoteParams::Shaded:
+               rb = dialog_->shadedRB;
+               break;
        }
 
        rb->setChecked(true);
@@ -72,6 +78,10 @@ void QNote::apply()
                type = InsetNoteParams::Greyedout;
        else if (dialog_->commentRB->isChecked())
                type = InsetNoteParams::Comment;
+       else if (dialog_->framedRB->isChecked())
+               type = InsetNoteParams::Framed;
+       else if (dialog_->shadedRB->isChecked())
+               type = InsetNoteParams::Shaded;
        else
                type = InsetNoteParams::Note;
 

Attachment: pgpOytC6B2nYl.pgp
Description: PGP signature

Reply via email to