[Digikam-devel] extragear/graphics/digikam/utilities/imageeditor/tools

Francisco J. Cruz fj.cruz at supercable.es
Fri Feb 3 12:48:34 GMT 2006


SVN commit 505193 by fjcruz:

Implementation of color management. (Work in progress --useless).

CCMAIL:digikam-devel at kde.org

 M  +19 -2     imageprint.cpp  
 M  +2 -0      imageprint.h  


--- trunk/extragear/graphics/digikam/utilities/imageeditor/tools/imageprint.cpp #505192:505193
@@ -44,6 +44,7 @@
 #include <qcolor.h>
 #include <qcombobox.h>
 #include <qstyle.h>
+#include <qpushbutton.h>
 
 // KDE lib includes
 
@@ -91,10 +92,26 @@
     m_autoRotate->setChecked( false );
     layout->addWidget( m_autoRotate );
 
-    m_colorManaged = new QCheckBox(i18n("Color Management"), this);
+    QVButtonGroup *cmgroup = new QVButtonGroup(i18n("Color Management Settings"), this);
+    layout->addWidget(cmgroup);
+
+    QHBox *cmbox = new QHBox(cmgroup);
+    layout->addWidget(cmbox);
+    cmbox->setSpacing(KDialog::spacingHint());
+//     QWidget *width = new QWidget(cmbox);
+//     width->setFixedWidth(m_cmPreferences->style().subRect( QStyle::SR_PushButtonContents, m_cmPreferences ).width());
+    
+
+    m_colorManaged = new QCheckBox(i18n("Color Management"), cmbox);
     m_colorManaged->setChecked( false );
-    layout->addWidget(m_colorManaged);
+//     layout->addWidget(m_colorManaged);
 
+    m_cmPreferences = new QPushButton(i18n("Settings"), cmbox);
+    
+//     width = new QWidget(cmbox);
+//     cmbox->setStretchFactor(width, 1);
+    
+
     QVButtonGroup *group = new QVButtonGroup( i18n("Scaling"), this );
     group->setRadioButtonExclusive( true );
     layout->addWidget( group );
--- trunk/extragear/graphics/digikam/utilities/imageeditor/tools/imageprint.h #505192:505193
@@ -38,6 +38,7 @@
 
 class QCheckBox;
 class QRadioButton;
+class QPushButton;
 
 class KComboBox;
 class KDoubleNumInput;
@@ -97,6 +98,7 @@
     QCheckBox       *m_blackwhite;
     QCheckBox       *m_autoRotate;
     QCheckBox       *m_colorManaged;
+    QPushButton     *m_cmPreferences;
 };
 
 }  // namespace Digikam



More information about the Digikam-devel mailing list