Advertisement
Guest User

Untitled

a guest
Dec 16th, 2012
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.71 KB | None | 0 0
  1. using System;
  2. using Kimono;
  3. using Qyoto;
  4.  
  5. namespace zad2
  6. {
  7.     public class MainWindow : KXmlGuiWindow
  8.     {
  9.         private KTextEdit te;
  10.  
  11.         public MainWindow (/*QWidget parent = null*/) : base(/*parent*/)
  12.         {
  13.             te = new KTextEdit("Hi, I am text edit field!", this);
  14.             SetCentralWidget(te);
  15.             //SetupGUI();
  16.         }
  17.  
  18.         public static void Main(string[] args)
  19.         {
  20.             KAboutData ad = new KAboutData("Zadqwerty2", "",
  21.                                            KDE.Ki18n("Zadqwerty2"), "v1.0", KDE.Ki18n("Description"),
  22.                                            KAboutData.LicenseKey.License_LGPL);
  23.             KCmdLineArgs.Init(args, ad);
  24.             new KApplication();
  25.  
  26.             KXmlGuiWindow window = new MainWindow();
  27.             window.Show();
  28.         }
  29.     }
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement