Diffstat (limited to 'noncore/todayplugins/stockticker/stocktickerlib/stocktickerconfig.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/todayplugins/stockticker/stocktickerlib/stocktickerconfig.cpp | 32 |
1 files changed, 31 insertions, 1 deletions
diff --git a/noncore/todayplugins/stockticker/stocktickerlib/stocktickerconfig.cpp b/noncore/todayplugins/stockticker/stocktickerlib/stocktickerconfig.cpp index 11b615b..fdabd5c 100644 --- a/noncore/todayplugins/stockticker/stocktickerlib/stocktickerconfig.cpp +++ b/noncore/todayplugins/stockticker/stocktickerlib/stocktickerconfig.cpp | |||
@@ -134,2 +134,30 @@ StocktickerPluginConfig::StocktickerPluginConfig( QWidget *parent, const char* | |||
134 | 134 | ||
135 | scrollSpeed = new QSpinBox( this, "Scrollspin" ); | ||
136 | QWhatsThis::add( timerDelaySpin , tr( "Speed of scrolling action, in milliseconds" ) ); | ||
137 | scrollSpeed->setMaxValue( 1000); | ||
138 | scrollSpeed->setSteps(50,50); | ||
139 | cfg.setGroup("Timer"); | ||
140 | scrollSpeed->setValue( cfg.readNumEntry("ScrollSpeed",50)); | ||
141 | layout->addMultiCellWidget( scrollSpeed , 7, 7, 0, 0); | ||
142 | |||
143 | QLabel *label3; | ||
144 | label3 = new QLabel(this); | ||
145 | label3->setText( tr("Scroll Speed, in milliseconds")); | ||
146 | label3->setMaximumHeight(60); | ||
147 | layout->addMultiCellWidget( label3, 7, 7, 1, 2); | ||
148 | |||
149 | scrollLength = new QSpinBox( this, "ScrollLength" ); | ||
150 | QWhatsThis::add( timerDelaySpin , tr( "Length of scrolling" ) ); | ||
151 | scrollLength->setMaxValue( 10); | ||
152 | // scrollLength->setSteps(5,5); | ||
153 | cfg.setGroup("Timer"); | ||
154 | scrollLength->setValue( cfg.readNumEntry("ScrollLength",1)); | ||
155 | layout->addMultiCellWidget( scrollLength , 8, 8, 0, 0); | ||
156 | |||
157 | QLabel *label4; | ||
158 | label4 = new QLabel(this); | ||
159 | label4->setText( tr("Scroll Length")); | ||
160 | label4->setMaximumHeight(60); | ||
161 | layout->addMultiCellWidget( label4, 8, 8, 1, 2); | ||
162 | |||
135 | // lookupButton = new QPushButton(this, "LookupButton"); | 163 | // lookupButton = new QPushButton(this, "LookupButton"); |
@@ -140,3 +168,3 @@ StocktickerPluginConfig::StocktickerPluginConfig( QWidget *parent, const char* | |||
140 | QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Expanding ); | 168 | QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Expanding ); |
141 | layout->addItem( spacer, 8, 0 ); | 169 | layout->addItem( spacer, 9, 0 ); |
142 | 170 | ||
@@ -166,2 +194,4 @@ void StocktickerPluginConfig::writeConfig() { | |||
166 | cfg.writeEntry("Delay",timerDelaySpin->value()); | 194 | cfg.writeEntry("Delay",timerDelaySpin->value()); |
195 | cfg.writeEntry("ScrollLength",scrollLength->value()); | ||
196 | cfg.writeEntry("ScrollSpeed",scrollSpeed->value()); | ||
167 | 197 | ||