author | sandman <sandman> | 2002-10-08 18:52:17 (UTC) |
---|---|---|
committer | sandman <sandman> | 2002-10-08 18:52:17 (UTC) |
commit | a2b0a1fd69182b814b9b553868163003277e6579 (patch) (unidiff) | |
tree | 71261a75b633f7422a2d29f30971df608f821db5 | |
parent | 7599e0a20572d44ca805e6effb878601c707fd05 (diff) | |
download | opie-a2b0a1fd69182b814b9b553868163003277e6579.zip opie-a2b0a1fd69182b814b9b553868163003277e6579.tar.gz opie-a2b0a1fd69182b814b9b553868163003277e6579.tar.bz2 |
The sliders are now more useable with a stylus
-rw-r--r-- | noncore/styles/liquid/liquidset.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/noncore/styles/liquid/liquidset.cpp b/noncore/styles/liquid/liquidset.cpp index ea0b3c9..255456c 100644 --- a/noncore/styles/liquid/liquidset.cpp +++ b/noncore/styles/liquid/liquidset.cpp | |||
@@ -75,56 +75,58 @@ LiquidSettings::LiquidSettings ( QWidget* parent, const char *name, WFlags fl ) | |||
75 | grid-> addColSpacing ( 3, 8 ); | 75 | grid-> addColSpacing ( 3, 8 ); |
76 | 76 | ||
77 | grid-> addWidget ( m_menulbl = new QLabel ( tr( "Menu color" ), this ), 0, 1 ); | 77 | grid-> addWidget ( m_menulbl = new QLabel ( tr( "Menu color" ), this ), 0, 1 ); |
78 | grid-> addWidget ( m_textlbl = new QLabel ( tr( "Text color" ), this ), 0, 4 ); | 78 | grid-> addWidget ( m_textlbl = new QLabel ( tr( "Text color" ), this ), 0, 4 ); |
79 | grid-> addWidget ( m_opaclbl = new QLabel ( tr( "Opacity" ), this ), 1, 1 ); | 79 | grid-> addWidget ( m_opaclbl = new QLabel ( tr( "Opacity" ), this ), 1, 1 ); |
80 | 80 | ||
81 | m_menubtn = new OColorButton ( this ); | 81 | m_menubtn = new OColorButton ( this ); |
82 | m_menubtn-> setColor ( mcol ); | 82 | m_menubtn-> setColor ( mcol ); |
83 | grid-> addWidget ( m_menubtn, 0, 2 ); | 83 | grid-> addWidget ( m_menubtn, 0, 2 ); |
84 | 84 | ||
85 | m_textbtn = new OColorButton ( this ); | 85 | m_textbtn = new OColorButton ( this ); |
86 | m_textbtn-> setColor ( tcol ); | 86 | m_textbtn-> setColor ( tcol ); |
87 | grid-> addWidget ( m_textbtn, 0, 5 ); | 87 | grid-> addWidget ( m_textbtn, 0, 5 ); |
88 | 88 | ||
89 | m_opacsld = new QSlider ( Horizontal, this ); | 89 | m_opacsld = new QSlider ( Horizontal, this ); |
90 | m_opacsld-> setRange ( -20, 20 ); | 90 | m_opacsld-> setRange ( -20, 20 ); |
91 | m_opacsld-> setSteps ( 1, 1 ); | ||
91 | m_opacsld-> setValue ( opacity ); | 92 | m_opacsld-> setValue ( opacity ); |
92 | m_opacsld-> setTickmarks ( QSlider::Below ); | 93 | m_opacsld-> setTickmarks ( QSlider::Below ); |
93 | grid-> addMultiCellWidget ( m_opacsld, 1, 1, 2, 5 ); | 94 | grid-> addMultiCellWidget ( m_opacsld, 1, 1, 2, 5 ); |
94 | 95 | ||
95 | vbox-> addSpacing ( 4 ); | 96 | vbox-> addSpacing ( 4 ); |
96 | 97 | ||
97 | QCheckBox *shadow = new QCheckBox ( tr( "Use shadowed menu text" ), this ); | 98 | QCheckBox *shadow = new QCheckBox ( tr( "Use shadowed menu text" ), this ); |
98 | shadow-> setChecked ( m_shadow ); | 99 | shadow-> setChecked ( m_shadow ); |
99 | vbox-> addWidget ( shadow ); | 100 | vbox-> addWidget ( shadow ); |
100 | 101 | ||
101 | vbox-> addSpacing ( 4 ); | 102 | vbox-> addSpacing ( 4 ); |
102 | 103 | ||
103 | QCheckBox *flattb = new QCheckBox ( tr( "Make toolbar buttons appear flat" ), this ); | 104 | QCheckBox *flattb = new QCheckBox ( tr( "Make toolbar buttons appear flat" ), this ); |
104 | flattb-> setChecked ( m_flat ); | 105 | flattb-> setChecked ( m_flat ); |
105 | vbox-> addWidget ( flattb ); | 106 | vbox-> addWidget ( flattb ); |
106 | 107 | ||
107 | vbox-> addSpacing ( 4 ); | 108 | vbox-> addSpacing ( 4 ); |
108 | 109 | ||
109 | QHBoxLayout *hbox = new QHBoxLayout ( vbox ); | 110 | QHBoxLayout *hbox = new QHBoxLayout ( vbox ); |
110 | 111 | ||
111 | hbox-> addWidget ( new QLabel ( tr( "Stipple contrast" ), this )); | 112 | hbox-> addWidget ( new QLabel ( tr( "Stipple contrast" ), this )); |
112 | 113 | ||
113 | m_contsld = new QSlider ( Horizontal, this ); | 114 | m_contsld = new QSlider ( Horizontal, this ); |
114 | m_contsld-> setRange ( 0, 10 ); | 115 | m_contsld-> setRange ( 0, 10 ); |
116 | m_contsld-> setSteps ( 1, 1 ); | ||
115 | m_contsld-> setValue ( contrast ); | 117 | m_contsld-> setValue ( contrast ); |
116 | m_contsld-> setTickmarks ( QSlider::Below ); | 118 | m_contsld-> setTickmarks ( QSlider::Below ); |
117 | hbox-> addWidget ( m_contsld, 10 ); | 119 | hbox-> addWidget ( m_contsld, 10 ); |
118 | 120 | ||
119 | vbox-> addStretch ( 10 ); | 121 | vbox-> addStretch ( 10 ); |
120 | 122 | ||
121 | changeType ( m_type ); | 123 | changeType ( m_type ); |
122 | 124 | ||
123 | connect ( cb, SIGNAL( highlighted ( int ) ), this, SLOT( changeType ( int ) ) ); | 125 | connect ( cb, SIGNAL( highlighted ( int ) ), this, SLOT( changeType ( int ) ) ); |
124 | connect ( shadow, SIGNAL( toggled ( bool ) ), this, SLOT( changeShadow ( bool ) ) ); | 126 | connect ( shadow, SIGNAL( toggled ( bool ) ), this, SLOT( changeShadow ( bool ) ) ); |
125 | connect ( flattb, SIGNAL( toggled ( bool ) ), this, SLOT( changeFlat ( bool ) ) ); | 127 | connect ( flattb, SIGNAL( toggled ( bool ) ), this, SLOT( changeFlat ( bool ) ) ); |
126 | } | 128 | } |
127 | 129 | ||
128 | void LiquidSettings::changeType ( int t ) | 130 | void LiquidSettings::changeType ( int t ) |
129 | { | 131 | { |
130 | bool custom = ( t == Custom ); | 132 | bool custom = ( t == Custom ); |