[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdelibs/kdeprint
From: Dirk Mueller <mueller () kde ! org>
Date: 2007-07-16 18:16:45
Message-ID: 1184609805.809752.21544.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 688734 by mueller:
remove the KNumInput linking, since those use a grid
layout anyway
M +3 -3 cups/kpimagepage.cpp
M +2 -2 cups/kptextpage.cpp
M +2 -2 marginvaluewidget.cpp
M +1 -1 marginvaluewidget.h
M +4 -4 marginwidget.cpp
--- trunk/KDE/kdelibs/kdeprint/cups/kpimagepage.cpp #688733:688734
@@ -250,17 +250,17 @@
m_brightness->setRange(0, 200, 20, true);
m_brightness->setWhatsThis(whatsThisBrightnessImagePage);
- m_hue = new KIntNumInput(m_brightness, 0,colorbox);
+ m_hue = new KIntNumInput(0,colorbox);
m_hue->setLabel(i18n("&Hue (Color rotation):"));
m_hue->setRange(-360, 360, 36, true);
m_hue->setWhatsThis(whatsThisHueImagePage);
- m_saturation = new KIntNumInput(m_brightness, 100,colorbox);
+ m_saturation = new KIntNumInput(100,colorbox);
m_saturation->setLabel(i18n("&Saturation:"));
m_saturation->setRange(0, 200, 20, true);
m_saturation->setWhatsThis(whatsThisSaturationImagePage);
- m_gamma = new KIntNumInput(m_saturation, 1000,colorbox);
+ m_gamma = new KIntNumInput(1000,colorbox);
m_gamma->setLabel(i18n("&Gamma (Color correction):"));
m_gamma->setRange(1, 3000, 100, true);
m_gamma->setWhatsThis(whatsThisGammaImagePage);
--- trunk/KDE/kdelibs/kdeprint/cups/kptextpage.cpp #688733:688734
@@ -201,11 +201,11 @@
m_cpi->setWhatsThis(whatsThisCPITextPage);
m_cpi->setLabel(i18n("&Chars per inch:"), Qt::AlignLeft|Qt::AlignVCenter);
m_cpi->setRange(1, 999, 1, false);
- m_lpi = new KIntNumInput(m_cpi, 6,formatbox);
+ m_lpi = new KIntNumInput(6,formatbox);
m_lpi->setWhatsThis(whatsThisLPITextPage);
m_lpi->setLabel(i18n("&Lines per inch:"), Qt::AlignLeft|Qt::AlignVCenter);
m_lpi->setRange(1, 999, 1, false);
- m_columns = new KIntNumInput(m_lpi, 1,formatbox);
+ m_columns = new KIntNumInput(1,formatbox);
m_columns->setWhatsThis(whatsThisColumnsTextPage);
m_columns->setLabel(i18n("C&olumns:"), Qt::AlignLeft|Qt::AlignVCenter);
m_columns->setRange(1, 10, 1, false);
--- trunk/KDE/kdelibs/kdeprint/marginvaluewidget.cpp #688733:688734
@@ -22,8 +22,8 @@
#include <math.h>
#include <kglobal.h>
-MarginValueWidget::MarginValueWidget(KNumInput *below, double value, QWidget *parent)
-: KDoubleNumInput(below, qMin(0.0,value),qMax(0.0,value),value,parent,0.01,2)
+MarginValueWidget::MarginValueWidget(double value, QWidget *parent)
+ : KDoubleNumInput(qMin(0.0,value),qMax(0.0,value),value,parent,0.01,2)
{
m_mode = Pixels;
m_block = false;
--- trunk/KDE/kdelibs/kdeprint/marginvaluewidget.h #688733:688734
@@ -27,7 +27,7 @@
Q_OBJECT
public:
enum Mode { Pixels = 0, IN, CM, MM };
- explicit MarginValueWidget(KNumInput *below, double value = 18.0, QWidget *parent = 0);
+ explicit MarginValueWidget(double value = 18.0, QWidget *parent = 0);
float margin();
int resolution() const;
--- trunk/KDE/kdelibs/kdeprint/marginwidget.cpp #688733:688734
@@ -146,13 +146,13 @@
m_custom = new QCheckBox(i18n("&Use custom margins"), this);
m_custom->setWhatsThis(whatsThisCheckboxMarginWidget);
- m_top = new MarginValueWidget(0, 0.0, this);
+ m_top = new MarginValueWidget(0.0, this);
m_top->setWhatsThis(whatsThisTopMarginWidget);
- m_bottom = new MarginValueWidget(m_top, 0.0, this);
+ m_bottom = new MarginValueWidget(0.0, this);
m_bottom->setWhatsThis(whatsThisBottomMarginWidget);
- m_left = new MarginValueWidget(m_bottom, 0.0, this);
+ m_left = new MarginValueWidget(0.0, this);
m_left->setWhatsThis(whatsThisLeftMarginWidget);
- m_right = new MarginValueWidget(m_left, 0.0, this);
+ m_right = new MarginValueWidget(0.0, this);
m_right->setWhatsThis(whatsThisRightMarginWidget);
m_top->setLabel(i18n("&Top:"), Qt::AlignLeft|Qt::AlignVCenter);
m_bottom->setLabel(i18n("&Bottom:"), Qt::AlignLeft|Qt::AlignVCenter);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic