summaryrefslogtreecommitdiffstats
path: root/qtsharp/src/bindings/static/DeclareQtSignalAttribute.cs
diff options
context:
space:
mode:
Diffstat (limited to 'qtsharp/src/bindings/static/DeclareQtSignalAttribute.cs')
-rw-r--r--qtsharp/src/bindings/static/DeclareQtSignalAttribute.cs16
1 files changed, 16 insertions, 0 deletions
diff --git a/qtsharp/src/bindings/static/DeclareQtSignalAttribute.cs b/qtsharp/src/bindings/static/DeclareQtSignalAttribute.cs
new file mode 100644
index 00000000..9d9dceed
--- /dev/null
+++ b/qtsharp/src/bindings/static/DeclareQtSignalAttribute.cs
@@ -0,0 +1,16 @@
+namespace Qt {
+ using System;
+
+ [AttributeUsage(AttributeTargets.Class, Inherited=true, AllowMultiple=true)]
+ public class DeclareQtSignalAttribute: Attribute {
+ private string signalName;
+
+ internal string SignalName {
+ get { return signalName; }
+ }
+
+ public DeclareQtSignalAttribute(string signalname) {
+ signalName = signalname.Replace(" ", "");
+ }
+ }
+}