qtext 0.3.1 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -108,10 +108,8 @@ module Qt
108
108
  end
109
109
  end
110
110
 
111
- def size
112
- self.count
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
- #<Qt::ModelIndex:0xb6004e8c>
135
- # fetch address from superclass inspect
136
- super =~ /ModelIndex:(.*)>/
137
- # format nicely
138
- #~ "#<Qt::ModelIndex:#{$1} xy=(#{row},#{column}) gui_value=#{gui_value}>"
139
- "#<Qt::ModelIndex:#{$1} xy=(#{row},#{column})>"
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
@@ -2,7 +2,7 @@ module Qtext #:nodoc:
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 3
5
- TINY = 1
5
+ TINY = 3
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
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.1
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-17 00:00:00 +02:00
12
+ date: 2008-07-20 00:00:00 +02:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency