[Kde-bindings] KDE/kdebindings/csharp/ktexteditor/examples/kwrite
Arno Rehn
kde at arnorehn.de
Sun Jul 27 23:17:56 UTC 2008
SVN commit 838488 by arnorehn:
* When reading from stdin, use Console.OpenStandardInput()
CCMAIL: kde-bindings at kde.org
M +1 -2 kwritemain.cs
--- trunk/KDE/kdebindings/csharp/ktexteditor/examples/kwrite/kwritemain.cs #838487:838488
@@ -666,8 +666,7 @@
KWrite t = new KWrite((KTextEditor.Document) null);
if (args.IsSet("stdin")) {
- // FIXME: the first argument should be stdin here
- QTextStream input = new QTextStream(new StringBuilder(), (uint) QIODevice.OpenModeFlag.ReadOnly);
+ QTextStream input = new QTextStream(Console.OpenStandardInput());
// set chosen codec
if (codec != null)
More information about the Kde-bindings
mailing list