Qtリファレンス Alt Key 新しいページはコチラ

提供: yonewiki
移動: 案内, 検索
(API)
(API)
69行: 69行:
  
  
 This function takes a list of actions and optionally an alphabet. It adds keyboard accelerators to every action's text wherever possible. Existing accelerators are respected as are plain ampersands (which are represented by "&&" in strings).
+
 <span style="color:#cccccc;">This function takes a list of actions and optionally an alphabet. It adds keyboard accelerators to every action's text wherever possible.</span><span style="color:#cccccc;">Existing accelerators are respected as are plain ampersands</span> (<span style="color:#cccccc;">which are represented by "&&" in strings</span>).
  
  
75行: 75行:
  
  
 This function takes a menu (including context menus) or a main window's menu bar and optionally an alphabet. It adds keyboard accelerators to every menu item's text wherever possible. The function works recursively, adding accelerators to submenus and subsubmenus. Existing accelerators are respected as are plain ampersands (which are represented by "&&" in strings).
+
 <span style="color:#cccccc;">This function takes a menu (including context menus) or a main window's menu bar and optionally an alphabet. It adds keyboard accelerators to every menu item's text wherever possible. </span><span style="color:#cccccc;">The function works recursively, adding accelerators to submenus and subsubmenus. </span><span style="color:#cccccc;">Existing accelerators are respected as are plain ampersands</span> (<span style="color:#cccccc;">which are represented by "&&" in strings).</span>
  
  
81行: 81行:
  
  
 This function takes a widget (such as a QDialog subclass) and optionally an alphabet. It adds keyboard accelerators to every buddy label, button (i.e., all QAbstractButton subclasses apart from QToolButton), checkbox, checkable group box, and radio button, that is a child of the widget (or grandchild, recursively), wherever possible. Existing accelerators are respected as are plain ampersands (which are represented by "&&" in strings).
+
 <span style="color:#cccccc;">This function takes a widget (such as a QDialog subclass) and optionally an alphabet. It adds keyboard accelerators to every buddy label, button (i.e., all QAbstractButton subclasses apart from QToolButton), checkbox, checkable group box, and radio button, that is a child of the widget (or grandchild, recursively), wherever possible. </span><span style="color:#cccccc;">Existing accelerators are respected as are plain ampersands</span> (<span style="color:#cccccc;">which are represented by "&&" in strings</span>).
  
  
87行: 87行:
  
  
 This function takes a list of widgets (for example, all the widgets on a particular tab widget page) and optionally an alphabet. It adds keyboard accelerators to every suitable widget, (i.e., to every buddy label and button), wherever possible. Existing accelerators are respected as are plain ampersands (which are represented by "&&" in strings).
+
 <span style="color:#cccccc;">This function takes a list of widgets (for example, all the widgets on a particular tab widget page) and optionally an alphabet. It adds keyboard accelerators to every suitable widget, (i.e., to every buddy label and button), wherever possible. </span><span style="color:#cccccc;">Existing accelerators are respected as are plain ampersands (<span style="color:#cccccc;">which are represented by "&&" in strings</span>).
Auxiliary Functions
+
 
These functions are occassionally useful.
+
 
 +
<span style="color:#cccccc;">Auxiliary Functions</span>
 +
<span style="color:#cccccc;">These functions are occassionally useful.</span>
  
  
95行: 97行:
  
  
 This function takes a list of strings and optionally an alphabet. It returns a new string list with a keyboard accelerator added to every string wherever possible. Existing accelerators are respected as are plain ampersands (which are represented by "&&" in strings).
+
 <span style="color:#cccccc;">This function takes a list of strings and optionally an alphabet. </span><span style="color:#cccccc;">It returns a new string list with a keyboard accelerator added to every string wherever possible. </span><span style="color:#cccccc;">Existing accelerators are respected as are plain ampersands</span> (<span style="color:#cccccc;">which are represented by "&&" in strings</span>).
  
  
101行: 103行:
  
  
 This function returns true if the given list of strings has valid accelerators. Valid includes no accelerators, but does not include duplicate accelerators. If the where pair is passed and the function returns false the pair's ints are set to the index of the first string in the list and the index of the character within the string where a problem (e.g., duplicate accelerators) occurred.
+
 <span style="color:#cccccc;">This function returns true if the given list of strings has valid accelerators. </span><span style="color:#cccccc;">Valid includes no accelerators, but does not include duplicate accelerators. </span><span style="color:#cccccc;">If the where pair is passed and the function returns false the pair's ints are set to the index of the first string in the list and the index of the character within the string where a problem (e.g., duplicate accelerators) occurred.</span>
  
  
107行: 109行:
  
  
 This function returns the number of strings in the string list that have accelerators.
+
 <span style="color:#cccccc;">This function returns the number of strings in the string list that have accelerators.</span>
  
  
113行: 115行:
  
  
 This function returns a rough guide to accelerator quality. For each string the best quality is when the string has an accelerator for its first character, second best is an accelerator for the start of a word, third best is any accelerator at all, and worst is no accelerator. The quality computation accounts for the overall quality of all the strings in the list and returns a value that ranges from 0.0 (worst) to 1.0 (best).
+
 <span style="color:#cccccc;">This function returns a rough guide to accelerator quality. </span><span style="color:#cccccc;">For each string the best quality is when the string has an accelerator for its first character, second best is an accelerator for the start of a word, third best is any accelerator at all, and worst is no accelerator. </span><span style="color:#cccccc;">The quality computation accounts for the overall quality of all the strings in the list and returns a value that ranges from 0.0 (worst) to 1.0 (best).</span>
  
 
 
 
 
  
 
[[Qt#Qtリファレンス|Qtリファレンス]]へ戻る
 
[[Qt#Qtリファレンス|Qtリファレンス]]へ戻る

2021年3月2日 (火) 00:00時点における版



個人用ツール
名前空間

変種
操作
案内
ツールボックス