qtext 0.3.1 → 0.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/qtext/extensions.rb +14 -10
- data/lib/qtext/version.rb +1 -1
- metadata +2 -2
data/lib/qtext/extensions.rb
CHANGED
@@ -108,10 +108,8 @@ module Qt
|
|
108
108
|
end
|
109
109
|
end
|
110
110
|
|
111
|
-
|
112
|
-
|
113
|
-
end
|
114
|
-
|
111
|
+
# can't alias this because it doesn't work with Qt bindings
|
112
|
+
def size; self.count; end
|
115
113
|
end
|
116
114
|
|
117
115
|
class ItemSelectionRange
|
@@ -131,12 +129,16 @@ module Qt
|
|
131
129
|
|
132
130
|
alias_method :old_inspect, :inspect
|
133
131
|
def inspect
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
132
|
+
if valid?
|
133
|
+
#<Qt::ModelIndex:0xb6004e8c>
|
134
|
+
# fetch address from superclass inspect
|
135
|
+
super =~ /ModelIndex:(.*)>/
|
136
|
+
# format nicely
|
137
|
+
#~ "#<Qt::ModelIndex:#{$1} xy=(#{row},#{column}) gui_value=#{gui_value}>"
|
138
|
+
"#<Qt::ModelIndex:#{$1} xy=(#{row},#{column})>"
|
139
|
+
else
|
140
|
+
"#<Qt::ModelIndex invalid>"
|
141
|
+
end
|
140
142
|
end
|
141
143
|
|
142
144
|
# sort by row, then column
|
@@ -220,6 +222,8 @@ module Qt
|
|
220
222
|
end
|
221
223
|
end
|
222
224
|
alias_method :each, :each_tab
|
225
|
+
# can't alias this because it doesn't work with Qt bindings
|
226
|
+
def size; self.count; end
|
223
227
|
end
|
224
228
|
|
225
229
|
class Variant
|
data/lib/qtext/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: qtext
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- FIXME full name
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-07-
|
12
|
+
date: 2008-07-20 00:00:00 +02:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|