Bug 156312

Summary: "Save to file"-option for Notes-plasmoid
Product: [Unmaintained] plasma4 Reporter: Lukas Appelhans <l.appelhans>
Component: widget-miscAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED FIXED    
Severity: wishlist CC: aseigo, bjoern
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Patch for restoring scroll value
Save notes content into a file

Description Lukas Appelhans 2008-01-21 16:13:59 UTC
Version:            (using Devel)
Installed from:    Compiled sources
Compiler:          G++ 
OS:                Linux

It'd be cool to have a "Save to file"-option for the Notes-Plasmoid, which saves the whole content of it into a file.
Comment 1 Björn Ruberg 2008-08-22 23:30:34 UTC
Created attachment 26990 [details]
Patch for restoring scroll value

I added 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?
Comment 2 Björn Ruberg 2008-08-22 23:33:39 UTC
Ah sorry, wrong bug :( This is for 168160
Comment 3 Björn Ruberg 2008-08-23 17:04:50 UTC
Created attachment 27000 [details]
Save notes content into a file

Finally, here is a patch for this too. It adds an working "Save As"-Option to the context menu.