Module: KDE
- Defined in:
- lib/rui/toolkits/qt/qt.rb
Defined Under Namespace
Classes: ActionCollection, Application, CmdLineArgs, ComboBox, ConfigGroup, Dialog, Global, Icon, Process, TabWidget, XMLGUIClient, XmlGuiWindow
Class Method Summary
collapse
Class Method Details
.active_color ⇒ Object
23
24
25
|
# File 'lib/rui/toolkits/qt/qt.rb', line 23
def self.active_color
$qApp.palette.color(Qt::Palette::Highlight)
end
|
.download_tempfile(url, parent) ⇒ Object
190
191
192
193
194
195
|
# File 'lib/rui/toolkits/kde/kde.rb', line 190
def KDE.download_tempfile(url, parent)
result = ""
if KIO::NetAccess.download(url, result, parent)
result
end
end
|
.i18n(str) ⇒ Object
15
16
17
|
# File 'lib/rui/toolkits/qt/qt.rb', line 15
def self.i18n(str)
str
end
|
.i18nc(context, str) ⇒ Object
19
20
21
|
# File 'lib/rui/toolkits/qt/qt.rb', line 19
def self.i18nc(context, str)
str
end
|
.ki18n(str) ⇒ Object
11
12
13
|
# File 'lib/rui/toolkits/qt/qt.rb', line 11
def self.ki18n(str)
str
end
|
.std_shortcut(name) ⇒ Object
27
28
29
30
|
# File 'lib/rui/toolkits/qt/qt.rb', line 27
def self.std_shortcut(name)
code = Qt::KeySequence.send(name.to_s.capitalize)
Qt::KeySequence.new(code)
end
|