Bug 156312 - "Save to file"-option for Notes-plasmoid
Summary: "Save to file"-option for Notes-plasmoid
Status: RESOLVED FIXED
Alias: None
Product: plasma4
Classification: Unmaintained
Component: widget-misc (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR wishlist
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-21 16:13 UTC by Lukas Appelhans
Modified: 2008-08-28 01:17 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Patch for restoring scroll value (1.17 KB, patch)
2008-08-22 23:30 UTC, Björn Ruberg
Details
Save notes content into a file (4.61 KB, patch)
2008-08-23 17:04 UTC, Björn Ruberg
Details

Note You need to log in before you can comment on or make changes to this bug.
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.