[Kde-imaging] [Bug 188426] Add support for different size printwizard templates

Nicolas Lécureuil neoclust at mandriva.org
Mon Jun 29 22:46:20 CEST 2009


https://bugs.kde.org/show_bug.cgi?id=188426


Nicolas Lécureuil <neoclust at mandriva.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |neoclust at mandriva.org




--- Comment #4 from Nicolas Lécureuil <neoclust mandriva org>  2009-06-29 22:46:18 ---
here is the patch for what angelo asked

Index: printimages/wizard.cpp
===================================================================
--- printimages/wizard.cpp      (révision 988099)
+++ printimages/wizard.cpp      (copie de travail)
@@ -358,6 +358,29 @@
         // add to the list
         d->m_photoSizes.append ( p );

+        // ========== 2-1/3" x 3-1/3"
+        p = new TPhotoSize;
+        p->label = i18n ( "2-1/3\" x 3-1/3\" " );
+        p->dpi = 0;
+        p->autoRotate = true;
+        // page size
+        p->layouts.append ( new QRect ( 0, 0, 8500, 11000 ) );
+        // photo layouts
+        p->layouts.append ( new QRect ( 333,  333, 2333, 3333 ) );
+        p->layouts.append ( new QRect ( 2999, 333, 2333, 3333 ) );
+        p->layouts.append ( new QRect ( 5665, 333, 2333, 3333 ) );
+
+        p->layouts.append ( new QRect ( 333,  3999, 2333, 3333 ) );
+        p->layouts.append ( new QRect ( 2999, 3999, 2333, 3333 ) );
+        p->layouts.append ( new QRect ( 5665, 3999, 2333, 3333 ) );
+
+        p->layouts.append ( new QRect ( 333,  7665, 2333, 3333 ) );
+        p->layouts.append ( new QRect ( 2999, 7665, 2333, 3333 ) );
+        p->layouts.append ( new QRect ( 5665, 7665, 2333, 3333 ) );
+
+        // add to the list
+        d->m_photoSizes.append ( p );
+
         // ========== 4 x 6
         p = new TPhotoSize;
         p->label = i18n ( "4 x 6\"" );

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the Kde-imaging mailing list