Class: Qt::FileDialog

Inherits:
Object show all
Defined in:
lib/rui/toolkits/qtbase/qt.rb

Class Method Summary collapse

Class Method Details

.get_open_url(dir, filter, parent, caption) ⇒ Object



444
445
446
447
# File 'lib/rui/toolkits/qtbase/qt.rb', line 444

def self.get_open_url(dir, filter, parent, caption)
  filename = get_open_file_name(parent, caption, dir.to_local_file, filter)
  Qt::Url.from_local_file(filename)
end

.get_save_url(dir, filter, parent, caption) ⇒ Object



449
450
451
452
# File 'lib/rui/toolkits/qtbase/qt.rb', line 449

def self.get_save_url(dir, filter, parent, caption)
  filename = get_save_file_name(parent, caption, dir.to_local_file, filter)
  Qt::Url.from_local_file(filename)
end