Summary: | sticky notes plasmoid does not remember scroll location | ||
---|---|---|---|
Product: | [Unmaintained] plasma4 | Reporter: | Jason A. Donenfeld <Jason> |
Component: | general | Assignee: | Plasma Bugs List <plasma-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | aseigo |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Gentoo Packages | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | Patch for saving and restoring scroll value in notes plasmoid |
Description
Jason A. Donenfeld
2008-08-02 23:40:51 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?
|