Permalink
Browse files

Printing

  • Loading branch information...
1 parent bc4e4ee commit aecf8aef79cfc87f3d125884ad1ea12d87b754e7 mezomish committed Jul 14, 2008
Showing with 10 additions and 5 deletions.
  1. +5 −1 ChangeLog
  2. +5 −4 src/TextDocView.cpp
View
@@ -1,5 +1,9 @@
+2008-07-14:
+Added: printing
+
2008-07-10:
-* Added: basic plugins support
+* Added: basic plugins support
+* Added: basic autocomplete
2008-07-08:
* Fixed: bug with unindention of the line below the selected ones
View
@@ -310,11 +310,12 @@ void TextDocView::applySettings() {
}
void TextDocView::print() {
- QPrinter prn;
+ QsciPrinter prn;
QPrintDialog dlg(&prn, this);
- QMessageBox::information(this, "Sorry....", "Printing is not implemented yet");
-// if (dlg.exec() == QDialog::Accepted) {
-// }
+ if (dlg.exec() == QDialog::Accepted) {
+ prn.setWrapMode(isAdjustedByWidth() ? QsciScintilla::WrapWord : QsciScintilla::WrapNone);
+ prn.printRange(vInt_->edit_, 0);
+ }
}

0 comments on commit aecf8ae

Please sign in to comment.