Bug 168160 - sticky notes plasmoid does not remember scroll location
Summary: sticky notes plasmoid does not remember scroll location
Status: RESOLVED FIXED
Alias: None
Product: plasma4
Classification: Plasma
Component: general (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-02 23:40 UTC by Jason A. Donenfeld
Modified: 2008-08-28 01:17 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Patch for saving and restoring scroll value in notes plasmoid (1.17 KB, patch)
2008-08-22 23:35 UTC, Björn Ruberg
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jason A. Donenfeld 2008-08-02 23:40:51 UTC
Version:            (using KDE 4.1.0)
Installed from:    Gentoo Packages

1) make a long sticky note that scrolls
2) scroll down to somewhere
3) restart kde
Result: sticky note is scrolled at top


Instead the sticky note should scroll to the location it was before restarting kde.
Comment 1 Björn Ruberg 2008-08-22 23:35:59 UTC
Created attachment 26991 [details]
Patch for saving and restoring scroll value in notes plasmoid

I have made a patch that implements that functionality. 

It currently does not work when the note is in the panel. And it has a problem scrolling at the bottom line. But I suspect that's a bug somewhere else and not the fault of notes or this patch. Or does anybody have clue why saving with this line 
cg.writeEntry("scrollValue", QVariant(m_textEdit->nativeWidget()->verticalScrollBar()->value())); 

and restoring with this code 
int scrollValue = cg.readEntry("scrollValue").toInt(); 
if(scrollValue){ m_textEdit->nativeWidget()->verticalScrollBar()->setValue(scrollValue); 
} 

might not work?