Class: Qt::TableWidgetItem

Inherits:
Object show all
Defined in:
lib/cosmos/gui/qt.rb

Instance Method Summary collapse

Constructor Details

#initialize(string = "") ⇒ TableWidgetItem

Returns a new instance of TableWidgetItem.



323
324
325
326
# File 'lib/cosmos/gui/qt.rb', line 323

def initialize(string = "")
  super(string)
  setFlags(Qt::ItemIsEnabled)
end

Instance Method Details

#textColor=(color) ⇒ Object



328
329
330
# File 'lib/cosmos/gui/qt.rb', line 328

def textColor=(color)
  setForeground(Cosmos.getBrush(color))
end