SVN commit 505193 by fjcruz:
Implementation of color management. (Work in progress --useless).
CCMAIL:
[hidden email]
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
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel